comparison rhodecode/templates/summary/summary.html @ 962:72f008ed9b18 beta

implemented #84 downloads can be enabled/disabled per each repository from now.
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 26 Jan 2011 18:37:42 +0100
parents 05b59c48556f
children 1951c35483ab
comparison
equal deleted inserted replaced
961:840ca7492dbe 962:72f008ed9b18
128 <label>${_('Download')}:</label> 128 <label>${_('Download')}:</label>
129 </div> 129 </div>
130 <div class="input-short"> 130 <div class="input-short">
131 %if len(c.repo_info.revisions) == 0: 131 %if len(c.repo_info.revisions) == 0:
132 ${_('There are no downloads yet')} 132 ${_('There are no downloads yet')}
133 %elif c.enable_downloads is False:
134 ${_('Downloads are disabled for this repository')}
135 %if h.HasPermissionAll('hg.admin')('enable stats on from summary'):
136 [${h.link_to(_('enable'),h.url('edit_repo',repo_name=c.repo_name))}]
137 %endif
133 %else: 138 %else:
134 ${h.select('download_options',c.repo_info.get_changeset().raw_id,c.download_options)} 139 ${h.select('download_options',c.repo_info.get_changeset().raw_id,c.download_options)}
135 %for cnt,archive in enumerate(c.repo_info._get_archives()): 140 %for cnt,archive in enumerate(c.repo_info._get_archives()):
136 %if cnt >=1: 141 %if cnt >=1:
137 | 142 |