changeset 6423:ac03ae060ca0

templates: fix aria markup from 24a0c176a63d The markup in base.html is a bit misleading. The "quick login" drop down menu is not just the quick login box but also the "current user info" box. When the user is logged in, the "real" quick login box isn't shown and the drop menu's aria-describedby="quick_login_h" thus becomes an invalid reference. To fix the reference, also call the user info for quick_login_h - that is approximately correct.
author Mads Kiilerich <mads@kiilerich.com>
date Mon, 09 Jan 2017 21:39:51 +0100
parents 1f02a239c23c
children 990eb49eac0d
files kallithea/templates/base/base.html
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/templates/base/base.html	Mon Jan 09 00:41:30 2017 +0100
+++ b/kallithea/templates/base/base.html	Mon Jan 09 21:39:51 2017 +0100
@@ -130,7 +130,7 @@
              %else:
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false" aria-haspopup="true"><i class="icon-wrench"></i> ${_('Options')} <i class="caret"></i></a>
              %endif
-          <ul class="dropdown-menu" role="menu" aria-hidden="yes">
+          <ul class="dropdown-menu" role="menu" aria-hidden="true">
              %if h.HasRepoPermissionAny('repository.admin')(c.repo_name):
                    <li><a href="${h.url('edit_repo',repo_name=c.repo_name)}"><i class="icon-gear"></i> ${_('Settings')}</a></li>
              %endif
@@ -404,7 +404,7 @@
                 <div class="full_name">${c.authuser.full_name_or_username}</div>
                 <div class="email">${c.authuser.email}</div>
             </div>
-            <div class="pull-right links_right">
+            <div class="pull-right links_right" id="quick_login_h">
             <ol class="links">
               <li><a href="${h.url('notifications')}">${_('Notifications')}: ${c.unread_notifications}</a></li>
               <li>${h.link_to(_('My Account'),h.url('my_account'))}</li>