Commit 27b24336 authored by IKEDA Soji's avatar IKEDA Soji
Browse files

[change] Login form is no longer shown in menu bar: Link to loginrequest page is shown.

parent fefd12ed
......@@ -33,18 +33,25 @@
<!-- sympa menu start -->
[% PROCESS 'sympa_menu.tt2' %]
<!-- end of sympa menu-->
[% IF user.email %]
[%# login banner or login button ~%]
[% IF user.email ~%]
<li>
<a href="#"><i class="fa fa-user"></i> [% IF user.gecos %] [% user.gecos %][% ELSE %] [% user.email %] [% END %]</a>
<ul class="vertical menu">
[% END %]
<!-- login banner start -->
[% PROCESS 'loginbanner.tt2' %]
<!-- end of login banner-->
[% IF user.email %]
</ul>
<a href="#">
<i class="fa fa-user"></i> [% user.gecos || user.email %]
</a>
<ul class="vertical menu">
[% PROCESS 'loginbanner.tt2' %]
</ul>
</li>
[%~ ELSIF use_passwd || use_sso || authentication_info_url ~%]
[% IF action == 'loginrequest'; SET class = 'active'; END ~%]
<li class="[% class %]">
<a href="[% 'loginrequest' | url_rel([action,list]) %]">
<i class="fa fa-user"></i> [%|loc%]Login[%END%]
</a>
</li>
[% END %]
[%~ END %]
</ul>
</menu>
</nav>
......
......@@ -649,20 +649,3 @@ $(function() {
});
});
/* Correction of disapeared top-bar-dropdown menu on input lost focus. */
$(function() {
$('#login-dropdown').removeClass('not-click').on('mouseover',
function(){
$(this).addClass('hover');
}).on('mouseout',
function(e){
if (e.relatedTarget
&& !$('#login-dropdown').has(e.relatedTarget).length) {
if ($(e.target).is(':input'))
$(e.target).blur();
$(this).removeClass('hover');
}
});
});
Supports Markdown
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