MercurialWebTheme

Changeset

34:99b93d5119cd
2011-03-20 Paul Boddie raw files shortlog changelog graph Introduced links to changeset locations in the graph view from various views. Changed the navigation controls in the changelog and changeset views to wrap at the end of a line.
themes/mercurialweb/changelogentry.tmpl (file) themes/mercurialweb/changeset.tmpl (file) themes/mercurialweb/static/style-mercurialweb.css (file)
     1.1 --- a/themes/mercurialweb/changelogentry.tmpl	Mon Mar 14 01:13:22 2011 +0100
     1.2 +++ b/themes/mercurialweb/changelogentry.tmpl	Sun Mar 20 17:38:34 2011 +0100
     1.3 @@ -8,10 +8,11 @@
     1.4  <tr class="parity{parity}">
     1.5    <td>{date|age}</td>
     1.6    <td>{author|person|xmlescape}</td>
     1.7 -  <td class="navigation">
     1.8 +  <td class="changeset-navigation">
     1.9      <a href="{url}rev/{node|short}{sessionvars%urlparameter}">changeset</a>
    1.10      <a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a>
    1.11      <a href="{url}shortlog/{node|short}{sessionvars%urlparameter}#{node|short}">shortlog</a>
    1.12 +    <a href="{url}graph/{node|short}{sessionvars%urlparameter}#{node|short}">graph</a>
    1.13    </td>
    1.14    <td width="40%" class="description">{desc|strip|escape}</td>
    1.15    <td>{branches%branchtag}{inbranch%inbranchtag}{tags%tagtag}</td>
     2.1 --- a/themes/mercurialweb/changeset.tmpl	Mon Mar 14 01:13:22 2011 +0100
     2.2 +++ b/themes/mercurialweb/changeset.tmpl	Sun Mar 20 17:38:34 2011 +0100
     2.3 @@ -38,11 +38,12 @@
     2.4      <tr>
     2.5        <td>{date|age}</td>
     2.6        <td>{author|person|xmlescape}</td>
     2.7 -      <td class="navigation">
     2.8 +      <td class="changeset-navigation">
     2.9          <a href="{url}raw-rev/{node|short}{sessionvars%urlparameter}">raw</a>
    2.10          <a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a>
    2.11          <a href="{url}shortlog/{node|short}{sessionvars%urlparameter}#{node|short}">shortlog</a>
    2.12          <a href="{url}changelog/{node|short}{sessionvars%urlparameter}#{node|short}">changelog</a>
    2.13 +        <a href="{url}graph/{node|short}{sessionvars%urlparameter}#{node|short}">graph</a>
    2.14        </td>
    2.15        <td width="50%" class="description">{desc|strip|escape}</td>
    2.16        <td>{branches%branchtag}{inbranch%inbranchtag}{tags%tagtag}</td>
     3.1 --- a/themes/mercurialweb/static/style-mercurialweb.css	Mon Mar 14 01:13:22 2011 +0100
     3.2 +++ b/themes/mercurialweb/static/style-mercurialweb.css	Sun Mar 20 17:38:34 2011 +0100
     3.3 @@ -155,7 +155,9 @@
     3.4      display: inline;
     3.5  }
     3.6  
     3.7 -#navibar a, #navibar li.current span, .navigation a {
     3.8 +#navibar a, #navibar li.current span,
     3.9 +.changeset-navigation a,
    3.10 +.navigation a {
    3.11      color: #fff;
    3.12      text-decoration: none;
    3.13  }
    3.14 @@ -164,10 +166,15 @@
    3.15      background: #999;
    3.16  }
    3.17  
    3.18 +.changeset-navigation {
    3.19 +    line-height: 2em;
    3.20 +}
    3.21 +
    3.22  .navigation {
    3.23      white-space: nowrap;
    3.24  }
    3.25  
    3.26 +.changeset-navigation a,
    3.27  .navigation a {
    3.28      background: #ccc;
    3.29  }
    3.30 @@ -184,16 +191,19 @@
    3.31      padding: 0 16px;
    3.32  }
    3.33  
    3.34 +.changeset-navigation a,
    3.35  .navigation a {
    3.36      padding: 0.25em 0.5em;
    3.37  }
    3.38  
    3.39  #navibar a:hover, #navibar a:focus, #navibar li.current a, #navibar li.current span,
    3.40 +.changeset-navigation a:hover, .changeset-navigation a:focus,
    3.41  .navigation a:hover, .navigation a:focus {
    3.42      background: #00b5f1;
    3.43  }
    3.44  
    3.45  #navibar a:hover, #navibar a:focus, #navibar li.current a,
    3.46 +.changeset-navigation a:hover, .changeset-navigation a:focus,
    3.47  .navigation a:hover, .navigation a:focus {
    3.48      text-decoration: none;
    3.49  }