##// END OF EJS Templates
hgweb: wrap {bookmarks} of summary with mappinggenerator...
Yuya Nishihara -
r38151:e4a43d26 default
parent child Browse files
Show More
@@ -727,7 +727,7 b' def summary(web):'
727 'date': web.repo[n].date(),
727 'date': web.repo[n].date(),
728 }
728 }
729
729
730 def bookmarks(**map):
730 def bookmarks(context):
731 parity = paritygen(web.stripecount)
731 parity = paritygen(web.stripecount)
732 marks = [b for b in web.repo._bookmarks.items() if b[1] in web.repo]
732 marks = [b for b in web.repo._bookmarks.items() if b[1] in web.repo]
733 sortkey = lambda b: (web.repo[b[1]].rev(), b[0])
733 sortkey = lambda b: (web.repo[b[1]].rev(), b[0])
@@ -769,7 +769,7 b' def summary(web):'
769 owner=get_contact(web.config) or 'unknown',
769 owner=get_contact(web.config) or 'unknown',
770 lastchange=tip.date(),
770 lastchange=tip.date(),
771 tags=templateutil.mappinggenerator(tagentries, name='tagentry'),
771 tags=templateutil.mappinggenerator(tagentries, name='tagentry'),
772 bookmarks=bookmarks,
772 bookmarks=templateutil.mappinggenerator(bookmarks),
773 branches=webutil.branchentries(web.repo, web.stripecount, 10),
773 branches=webutil.branchentries(web.repo, web.stripecount, 10),
774 shortlog=templateutil.mappinggenerator(changelist,
774 shortlog=templateutil.mappinggenerator(changelist,
775 name='shortlogentry'),
775 name='shortlogentry'),
General Comments 0
You need to be logged in to leave comments. Login now