Mercurial > kallithea
comparison rhodecode/templates/summary/summary.html @ 945:05b59c48556f beta
fixed error when trying to make download on empty repository
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 16 Jan 2011 12:27:44 +0100 |
parents | bec32ac08c9a |
children | 72f008ed9b18 |
comparison
equal
deleted
inserted
replaced
944:bec32ac08c9a | 945:05b59c48556f |
---|---|
126 <div class="field"> | 126 <div class="field"> |
127 <div class="label"> | 127 <div class="label"> |
128 <label>${_('Download')}:</label> | 128 <label>${_('Download')}:</label> |
129 </div> | 129 </div> |
130 <div class="input-short"> | 130 <div class="input-short"> |
131 | 131 %if len(c.repo_info.revisions) == 0: |
132 ${h.select('download_options',c.repo_info.get_changeset().raw_id,c.download_options)} | 132 ${_('There are no downloads yet')} |
133 %for cnt,archive in enumerate(c.repo_info._get_archives()): | 133 %else: |
134 %if cnt >=1: | 134 ${h.select('download_options',c.repo_info.get_changeset().raw_id,c.download_options)} |
135 | | 135 %for cnt,archive in enumerate(c.repo_info._get_archives()): |
136 %endif | 136 %if cnt >=1: |
137 <span class="tooltip" title="${_('Download %s as %s') %('tip',archive['type'])}" | 137 | |
138 id="${archive['type']+'_link'}">${h.link_to(archive['type'], | 138 %endif |
139 h.url('files_archive_home',repo_name=c.repo_info.name, | 139 <span class="tooltip" title="${_('Download %s as %s') %('tip',archive['type'])}" |
140 fname='tip'+archive['extension']),class_="archive_icon")}</span> | 140 id="${archive['type']+'_link'}">${h.link_to(archive['type'], |
141 %endfor | 141 h.url('files_archive_home',repo_name=c.repo_info.name, |
142 fname='tip'+archive['extension']),class_="archive_icon")}</span> | |
143 %endfor | |
144 %endif | |
142 </div> | 145 </div> |
143 </div> | 146 </div> |
144 | 147 |
145 <div class="field"> | 148 <div class="field"> |
146 <div class="label"> | 149 <div class="label"> |
266 <div class="title"> | 269 <div class="title"> |
267 <h5>${_('Commit activity by day / author')}</h5> | 270 <h5>${_('Commit activity by day / author')}</h5> |
268 </div> | 271 </div> |
269 | 272 |
270 <div class="table"> | 273 <div class="table"> |
271 | |
272 %if c.no_data: | 274 %if c.no_data: |
273 <div style="padding:0 10px 10px 15px;font-size: 1.2em;">${c.no_data_msg} | 275 <div style="padding:0 10px 10px 15px;font-size: 1.2em;">${c.no_data_msg} |
274 %if h.HasPermissionAll('hg.admin')('enable stats on from summary'): | 276 %if h.HasPermissionAll('hg.admin')('enable stats on from summary'): |
275 [${h.link_to(_('enable'),h.url('edit_repo',repo_name=c.repo_name))}] | 277 [${h.link_to(_('enable'),h.url('edit_repo',repo_name=c.repo_name))}] |
276 %endif | 278 %endif |
277 </div> | 279 </div> |
278 %endif: | 280 %endif: |
279 <div id="commit_history" style="width:460px;height:300px;float:left"></div> | 281 <div id="commit_history" style="width:460px;height:300px;float:left"></div> |
280 <div style="clear: both;height: 10px"></div> | 282 <div style="clear: both;height: 10px"></div> |
281 <div id="overview" style="width:460px;height:100px;float:left"></div> | 283 <div id="overview" style="width:460px;height:100px;float:left"></div> |