comparison mercurial/hgweb/webcommands.py @ 13794:5c18a0bca26f stable

hgweb: add bookmark labels to monoblue theme (based on 270f57d35525)
author Yuya Nishihara <yuya@tcha.org>
date Wed, 30 Mar 2011 02:22:15 +0900
parents 38c9837b1f75
children 08d49b6b8d32
comparison
equal deleted inserted replaced
13791:794f4476b974 13794:5c18a0bca26f
157 date=ctx.date(), 157 date=ctx.date(),
158 files=files, 158 files=files,
159 rev=ctx.rev(), 159 rev=ctx.rev(),
160 node=hex(n), 160 node=hex(n),
161 tags=webutil.nodetagsdict(web.repo, n), 161 tags=webutil.nodetagsdict(web.repo, n),
162 bookmarks=webutil.nodebookmarksdict(web.repo, n),
162 inbranch=webutil.nodeinbranch(web.repo, ctx), 163 inbranch=webutil.nodeinbranch(web.repo, ctx),
163 branches=webutil.nodebranchdict(web.repo, ctx)) 164 branches=webutil.nodebranchdict(web.repo, ctx))
164 165
165 if count >= revcount: 166 if count >= revcount:
166 break 167 break
360 upparity=parity.next(), 361 upparity=parity.next(),
361 fentries=filelist, 362 fentries=filelist,
362 dentries=dirlist, 363 dentries=dirlist,
363 archives=web.archivelist(hex(node)), 364 archives=web.archivelist(hex(node)),
364 tags=webutil.nodetagsdict(web.repo, node), 365 tags=webutil.nodetagsdict(web.repo, node),
366 bookmarks=webutil.nodebookmarksdict(web.repo, node),
365 inbranch=webutil.nodeinbranch(web.repo, ctx), 367 inbranch=webutil.nodeinbranch(web.repo, ctx),
366 branches=webutil.nodebranchdict(web.repo, ctx)) 368 branches=webutil.nodebranchdict(web.repo, ctx))
367 369
368 def tags(web, req, tmpl): 370 def tags(web, req, tmpl):
369 i = web.repo.tagslist() 371 i = web.repo.tagslist()
488 desc=ctx.description(), 490 desc=ctx.description(),
489 date=ctx.date(), 491 date=ctx.date(),
490 rev=i, 492 rev=i,
491 node=hn, 493 node=hn,
492 tags=webutil.nodetagsdict(web.repo, n), 494 tags=webutil.nodetagsdict(web.repo, n),
495 bookmarks=webutil.nodebookmarksdict(web.repo, n),
493 inbranch=webutil.nodeinbranch(web.repo, ctx), 496 inbranch=webutil.nodeinbranch(web.repo, ctx),
494 branches=webutil.nodebranchdict(web.repo, ctx))) 497 branches=webutil.nodebranchdict(web.repo, ctx)))
495 498
496 yield l 499 yield l
497 500
649 "rename": webutil.renamelink(iterfctx), 652 "rename": webutil.renamelink(iterfctx),
650 "parent": webutil.parents(iterfctx), 653 "parent": webutil.parents(iterfctx),
651 "child": webutil.children(iterfctx), 654 "child": webutil.children(iterfctx),
652 "desc": iterfctx.description(), 655 "desc": iterfctx.description(),
653 "tags": webutil.nodetagsdict(repo, iterfctx.node()), 656 "tags": webutil.nodetagsdict(repo, iterfctx.node()),
657 "bookmarks": webutil.nodebookmarksdict(
658 repo, iterfctx.node()),
654 "branch": webutil.nodebranchnodefault(iterfctx), 659 "branch": webutil.nodebranchnodefault(iterfctx),
655 "inbranch": webutil.nodeinbranch(repo, iterfctx), 660 "inbranch": webutil.nodeinbranch(repo, iterfctx),
656 "branches": webutil.nodebranchdict(repo, iterfctx)}) 661 "branches": webutil.nodebranchdict(repo, iterfctx)})
657 662
658 if limit > 0: 663 if limit > 0: