%namespace name="base" file="/base/base.mako"/> <%def name="refs_counters(branches, closed_branches, tags, bookmarks)"> % if len(branches) == 1: ${len(branches)} ${_('Branch')} % else: ${len(branches)} ${_('Branches')} % endif %if closed_branches: % if len(closed_branches) == 1: ${len(closed_branches)} ${_('Closed Branch')} % else: ${len(closed_branches)} ${_('Closed Branches')} % endif %endif % if len(tags) == 1: ${len(tags)} ${_('Tag')} % else: ${len(tags)} ${_('Tags')} % endif %if bookmarks: % if len(bookmarks) == 1: ${len(bookmarks)} ${_('Bookmark')} % else: ${len(bookmarks)} ${_('Bookmarks')} % endif %endif %def> <%def name="summary_detail(breadcrumbs_links, show_downloads=True)"> <% summary = lambda n:{False:'summary-short'}.get(n) %>