MercurialWebTheme

Changeset

36:ba89c5d38ceb
2011-04-05 Paul Boddie raw files shortlog changelog graph Added archives to the manifest and fixed the navigation area width. Tidied the presentation of feeds and archives on the index page. Limited annotations to 10% of the page width.
themes/mercurialweb/index.tmpl (file) themes/mercurialweb/indexentry.tmpl (file) themes/mercurialweb/manifest.tmpl (file) themes/mercurialweb/static/style-mercurialweb.css (file)
     1.1 --- a/themes/mercurialweb/index.tmpl	Fri Apr 01 00:56:11 2011 +0200
     1.2 +++ b/themes/mercurialweb/index.tmpl	Tue Apr 05 00:15:39 2011 +0200
     1.3 @@ -18,7 +18,8 @@
     1.4        <th><a href="?sort={sort_description}">Description</a></th>
     1.5        <th><a href="?sort={sort_contact}">Contact</a></th>
     1.6        <th><a href="?sort={sort_lastchange}">Last change</a></th>
     1.7 -      <th>&#160;</th>
     1.8 +      <th></th>
     1.9 +      <th></th>
    1.10      </tr>
    1.11    </thead>
    1.12    <tbody>
     2.1 --- a/themes/mercurialweb/indexentry.tmpl	Fri Apr 01 00:56:11 2011 +0200
     2.2 +++ b/themes/mercurialweb/indexentry.tmpl	Tue Apr 05 00:15:39 2011 +0200
     2.3 @@ -3,5 +3,6 @@
     2.4    <td>{description}</td>
     2.5    <td>{contact|obfuscate}</td>
     2.6    <td class="age">{lastchange|age}</td>
     2.7 -  <td class="indexlinks"><a href="{url}rss-log">RSS</a> <a href="{url}atom-log">Atom</a> {archives%archiveentry}</td>
     2.8 +  <td class="archives">{archives%archiveentry}</td>
     2.9 +  <td class="feeds"><a href="{url}rss-log">RSS</a> <a href="{url}atom-log">Atom</a></td>
    2.10  </tr>
     3.1 --- a/themes/mercurialweb/manifest.tmpl	Fri Apr 01 00:56:11 2011 +0200
     3.2 +++ b/themes/mercurialweb/manifest.tmpl	Tue Apr 05 00:15:39 2011 +0200
     3.3 @@ -37,6 +37,7 @@
     3.4          <a href="{url}shortlog/{node|short}{sessionvars%urlparameter}#{node|short}">shortlog</a>
     3.5          <a href="{url}changelog/{node|short}{sessionvars%urlparameter}#{node|short}">changelog</a>
     3.6        </td>
     3.7 +      <td class="archives">{archives%archiveentry}</td>
     3.8        <td class="branchinfo">{branches%branchtag}{inbranch%inbranchtag}{tags%tagtag}</td>
     3.9      </tr>
    3.10    </tbody>
     4.1 --- a/themes/mercurialweb/static/style-mercurialweb.css	Fri Apr 01 00:56:11 2011 +0200
     4.2 +++ b/themes/mercurialweb/static/style-mercurialweb.css	Tue Apr 05 00:15:39 2011 +0200
     4.3 @@ -1,6 +1,6 @@
     4.4  /*  style-mercurialweb.css - stylesheets resembling the MercurialWikiTheme styles
     4.5  
     4.6 -Copyright (c) 2010 Paul Boddie <paul@boddie.org.uk>
     4.7 +Copyright (c) 2010, 2011 Paul Boddie <paul@boddie.org.uk>
     4.8  Copyright (c) 2001, 2002, 2003 by Juergen Hermann
     4.9  */
    4.10  
    4.11 @@ -74,6 +74,16 @@
    4.12      height: 1px;
    4.13  }
    4.14  
    4.15 +/* Index styling. */
    4.16 +
    4.17 +.archives {
    4.18 +    text-align: left;
    4.19 +}
    4.20 +
    4.21 +.feeds {
    4.22 +    text-align: right;
    4.23 +}
    4.24 +
    4.25  /* Summary table dimensions. */
    4.26  
    4.27  table.summary td.author,
    4.28 @@ -91,8 +101,7 @@
    4.29  
    4.30  table.summary td.navigation,
    4.31  table.branches td.navigation,
    4.32 -table.tags td.navigation,
    4.33 -table.manifest td.navigation {
    4.34 +table.tags td.navigation {
    4.35      width: 5%;
    4.36  }
    4.37  
    4.38 @@ -108,9 +117,10 @@
    4.39  td.branches,
    4.40  td.tags {
    4.41      text-align: right;
    4.42 +    white-space: nowrap;
    4.43  }
    4.44  
    4.45 -td.branchinfo {
    4.46 +span.branchinfo {
    4.47      padding-top: 0.15em;
    4.48      padding-bottom: 0.15em;
    4.49  }
    4.50 @@ -193,6 +203,8 @@
    4.51  }
    4.52  
    4.53  #navibar a, #navibar li.current span,
    4.54 +.archives a,
    4.55 +.feeds a,
    4.56  .changeset-navigation a,
    4.57  .navigation a {
    4.58      color: #fff;
    4.59 @@ -207,6 +219,8 @@
    4.60      white-space: nowrap;
    4.61  }
    4.62  
    4.63 +.archives a,
    4.64 +.feeds a,
    4.65  .changeset-navigation a,
    4.66  .navigation a {
    4.67      background: #ccc;
    4.68 @@ -229,18 +243,27 @@
    4.69      padding-top: 0;
    4.70  }
    4.71  
    4.72 +.archives a,
    4.73 +.feeds a,
    4.74  .changeset-navigation a,
    4.75  .navigation a {
    4.76      padding: 0.25em 0.5em;
    4.77  }
    4.78  
    4.79  #navibar a:hover, #navibar a:focus, #navibar li.current a, #navibar li.current span,
    4.80 +.archives a:hover, .archives a:focus,
    4.81  .changeset-navigation a:hover, .changeset-navigation a:focus,
    4.82  .navigation a:hover, .navigation a:focus {
    4.83      background: #00b5f1;
    4.84  }
    4.85  
    4.86 +.feeds a:hover, .feeds a:focus {
    4.87 +    background: #f1b500;
    4.88 +}
    4.89 +
    4.90  #navibar a:hover, #navibar a:focus, #navibar li.current a,
    4.91 +.archives a:hover, .archives a:focus,
    4.92 +.feeds a:hover, .feeds a:focus,
    4.93  .changeset-navigation a:hover, .changeset-navigation a:focus,
    4.94  .navigation a:hover, .navigation a:focus {
    4.95      text-decoration: none;
    4.96 @@ -465,6 +488,10 @@
    4.97      font-size: 80%;
    4.98  }
    4.99  
   4.100 +tr.annotate td:first-child {
   4.101 +    width: 10%;
   4.102 +}
   4.103 +
   4.104  /* File views. */
   4.105  
   4.106  .permissions {