##// END OF EJS Templates
sorted tags by date in tag view
marcink -
r1126:e6548981 beta
parent child Browse files
Show More
@@ -66,7 +66,7 class ChangesetController(BaseRepoContro
66 66
67 67 #get ranges of revisions if preset
68 68 rev_range = revision.split('...')[:2]
69 range_limit = 50
69
70 70 try:
71 71 if len(rev_range) == 2:
72 72 rev_start = rev_range[0]
@@ -44,7 +44,11 class TagsController(BaseRepoController)
44 44
45 45 def index(self):
46 46 c.repo_tags = OrderedDict()
47 for name, hash_ in c.rhodecode_repo.tags.items():
48 c.repo_tags[name] = c.rhodecode_repo.get_changeset(hash_)
47
48 tags = [(name, c.rhodecode_repo.get_changeset(hash_)) for \
49 name, hash_ in c.rhodecode_repo.tags.items()]
50 ordered_tags = sorted(tags, key=lambda x:x[1].date, reverse=True)
51 for name, cs_tag in ordered_tags:
52 c.repo_tags[name] = cs_tag
49 53
50 54 return render('tags/tags.html')
General Comments 0
You need to be logged in to leave comments. Login now