Show More
@@ -190,7 +190,7 b' def rawindexentries(ui, repos, req, subd' | |||
|
190 | 190 | 'lastchange_sort': d[1] - d[0], |
|
191 | 191 | 'archives': [], |
|
192 | 192 | 'isdirectory': True, |
|
193 | 'labels': [], | |
|
193 | 'labels': templateutil.hybridlist([], name='label'), | |
|
194 | 194 | } |
|
195 | 195 | |
|
196 | 196 | seendirs.add(name) |
@@ -231,6 +231,7 b' def rawindexentries(ui, repos, req, subd' | |||
|
231 | 231 | description = get("web", "description") |
|
232 | 232 | seenrepos.add(name) |
|
233 | 233 | name = get("web", "name", name) |
|
234 | labels = u.configlist('web', 'labels', untrusted=True) | |
|
234 | 235 | row = {'contact': contact or "unknown", |
|
235 | 236 | 'contact_sort': contact.upper() or "unknown", |
|
236 | 237 | 'name': name, |
@@ -242,7 +243,7 b' def rawindexentries(ui, repos, req, subd' | |||
|
242 | 243 | 'lastchange_sort': d[1] - d[0], |
|
243 | 244 | 'archives': archivelist(u, "tip", url), |
|
244 | 245 | 'isdirectory': None, |
|
245 |
'labels': u. |
|
|
246 | 'labels': templateutil.hybridlist(labels, name='label'), | |
|
246 | 247 | } |
|
247 | 248 | |
|
248 | 249 | yield row |
@@ -765,6 +765,7 b' def summary(web):' | |||
|
765 | 765 | desc = web.config("web", "description") |
|
766 | 766 | if not desc: |
|
767 | 767 | desc = 'unknown' |
|
768 | labels = web.configlist('web', 'labels') | |
|
768 | 769 | |
|
769 | 770 | return web.sendtemplate( |
|
770 | 771 | 'summary', |
@@ -779,7 +780,7 b' def summary(web):' | |||
|
779 | 780 | node=tip.hex(), |
|
780 | 781 | symrev='tip', |
|
781 | 782 | archives=web.archivelist('tip'), |
|
782 |
labels= |
|
|
783 | labels=templateutil.hybridlist(labels, name='label')) | |
|
783 | 784 | |
|
784 | 785 | @webcommand('filediff') |
|
785 | 786 | def filediff(web): |
General Comments 0
You need to be logged in to leave comments.
Login now