# HG changeset patch # User Paul Boddie # Date 1301612171 -7200 # Node ID e2c1f5d87583d9552f5ddafe814ff699c1a1937d # Parent 99b93d5119cd4ba2ba9e519d96c9d1a3cfebce13 Fixed the output encoding of many types of textual data. Added CSS class usage for table cells containing dates, authors, navigation, branches and tags. Tidied up table column widths, attempting to make the branches, tags and summary views cleaner. Removed explicit widths from various templates. Fixed the changeset navigation vertical alignment. Added links to the branches view. diff -r 99b93d5119cd -r e2c1f5d87583 themes/mercurialweb/branchentry.tmpl --- a/themes/mercurialweb/branchentry.tmpl Sun Mar 20 17:38:34 2011 +0100 +++ b/themes/mercurialweb/branchentry.tmpl Fri Apr 01 00:56:11 2011 +0200 @@ -1,6 +1,6 @@ - {date|age} + {date|age} files - {branch|escape} - {node|short} + {node|short} + {branch|escape} diff -r 99b93d5119cd -r e2c1f5d87583 themes/mercurialweb/branches.tmpl --- a/themes/mercurialweb/branches.tmpl Sun Mar 20 17:38:34 2011 +0100 +++ b/themes/mercurialweb/branches.tmpl Fri Apr 01 00:56:11 2011 +0200 @@ -30,7 +30,7 @@

Branches

- +
{entries%branchentry} diff -r 99b93d5119cd -r e2c1f5d87583 themes/mercurialweb/changelog.tmpl --- a/themes/mercurialweb/changelog.tmpl Sun Mar 20 17:38:34 2011 +0100 +++ b/themes/mercurialweb/changelog.tmpl Fri Apr 01 00:56:11 2011 +0200 @@ -13,6 +13,7 @@ >
  • Changelog
  • Graph
  • Tags
  • Branches
  • Files
  • Search  diff -r 99b93d5119cd -r e2c1f5d87583 themes/mercurialweb/changelogentry.tmpl --- a/themes/mercurialweb/changelogentry.tmpl Sun Mar 20 17:38:34 2011 +0100 +++ b/themes/mercurialweb/changelogentry.tmpl Fri Apr 01 00:56:11 2011 +0200 @@ -6,16 +6,16 @@
  • - - + + - - + + diff -r 99b93d5119cd -r e2c1f5d87583 themes/mercurialweb/changeset.tmpl --- a/themes/mercurialweb/changeset.tmpl Sun Mar 20 17:38:34 2011 +0100 +++ b/themes/mercurialweb/changeset.tmpl Fri Apr 01 00:56:11 2011 +0200 @@ -13,6 +13,7 @@ >
  • Changelog
  • Graph
  • Tags
  • Branches
  • Files
  • Search  @@ -36,8 +37,8 @@
  • {date|age}{author|person|xmlescape}{date|age}{author|person|xmlescape} changeset files shortlog graph {desc|strip|escape}{branches%branchtag}{inbranch%inbranchtag}{tags%tagtag}{desc|strip|escape}{branches%branchtag}{inbranch%inbranchtag}{tags%tagtag}
    - - + + - - + + diff -r 99b93d5119cd -r e2c1f5d87583 themes/mercurialweb/error.tmpl --- a/themes/mercurialweb/error.tmpl Sun Mar 20 17:38:34 2011 +0100 +++ b/themes/mercurialweb/error.tmpl Fri Apr 01 00:56:11 2011 +0200 @@ -13,6 +13,7 @@ >
  • Changelog
  • Graph
  • Tags
  • Branches
  • Files
  • Search  diff -r 99b93d5119cd -r e2c1f5d87583 themes/mercurialweb/fileannotate.tmpl --- a/themes/mercurialweb/fileannotate.tmpl Sun Mar 20 17:38:34 2011 +0100 +++ b/themes/mercurialweb/fileannotate.tmpl Fri Apr 01 00:56:11 2011 +0200 @@ -13,6 +13,7 @@ >
  • Changelog
  • Graph
  • Tags
  • Branches
  • Files
  • Search  @@ -36,15 +37,15 @@
  • {date|age}{author|person|xmlescape}{date|age}{author|person|xmlescape} raw files @@ -45,8 +46,8 @@ changelog graph {desc|strip|escape}{branches%branchtag}{inbranch%inbranchtag}{tags%tagtag}{desc|strip|escape}{branches%branchtag}{inbranch%inbranchtag}{tags%tagtag}
    - - + + - - + +
    {date|age}{author|person|xmlescape}{date|age}{author|person|xmlescape} {desc|strip|escape}{branch%branchlabel}{desc|strip|escape}{branch%branchlabel}
    diff -r 99b93d5119cd -r e2c1f5d87583 themes/mercurialweb/filediff.tmpl --- a/themes/mercurialweb/filediff.tmpl Sun Mar 20 17:38:34 2011 +0100 +++ b/themes/mercurialweb/filediff.tmpl Fri Apr 01 00:56:11 2011 +0200 @@ -13,6 +13,7 @@ >
  • Changelog
  • Graph
  • Tags
  • Branches
  • Files
  • Search  @@ -43,7 +44,7 @@ files shortlog - {branch%branchlabel} + {branch%branchlabel} diff -r 99b93d5119cd -r e2c1f5d87583 themes/mercurialweb/filerevision.tmpl --- a/themes/mercurialweb/filerevision.tmpl Sun Mar 20 17:38:34 2011 +0100 +++ b/themes/mercurialweb/filerevision.tmpl Fri Apr 01 00:56:11 2011 +0200 @@ -13,6 +13,7 @@ >
  • Changelog
  • Graph
  • Tags
  • Branches
  • Files
  • Search  @@ -36,16 +37,17 @@ - - + + - - + +
    {date|age}{author|person|xmlescape}{date|age}{author|person|xmlescape} {desc|strip|escape}{branch%branchlabel}{desc|strip|escape}{branch%branchlabel}
    diff -r 99b93d5119cd -r e2c1f5d87583 themes/mercurialweb/graph.tmpl --- a/themes/mercurialweb/graph.tmpl Sun Mar 20 17:38:34 2011 +0100 +++ b/themes/mercurialweb/graph.tmpl Fri Apr 01 00:56:11 2011 +0200 @@ -13,6 +13,7 @@ >
  • Changelog
  • Graph
  • Tags
  • Branches
  • Files
  • Search  diff -r 99b93d5119cd -r e2c1f5d87583 themes/mercurialweb/manifest.tmpl --- a/themes/mercurialweb/manifest.tmpl Sun Mar 20 17:38:34 2011 +0100 +++ b/themes/mercurialweb/manifest.tmpl Fri Apr 01 00:56:11 2011 +0200 @@ -1,5 +1,5 @@ {header} -{repo|escape} (shortlog) +{repo|escape} (files) @@ -13,6 +13,7 @@ >
  • Changelog
  • Graph
  • Tags
  • Branches
  • Files
  • Search  @@ -27,10 +28,10 @@

    {repo|escape}

    - +
    - + - - + + - + diff -r 99b93d5119cd -r e2c1f5d87583 themes/mercurialweb/shortlog.tmpl --- a/themes/mercurialweb/shortlog.tmpl Sun Mar 20 17:38:34 2011 +0100 +++ b/themes/mercurialweb/shortlog.tmpl Fri Apr 01 00:56:11 2011 +0200 @@ -13,6 +13,7 @@ >
  • Changelog
  • Graph
  • Tags
  • Branches
  • Files
  • Search  diff -r 99b93d5119cd -r e2c1f5d87583 themes/mercurialweb/shortlogentry.tmpl --- a/themes/mercurialweb/shortlogentry.tmpl Sun Mar 20 17:38:34 2011 +0100 +++ b/themes/mercurialweb/shortlogentry.tmpl Fri Apr 01 00:56:11 2011 +0200 @@ -1,7 +1,7 @@
  • - - + + - + diff -r 99b93d5119cd -r e2c1f5d87583 themes/mercurialweb/static/style-mercurialweb.css --- a/themes/mercurialweb/static/style-mercurialweb.css Sun Mar 20 17:38:34 2011 +0100 +++ b/themes/mercurialweb/static/style-mercurialweb.css Fri Apr 01 00:56:11 2011 +0200 @@ -26,6 +26,8 @@ a:link:hover, a:link:active, a:link:focus, a:visited:hover, a:visited:active, a:visited:focus { text-decoration: underline; } +h3 a { color: inherit !important; } + input, select { /* Styling similar to the main site. */ @@ -72,6 +74,28 @@ height: 1px; } +/* Summary table dimensions. */ + +table.summary td.author, +table.summary td.date, +table.branches td.date, +table.tags td.date { + width: 10%; +} + +table.manifest td.node, +table.summary.branches td.date, +table.summary.tags td.date { + width: 20%; +} + +table.summary td.navigation, +table.branches td.navigation, +table.tags td.navigation, +table.manifest td.navigation { + width: 5%; +} + /* Styling of headings from the main site. */ h1 { font-size: 2em; } @@ -80,10 +104,15 @@ /* Repository information. */ +td.branchinfo, +td.branches, +td.tags { + text-align: right; +} + td.branchinfo { padding-top: 0.15em; padding-bottom: 0.15em; - text-align: right; } td.branchinfo.graphlabel { @@ -91,6 +120,14 @@ padding-bottom: 0; } +td.node { + font-family: monospace; + + /* Monospace inline text frequently looks smaller than the surrounding text. */ + + font-size: 120%; +} + span.tag, span.branch, span.inbranch { @@ -166,10 +203,6 @@ background: #999; } -.changeset-navigation { - line-height: 2em; -} - .navigation { white-space: nowrap; } @@ -191,6 +224,11 @@ padding: 0 16px; } +.changeset-navigation { + line-height: 2em; + padding-top: 0; +} + .changeset-navigation a, .navigation a { padding: 0.25em 0.5em; diff -r 99b93d5119cd -r e2c1f5d87583 themes/mercurialweb/summary.tmpl --- a/themes/mercurialweb/summary.tmpl Sun Mar 20 17:38:34 2011 +0100 +++ b/themes/mercurialweb/summary.tmpl Fri Apr 01 00:56:11 2011 +0200 @@ -13,6 +13,7 @@ >
  • Changelog
  • Graph
  • Tags
  • Branches
  • Files
  • Search  @@ -48,25 +49,25 @@
    -

    Shortlog

    +

    Shortlog

    -
  • {rev}:{node|short}{rev}:{node|short}
    {date|age}{author|person|xmlescape}{date|age}{author|person|xmlescape} {desc|strip|firstline|escape}{desc|strip|firstline|escape}
    {date|age}{author|person|xmlescape}{date|age}{author|person|xmlescape} {desc|strip|firstline|escape}{desc|strip|firstline|escape} {branches%branchtag}{inbranch%inbranchtag}{tags%tagtag}
    +
    {shortlog}
    -

    Tags

    +

    Tags

    - +
    {tags}
    -

    Branches

    +

    Branches

    - +
    {branches%branchentry} diff -r 99b93d5119cd -r e2c1f5d87583 themes/mercurialweb/tagentry.tmpl --- a/themes/mercurialweb/tagentry.tmpl Sun Mar 20 17:38:34 2011 +0100 +++ b/themes/mercurialweb/tagentry.tmpl Fri Apr 01 00:56:11 2011 +0200 @@ -1,6 +1,6 @@ - + - - + + diff -r 99b93d5119cd -r e2c1f5d87583 themes/mercurialweb/tags.tmpl --- a/themes/mercurialweb/tags.tmpl Sun Mar 20 17:38:34 2011 +0100 +++ b/themes/mercurialweb/tags.tmpl Fri Apr 01 00:56:11 2011 +0200 @@ -13,6 +13,7 @@ >
  • Changelog
  • Graph
  • Tags
  • Branches
  • Files
  • Search  @@ -29,7 +30,7 @@

    Tags

    -
  • {date|age}{date|age} {tag|escape}{node|short}{node|short}{tag|escape}
    +
    {entries%tagentry}