<%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 name="summary_detail(breadcrumbs_links, show_downloads=True)"> <% summary = lambda n:{False:'summary-short'}.get(n) %>
<% 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: % if commit_rev == -1: 0 ${_('Commit')} % else: 0 ${_('Commits')} % endif % else: % if commit_rev == 1: ${commit_rev} ${_('Commit')} % else: ${commit_rev} ${_('Commits')} % endif % endif ## forks ${c.repository_forks} ${_ungettext('Fork', 'Forks', c.repository_forks)}
## owner, description, downloads, statistics ## Owner ## Description ## Downloads % if show_downloads: % endif ## Repo size ## Statistics
${_('Show More')}