<%def name="refs_counters(branches, closed_branches, tags, bookmarks)"> ${_ungettext( '%(num)s Branch','%(num)s Branches', len(branches)) % {'num': len(branches)}} %if closed_branches: ${_ungettext( '%(num)s Closed Branch', '%(num)s Closed Branches', len(closed_branches)) % {'num': len(closed_branches)}} %endif ${_ungettext( '%(num)s Tag', '%(num)s Tags', len(tags)) % {'num': len(tags)}} %if bookmarks: ${_ungettext( '%(num)s Bookmark', '%(num)s Bookmarks', len(bookmarks)) % {'num': len(bookmarks)}} %endif <%def name="summary_detail(breadcrumbs_links, show_downloads=True)"> <% summary = lambda n:{False:'summary-short'}.get(n) %>
${_('Show More')}
<% maybe_disabled = '' if h.is_svn_without_proxy(c.rhodecode_db_repo): maybe_disabled = 'disabled' %> % if maybe_disabled:

${_('SVN Protocol is disabled. To enable it, see the')} ${_('documentation here')}.

% endif
 
<% commit_rev = c.rhodecode_db_repo.changeset_cache.get('revision') %> % if c.rhodecode_repo: ${refs_counters( c.rhodecode_repo.branches, c.rhodecode_repo.branches_closed, c.rhodecode_repo.tags, c.rhodecode_repo.bookmarks)} % else: ## missing requirements can make c.rhodecode_repo None ${refs_counters([], [], [], [])} % endif ## commits % if commit_rev == -1: ${_ungettext('%(num)s Commit', '%(num)s Commits', 0) % {'num': 0}} % else: ${_ungettext('%(num)s Commit', '%(num)s Commits', commit_rev) % {'num': commit_rev}} % endif ## forks ${c.repository_forks} ${_ungettext('Fork', 'Forks', c.repository_forks)}
% if show_downloads: % endif ## Statistics
<%def name="summary_stats(gravatar_function)">