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