diff rhodecode/templates/switch_to_list.html @ 4020:218ed589e44a

branch selectors: show closed branches too It would be even better if they were fetched dynamically somehow and perhaps placed in a sub sub menu ... but showing them in the list is often better than not showing them at all.
author Mads Kiilerich <madski@unity3d.com>
date Tue, 04 Jun 2013 13:26:41 +0200
parents ec6354949623
children b619842f173d
line wrap: on
line diff
--- a/rhodecode/templates/switch_to_list.html	Tue Jun 18 21:54:28 2013 +0200
+++ b/rhodecode/templates/switch_to_list.html	Tue Jun 04 13:26:41 2013 +0200
@@ -11,6 +11,17 @@
     %endif
     </ul>
 </li>
+%if c.rhodecode_repo.closed_branches.values():
+<li>
+    ${h.link_to('%s (%s)' % (_('Closed Branches'),len(c.rhodecode_repo.closed_branches.values()),),h.url('branches_home',repo_name=c.repo_name),class_='branches childs')}
+    <ul>
+        <li><a>-</a></li>
+        %for cnt,branch in enumerate(c.rhodecode_repo.closed_branches.items()):
+            <li><div><pre>${h.link_to('%s - %s' % (branch[0],h.short_id(branch[1])),h.url('files_home',repo_name=c.repo_name,revision=(branch[0] if '/' not in branch[0] else branch[1]), at=branch[0]))}</pre></div></li>
+        %endfor
+    </ul>
+</li>
+%endif
 <li>
     ${h.link_to('%s (%s)' % (_('Tags'),len(c.rhodecode_repo.tags.values()),),h.url('tags_home',repo_name=c.repo_name),class_='tags childs')}
     <ul>