## mako <%namespace name='static' file='/static_content.html'/> <%! from django.utils.translation import ugettext as _ from django.core.urlresolvers import reverse %> <%page args="tab_list, active_page, default_tab, tab_image" /> <% def url_class(is_active): if is_active: return "active" return "" %> % for tab in tab_list: <% tab_is_active = tab.tab_id in (active_page, default_tab) tab_class = url_class(tab_is_active) %>
  • ${_(tab.name) | h} % if tab_is_active: , current location %endif % if tab_image: ## Translators: 'needs attention' is an alternative string for the ## notification image that indicates the tab "needs attention". ${_('needs attention')} %endif
  • % endfor