##// END OF EJS Templates
hgweb: wrap {topics}es of help with mappinggenerator or mappinglist...
Yuya Nishihara -
r38212:0b932b43 default
parent child Browse files
Show More
@@ -1398,7 +1398,7 b' def help(web):'
1398
1398
1399 topicname = web.req.qsparams.get('node')
1399 topicname = web.req.qsparams.get('node')
1400 if not topicname:
1400 if not topicname:
1401 def topics(**map):
1401 def topics(context):
1402 for entries, summary, _doc in helpmod.helptable:
1402 for entries, summary, _doc in helpmod.helptable:
1403 yield {'topic': entries[0], 'summary': summary}
1403 yield {'topic': entries[0], 'summary': summary}
1404
1404
@@ -1427,7 +1427,7 b' def help(web):'
1427
1427
1428 return web.sendtemplate(
1428 return web.sendtemplate(
1429 'helptopics',
1429 'helptopics',
1430 topics=topics,
1430 topics=templateutil.mappinggenerator(topics),
1431 earlycommands=earlycommands,
1431 earlycommands=earlycommands,
1432 othercommands=othercommands,
1432 othercommands=othercommands,
1433 title='Index')
1433 title='Index')
@@ -1444,7 +1444,7 b' def help(web):'
1444
1444
1445 return web.sendtemplate(
1445 return web.sendtemplate(
1446 'helptopics',
1446 'helptopics',
1447 topics=topics,
1447 topics=templateutil.mappinglist(topics),
1448 title=topicname,
1448 title=topicname,
1449 subindex=True)
1449 subindex=True)
1450
1450
General Comments 0
You need to be logged in to leave comments. Login now