Commit 002358dc authored by Ivan Tyagov's avatar Ivan Tyagov

erp5_wendelin_data_lake_ui: hide register panel entry when user is logged in

See merge request !106
parents 9029f35d 780b8e43
Pipeline #25723 failed with stage
in 0 seconds
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<ul data-role="listview" class="ui-listview" data-enhanced="true"> <ul data-role="listview" class="ui-listview" data-enhanced="true">
<li class="ui-first-child"><a href="#" class="ui-btn ui-btn-icon-left ui-icon-home" data-i18n="Home">Home</a></li> <li class="ui-first-child"><a href="#" class="ui-btn ui-btn-icon-left ui-icon-home" data-i18n="Home">Home</a></li>
<li><a href="{{data_download_href}}" class="ui-btn ui-btn-icon-left ui-icon-download" data-i18n="Data Sets">Data Sets</a></li> <li><a href="{{data_download_href}}" class="ui-btn ui-btn-icon-left ui-icon-download" data-i18n="Data Sets">Data Sets</a></li>
<li><a href="{{register_href}}" class="ui-btn ui-btn-icon-left ui-icon-user" data-i18n="Register">Register</a></li> <li id="register-li" class="ui-last-child ui-screen-hidden"><a href="{{register_href}}" class="ui-btn ui-btn-icon-left ui-icon-user" data-i18n="Register">Register</a></li>
<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="{{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="{{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><a href="{{contact_info_href}}" class="ui-btn ui-btn-icon-left ui-icon-user" data-i18n="Contact us">Contact us</a></li>
......
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>985.24591.15293.42325</string> </value> <value> <string>995.24591.15293.42325</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1595254758.81</float> <float>1995254758.81</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -99,11 +99,13 @@ ...@@ -99,11 +99,13 @@
}) })
.push(function (result) { .push(function (result) {
var login_link = document.querySelector("#login-li"), var login_link = document.querySelector("#login-li"),
logout_link = document.querySelector("#logout-li"); logout_link = document.querySelector("#logout-li"),
register_link = document.querySelector("#register-li");
if (result.target.response && result.target.response !== "Anonymous User") { if (result.target.response && result.target.response !== "Anonymous User") {
logout_link.classList.remove("ui-screen-hidden"); logout_link.classList.remove("ui-screen-hidden");
} else { } else {
login_link.classList.remove("ui-screen-hidden"); login_link.classList.remove("ui-screen-hidden");
register_link.classList.remove("ui-screen-hidden");
} }
}); });
}) })
......
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>986.21388.62526.26368</string> </value> <value> <string>996.21388.62526.26368</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -254,7 +254,7 @@ ...@@ -254,7 +254,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1600177702.07</float> <float>1900177702.07</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment