comparison rhodecode/templates/base/base.html @ 1045:3fc9183e05dd beta

another major codes rewrite: - created BaseRepo controller for all repo specific controller, and added common data propagation - removed obosete codes, and made optimizations, removed to often calls to RepoModel - fixed found bugs in files controller that generated unhandled 500 errors - cache issues - removed repo_branches global template values - journal fixes - main repo list is fully dict now it's less resource heavy that way
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 15 Feb 2011 01:36:07 +0100
parents 5554aa9c2480
children ab09064ba7cf
comparison
equal deleted inserted replaced
1044:f3402cb92fdf 1045:3fc9183e05dd
140 <span>&darr;</span> 140 <span>&darr;</span>
141 </a> 141 </a>
142 <ul class="repo_switcher"> 142 <ul class="repo_switcher">
143 %for repo in c.cached_repo_list: 143 %for repo in c.cached_repo_list:
144 144
145 %if repo['dbrepo'].private: 145 %if repo['dbrepo']['private']:
146 <li><img src="/images/icons/lock.png" alt="${_('Private repository')}" class="repo_switcher_type"/>${h.link_to(repo['repo'].name,h.url('summary_home',repo_name=repo['repo'].name),class_="%s" % repo['dbrepo'].repo_type)}</li> 146 <li><img src="/images/icons/lock.png" alt="${_('Private repository')}" class="repo_switcher_type"/>${h.link_to(repo['repo'].name,h.url('summary_home',repo_name=repo['repo'].name),class_="%s" % repo['dbrepo']['repo_type'])}</li>
147 %else: 147 %else:
148 <li><img src="/images/icons/lock_open.png" alt="${_('Public repository')}" class="repo_switcher_type" />${h.link_to(repo['repo'].name,h.url('summary_home',repo_name=repo['repo'].name),class_="%s" % repo['dbrepo'].repo_type)}</li> 148 <li><img src="/images/icons/lock_open.png" alt="${_('Public repository')}" class="repo_switcher_type" />${h.link_to(repo['repo'].name,h.url('summary_home',repo_name=repo['repo'].name),class_="%s" % repo['dbrepo']['repo_type'])}</li>
149 %endif 149 %endif
150 %endfor 150 %endfor
151 </ul> 151 </ul>
152 </li> 152 </li>
153 153
183 </span> 183 </span>
184 <span>${_('Switch to')}</span> 184 <span>${_('Switch to')}</span>
185 </a> 185 </a>
186 <ul> 186 <ul>
187 <li> 187 <li>
188 ${h.link_to('%s (%s)' % (_('branches'),len(c.repository_branches.values()),),h.url('branches_home',repo_name=c.repo_name),class_='branches childs')} 188 ${h.link_to('%s (%s)' % (_('branches'),len(c.rhodecode_repo.branches.values()),),h.url('branches_home',repo_name=c.repo_name),class_='branches childs')}
189 <ul> 189 <ul>
190 %if c.repository_branches.values(): 190 %if c.rhodecode_repo.branches.values():
191 %for cnt,branch in enumerate(c.repository_branches.items()): 191 %for cnt,branch in enumerate(c.rhodecode_repo.branches.items()):
192 <li>${h.link_to('%s - %s' % (branch[0],h.short_id(branch[1])),h.url('files_home',repo_name=c.repo_name,revision=branch[1]))}</li> 192 <li>${h.link_to('%s - %s' % (branch[0],h.short_id(branch[1])),h.url('files_home',repo_name=c.repo_name,revision=branch[1]))}</li>
193 %endfor 193 %endfor
194 %else: 194 %else:
195 <li>${h.link_to(_('There are no branches yet'),'#')}</li> 195 <li>${h.link_to(_('There are no branches yet'),'#')}</li>
196 %endif 196 %endif
197 </ul> 197 </ul>
198 </li> 198 </li>
199 <li> 199 <li>
200 ${h.link_to('%s (%s)' % (_('tags'),len(c.repository_tags.values()),),h.url('tags_home',repo_name=c.repo_name),class_='tags childs')} 200 ${h.link_to('%s (%s)' % (_('tags'),len(c.rhodecode_repo.tags.values()),),h.url('tags_home',repo_name=c.repo_name),class_='tags childs')}
201 <ul> 201 <ul>
202 %if c.repository_tags.values(): 202 %if c.rhodecode_repo.tags.values():
203 %for cnt,tag in enumerate(c.repository_tags.items()): 203 %for cnt,tag in enumerate(c.rhodecode_repo.tags.items()):
204 <li>${h.link_to('%s - %s' % (tag[0],h.short_id(tag[1])),h.url('files_home',repo_name=c.repo_name,revision=tag[1]))}</li> 204 <li>${h.link_to('%s - %s' % (tag[0],h.short_id(tag[1])),h.url('files_home',repo_name=c.repo_name,revision=tag[1]))}</li>
205 %endfor 205 %endfor
206 %else: 206 %else:
207 <li>${h.link_to(_('There are no tags yet'),'#')}</li> 207 <li>${h.link_to(_('There are no tags yet'),'#')}</li>
208 %endif 208 %endif