# HG changeset patch # User Yuya Nishihara # Date 1301419335 -32400 # Node ID 5c18a0bca26f097255228829c9a6fc70700a9ca7 # Parent 794f4476b9746eea96a5f1b1d128a9290a7df4d7 hgweb: add bookmark labels to monoblue theme (based on 270f57d35525) diff -r 794f4476b974 -r 5c18a0bca26f mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Tue Mar 29 16:45:23 2011 +0300 +++ b/mercurial/hgweb/webcommands.py Wed Mar 30 02:22:15 2011 +0900 @@ -159,6 +159,7 @@ rev=ctx.rev(), node=hex(n), tags=webutil.nodetagsdict(web.repo, n), + bookmarks=webutil.nodebookmarksdict(web.repo, n), inbranch=webutil.nodeinbranch(web.repo, ctx), branches=webutil.nodebranchdict(web.repo, ctx)) @@ -362,6 +363,7 @@ dentries=dirlist, archives=web.archivelist(hex(node)), tags=webutil.nodetagsdict(web.repo, node), + bookmarks=webutil.nodebookmarksdict(web.repo, node), inbranch=webutil.nodeinbranch(web.repo, ctx), branches=webutil.nodebranchdict(web.repo, ctx)) @@ -490,6 +492,7 @@ rev=i, node=hn, tags=webutil.nodetagsdict(web.repo, n), + bookmarks=webutil.nodebookmarksdict(web.repo, n), inbranch=webutil.nodeinbranch(web.repo, ctx), branches=webutil.nodebranchdict(web.repo, ctx))) @@ -651,6 +654,8 @@ "child": webutil.children(iterfctx), "desc": iterfctx.description(), "tags": webutil.nodetagsdict(repo, iterfctx.node()), + "bookmarks": webutil.nodebookmarksdict( + repo, iterfctx.node()), "branch": webutil.nodebranchnodefault(iterfctx), "inbranch": webutil.nodeinbranch(repo, iterfctx), "branches": webutil.nodebranchdict(repo, iterfctx)}) diff -r 794f4476b974 -r 5c18a0bca26f mercurial/templates/monoblue/changelogentry.tmpl --- a/mercurial/templates/monoblue/changelogentry.tmpl Tue Mar 29 16:45:23 2011 +0300 +++ b/mercurial/templates/monoblue/changelogentry.tmpl Wed Mar 30 02:22:15 2011 +0900 @@ -1,4 +1,4 @@ -

{desc|strip|firstline|escape|nonempty} {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}

+

{desc|strip|firstline|escape|nonempty} {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}

-

{path|escape} {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}

+

{path|escape} {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}

diff -r 794f4476b974 -r 5c18a0bca26f mercurial/templates/monoblue/map --- a/mercurial/templates/monoblue/map Tue Mar 29 16:45:23 2011 +0300 +++ b/mercurial/templates/monoblue/map Wed Mar 30 02:22:15 2011 +0900 @@ -180,6 +180,7 @@ tagtag = '{name} ' branchtag = '{name} ' inbranchtag = '{name} ' +bookmarktag = '{name} ' shortlogentry = ' @@ -187,7 +188,7 @@
{date|age} {desc|strip|firstline|escape|nonempty} - {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag} + {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag} diff -r 794f4476b974 -r 5c18a0bca26f mercurial/templates/static/style-monoblue.css --- a/mercurial/templates/static/style-monoblue.css Tue Mar 29 16:45:23 2011 +0300 +++ b/mercurial/templates/static/style-monoblue.css Wed Mar 30 02:22:15 2011 +0900 @@ -246,6 +246,10 @@ background-color: #d5dde6; border-color: #e3ecf4 #9398f4 #9398f4 #e3ecf4; } +span.logtags span.bookmarktag { + background-color: #afdffa; + border-color: #ccecff #46ace6 #46ace6 #ccecff; +} div.diff pre { margin: 10px 0 0 0;