*/
$(document).ready(function(){
- $(".header_dropdown").hide();
+ $("#header_dropdown").hide();
$(".header_dropdown_up").hide();
$(".header_dropdown_down,.header_dropdown_up").click(function() {
$(".header_dropdown_down").toggle();
$(".header_dropdown_up").toggle();
- $(".header_dropdown").slideToggle();
+ $("#header_dropdown").slideToggle();
});
});
{% set notification_count = get_notification_count(request.user.id) %}
{% if notification_count %}
- <a href="javascript:;" class="notification-gem button_action button_info" title="Notifications">
+ <a href="javascript:;"
+ class="notification-gem button_action button_info"
+ title="Notifications">
{{ notification_count }}</a>
{% endif %}
- <a href="javascript:;" class="button_action header_dropdown_down">▼</a>
- <a href="javascript:;" class="button_action header_dropdown_up">▲</a>
+ <a href="javascript:;"
+ class="button_action header_dropdown_down"
+ aria-controls="header_dropdown">▼</a>
+ <a href="javascript:;"
+ class="button_action header_dropdown_up"
+ aria-controls="header_dropdown">▲</a>
{% elif request.user and not request.user.has_privilege('active') %}
{# the following link should only appear when verification is needed #}
<a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
</div>
<div class="clear"></div>
{% if request.user and request.user.has_privilege('active') %}
- <div class="header_dropdown">
+ <div id="header_dropdown">
<p>
<span class="dropdown_title">
{% trans user_url=request.urlgen('mediagoblin.user_pages.user_home',