+ %if c.show_stats:
+
+ %else:
+ %if h.HasPermissionAll('hg.admin')('enable stats on from summary'):
+ ${_('Statistics are disabled for this repository')} ${h.link_to(_('enable'),h.url('edit_repo',repo_name=c.repo_name),class_="ui-button-small")}
+ %endif
+ %endif
@@ -136,12 +154,12 @@
-
+
%if len(c.rhodecode_repo.revisions) == 0:
${_('There are no downloads yet')}
%elif c.enable_downloads is False:
${_('Downloads are disabled for this repository')}
- %if h.HasPermissionAll('hg.admin')('enable stats on from summary'):
+ %if h.HasPermissionAll('hg.admin')('enable downloads on from summary'):
${h.link_to(_('enable'),h.url('edit_repo',repo_name=c.repo_name),class_="ui-button-small")}
%endif
%else:
@@ -160,26 +178,12 @@
%endif