# HG changeset patch # User Paul Boddie # Date 1276287397 -7200 # Node ID 8870115b55650d7ac0610b1f6caaeacc60ff87db # Parent 0114d93d19c71421c547b757a4be851eb6d22071 Added a branches page, although this is not compatible with older versions of Mercurial. Added "parity" colouring of tables, and made tables use the entire page width. Changed the "age" representation of dates, excluding the "ago" label which seems to be added automatically for recent dates in later Mercurial versions. diff -r 0114d93d19c7 -r 8870115b5565 themes/mercurialweb/branchentry.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/themes/mercurialweb/branchentry.tmpl Fri Jun 11 22:16:37 2010 +0200 @@ -0,0 +1,5 @@ + + {date|age} + {branch|escape} + {node|short} + diff -r 0114d93d19c7 -r 8870115b5565 themes/mercurialweb/branches.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/themes/mercurialweb/branches.tmpl Fri Jun 11 22:16:37 2010 +0200 @@ -0,0 +1,36 @@ +{header} +{repo|escape} (branches) + + + + + + +

Branches

+ + + +{entries%branchentry} + +
+ +{footer} diff -r 0114d93d19c7 -r 8870115b5565 themes/mercurialweb/indexentry.tmpl --- a/themes/mercurialweb/indexentry.tmpl Mon Jun 07 01:13:18 2010 +0200 +++ b/themes/mercurialweb/indexentry.tmpl Fri Jun 11 22:16:37 2010 +0200 @@ -2,6 +2,6 @@ {name|escape} {description} {contact|obfuscate} - {lastchange|age} ago + {lastchange|age} RSS Atom {archives%archiveentry} diff -r 0114d93d19c7 -r 8870115b5565 themes/mercurialweb/map --- a/themes/mercurialweb/map Mon Jun 07 01:13:18 2010 +0200 +++ b/themes/mercurialweb/map Fri Jun 11 22:16:37 2010 +0200 @@ -1,15 +1,18 @@ default = 'summary' mimetype = 'text/html; charset={encoding}' +branches = branches.tmpl header = header.tmpl footer = footer.tmpl index = index.tmpl +search = search.tmpl +shortlog = shortlog.tmpl +summary = summary.tmpl + +branchentry = branchentry.tmpl indexentry = indexentry.tmpl -search = search.tmpl searchentry = searchentry.tmpl -shortlog = shortlog.tmpl shortlogentry = shortlogentry.tmpl -summary = summary.tmpl archiveentry = '{type|escape} ' branchtag = '{name} ' diff -r 0114d93d19c7 -r 8870115b5565 themes/mercurialweb/searchentry.tmpl --- a/themes/mercurialweb/searchentry.tmpl Mon Jun 07 01:13:18 2010 +0200 +++ b/themes/mercurialweb/searchentry.tmpl Fri Jun 11 22:16:37 2010 +0200 @@ -1,5 +1,5 @@ - {date|age} ago + {date|age} {author|person} {desc|strip|firstline|escape} files diff -r 0114d93d19c7 -r 8870115b5565 themes/mercurialweb/shortlogentry.tmpl --- a/themes/mercurialweb/shortlogentry.tmpl Mon Jun 07 01:13:18 2010 +0200 +++ b/themes/mercurialweb/shortlogentry.tmpl Fri Jun 11 22:16:37 2010 +0200 @@ -1,5 +1,5 @@ - {date|age} ago + {date|age} {author|person} files {desc|strip|firstline|escape} diff -r 0114d93d19c7 -r 8870115b5565 themes/mercurialweb/static/style-mercurialweb.css --- a/themes/mercurialweb/static/style-mercurialweb.css Mon Jun 07 01:13:18 2010 +0200 +++ b/themes/mercurialweb/static/style-mercurialweb.css Fri Jun 11 22:16:37 2010 +0200 @@ -40,6 +40,7 @@ { margin: 1em 0; border-collapse: collapse; + width: 100%; } th { @@ -59,6 +60,10 @@ padding: 0; } +tr.parity1 { + background: #f7f7f7; +} + /* Styling of headings from the main site. */ h1 { font-size: 2em; } @@ -82,6 +87,21 @@ padding: 0.25em 0.5em; } +span.branch-closed { + background: #b5b5f1; + padding: 0.25em 0.5em; +} + +span.branch-inactive { + background: #f1b5b5; + padding: 0.25em 0.5em; +} + +span.branch-closed a, +span.branch-inactive a { + color: #000; +} + /* Navigational and editing controls. */ @media print {