comparison rhodecode/controllers/changelog.py @ 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 267bb347d68c
children 4a0bce848ed8
comparison
equal deleted inserted replaced
4019:18121c5425b8 4020:218ed589e44a
174 return redirect(url('changelog_home', repo_name=c.repo_name)) 174 return redirect(url('changelog_home', repo_name=c.repo_name))
175 175
176 c.branch_name = branch_name 176 c.branch_name = branch_name
177 c.branch_filters = [('', _('All Branches'))] + \ 177 c.branch_filters = [('', _('All Branches'))] + \
178 [(k, k) for k in c.rhodecode_repo.branches.keys()] 178 [(k, k) for k in c.rhodecode_repo.branches.keys()]
179 if c.rhodecode_repo.closed_branches:
180 prefix = _('(closed)') + ' '
181 c.branch_filters += [('-', '-')] + \
182 [(k, prefix + k) for k in c.rhodecode_repo.closed_branches.keys()]
179 _revs = [] 183 _revs = []
180 if not f_path: 184 if not f_path:
181 _revs = [x.revision for x in c.pagination] 185 _revs = [x.revision for x in c.pagination]
182 self._graph(c.rhodecode_repo, _revs, c.total_cs, c.size, p) 186 self._graph(c.rhodecode_repo, _revs, c.total_cs, c.size, p)
183 187