Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
wendelin
Commits
9243a777
Commit
9243a777
authored
Jul 20, 2020
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_wendelin_data_lake_ui: login-logout links in panel
parent
448c9c9d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
7 deletions
+29
-7
bt5/erp5_wendelin_data_lake_ui/PathTemplateItem/web_page_module/fif_gadget_erp5_panel_html.html
...plateItem/web_page_module/fif_gadget_erp5_panel_html.html
+2
-1
bt5/erp5_wendelin_data_lake_ui/PathTemplateItem/web_page_module/fif_gadget_erp5_panel_html.xml
...mplateItem/web_page_module/fif_gadget_erp5_panel_html.xml
+2
-2
bt5/erp5_wendelin_data_lake_ui/PathTemplateItem/web_page_module/fif_gadget_erp5_panel_js.js
...hTemplateItem/web_page_module/fif_gadget_erp5_panel_js.js
+23
-2
bt5/erp5_wendelin_data_lake_ui/PathTemplateItem/web_page_module/fif_gadget_erp5_panel_js.xml
...TemplateItem/web_page_module/fif_gadget_erp5_panel_js.xml
+2
-2
No files found.
bt5/erp5_wendelin_data_lake_ui/PathTemplateItem/web_page_module/fif_gadget_erp5_panel_html.html
View file @
9243a777
...
...
@@ -33,7 +33,8 @@
<
li
><
a
href
=
"
{{download_href}}
"
class
=
"
ui-btn ui-btn-icon-left ui-icon-download
"
data
-
i18n
=
"
Download Ebulk
"
>
Download
Ebulk
<
/a></
li
>
<!--<
li
><
a
href
=
"
{{documentation_href}}
"
class
=
"
ui-btn ui-btn-icon-left ui-icon-file
"
data
-
i18n
=
"
Ebulk's Documentation
"
>
Ebulk
'
s Documentation</a></li> -->
<li><a href="{{contact_info_href}}" class="ui-btn ui-btn-icon-left ui-icon-user" data-i18n="Contact us">Contact us</a></li>
<li class="ui-last-child"><a href="{{logout_href}}" class="ui-btn ui-btn-icon-left ui-icon-power-off" data-i18n="Logout">Logout</a></li>
<li id="logout-li" class="ui-last-child ui-screen-hidden"><a href="{{logout_href}}" class="ui-btn ui-btn-icon-left ui-icon-power-off" data-i18n="Logout">Logout</a></li>
<li id="login-li" class="ui-last-child ui-screen-hidden"><a href="{{login_href}}" class="ui-btn ui-btn-icon-left ui-icon-power-off" data-i18n="Login">Loin</a></li>
</ul>
</div>
</script>
...
...
bt5/erp5_wendelin_data_lake_ui/PathTemplateItem/web_page_module/fif_gadget_erp5_panel_html.xml
View file @
9243a777
...
...
@@ -240,7 +240,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
76.52509.17260.4864
</string>
</value>
<value>
<string>
9
85.24591.15293.42325
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -258,7 +258,7 @@
</tuple>
<state>
<tuple>
<float>
15
62054802
.81
</float>
<float>
15
95254758
.81
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_wendelin_data_lake_ui/PathTemplateItem/web_page_module/fif_gadget_erp5_panel_js.js
View file @
9243a777
...
...
@@ -52,7 +52,8 @@
g
.
getUrlFor
({
command
:
'
display
'
,
options
:
{
page
:
"
contact
"
}}),
g
.
getUrlFor
({
command
:
'
display
'
,
options
:
{
page
:
"
logout
"
}}),
g
.
getUrlFor
({
command
:
'
display
'
,
options
:
{
page
:
"
fifdata
"
}}),
g
.
getUrlFor
({
command
:
'
display
'
,
options
:
{
page
:
"
register
"
}})
g
.
getUrlFor
({
command
:
'
display
'
,
options
:
{
page
:
"
register
"
}}),
g
.
getUrlFor
({
command
:
'
display
'
,
options
:
{
page
:
"
login
"
}})
]);
})
.
push
(
function
(
all_result
)
{
...
...
@@ -66,12 +67,14 @@
"
contact_info_href
"
:
all_result
[
3
],
"
logout_href
"
:
all_result
[
4
],
"
data_download_href
"
:
all_result
[
5
],
"
register_href
"
:
all_result
[
6
]
"
register_href
"
:
all_result
[
6
],
"
login_href
"
:
all_result
[
7
]
})
);
})
.
push
(
function
(
my_translated_or_plain_html
)
{
g
.
element
.
querySelector
(
"
div
"
).
innerHTML
=
my_translated_or_plain_html
;
return
g
.
renderLoginLinks
();
});
})
...
...
@@ -86,6 +89,24 @@
}
}
})
.
declareJob
(
"
renderLoginLinks
"
,
function
()
{
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
jIO
.
util
.
ajax
({
type
:
"
GET
"
,
url
:
new
URL
(
'
./ERP5Site_getUserName
'
,
window
.
location
.
href
)
});
})
.
push
(
function
(
result
)
{
var
login_link
=
document
.
querySelector
(
"
#login-li
"
),
logout_link
=
document
.
querySelector
(
"
#logout-li
"
);
if
(
result
.
target
.
response
)
{
logout_link
.
classList
.
remove
(
"
ui-screen-hidden
"
);
}
else
{
login_link
.
classList
.
remove
(
"
ui-screen-hidden
"
);
}
});
})
/////////////////////////////////////////////////////////////////
// declared services
...
...
bt5/erp5_wendelin_data_lake_ui/PathTemplateItem/web_page_module/fif_gadget_erp5_panel_js.xml
View file @
9243a777
...
...
@@ -236,7 +236,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
76.41266.49650.34030
</string>
</value>
<value>
<string>
9
85.24889.24350.2884
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>
15
62052098.2
</float>
<float>
15
95266175.28
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment