# HG changeset patch # User Paul Boddie # Date 1278787547 -7200 # Node ID dca0d6376e6b929df695694db0ace01bcf1bde18 # Parent 73bdffb4a922b02efc6367b76765d95f8552e993 Improved changeset navigation. Left the shortlog pager sit in its natural left-justified position. Introduced formatting for log comments and fixed comment presentation in the changeset view. Added spacing between the footer and content above it. diff -r 73bdffb4a922 -r dca0d6376e6b themes/mercurialweb/changeset.tmpl --- a/themes/mercurialweb/changeset.tmpl Sat Jul 10 02:44:30 2010 +0200 +++ b/themes/mercurialweb/changeset.tmpl Sat Jul 10 20:45:47 2010 +0200 @@ -29,11 +29,9 @@

Changeset

-

-{parent%changesetlink} -{rev}:{node|short} -{child%changesetlink} -

+ +
{rev}:{node|short}
+ @@ -41,7 +39,7 @@ - + diff -r 73bdffb4a922 -r dca0d6376e6b themes/mercurialweb/shortlogentry.tmpl --- a/themes/mercurialweb/shortlogentry.tmpl Sat Jul 10 02:44:30 2010 +0200 +++ b/themes/mercurialweb/shortlogentry.tmpl Sat Jul 10 20:45:47 2010 +0200 @@ -2,6 +2,6 @@ - + diff -r 73bdffb4a922 -r dca0d6376e6b themes/mercurialweb/static/style-mercurialweb.css --- a/themes/mercurialweb/static/style-mercurialweb.css Sat Jul 10 02:44:30 2010 +0200 +++ b/themes/mercurialweb/static/style-mercurialweb.css Sat Jul 10 20:45:47 2010 +0200 @@ -155,10 +155,6 @@ background: #ccc; } -.pager { - float: right; -} - #navibar a, #navibar li.current span { /* Need a block to redefine the height. */ @@ -265,6 +261,12 @@ border-bottom: 1px solid #ccc; } +/* Footer elements. */ + +#footer { + margin-top: 1em; +} + #credits { float: right; @@ -289,18 +291,48 @@ text-decoration: none; } +/* Shortlog presentation. */ + +.commentline { + white-space: nowrap; + overflow: hidden; +} + /* Changeset presentation. */ -.changesetparentlink:before { - content: '← '; /* left arrow (UTF-8) */ +.changesetlinks { + position: relative; + padding-left: 1em; + min-height: 1.2em; + line-height: 1.2em; +} + +.changesetlinks a { + display: block; +} + +/* Position changeset labels at a fixed distance from the left margin. */ + +.changesetparentlinks, +.changesetchildlinks { + position: absolute; + top: 0; + left: 0; +} + +.changesetparentlinks:before { + content: '↓'; /* down arrow (UTF-8) */ + /* content: '← '; left arrow (UTF-8) */ +} + +.changesetchildlinks:after { + content: '↑'; /* up arrow (UTF-8) */ + /* content: '→'; right arrow (UTF-8) */ } .changeset { font-weight: bold; -} - -.changesetchildlink:after { - content: '→'; /* right arrow (UTF-8) */ + margin-left: 1em; } /* Source views. */
{date|age} {author|person} {desc|strip|escape|addbreaks}{desc|strip|escape} {branches%branchtag}{inbranch%inbranchtag}{tags%tagtag}
{date|age} {author|person} {desc|strip|firstline|escape}{desc|strip|firstline|escape} {branches%branchtag}{inbranch%inbranchtag}{tags%tagtag}