MercurialWebTheme

Changeset

30:925d89f7f113
2011-02-26 Paul Boddie raw files shortlog changelog graph Tidied up the presentation of changelog entries and changesets, making full commit messages preformatted text, and confining file lists to the commit message column. Added file diffs to search result entries.
themes/mercurialweb/changelogentry.tmpl (file) themes/mercurialweb/changeset.tmpl (file) themes/mercurialweb/searchentry.tmpl (file) themes/mercurialweb/static/style-mercurialweb.css (file)
     1.1 --- a/themes/mercurialweb/changelogentry.tmpl	Sat Feb 26 02:00:27 2011 +0100
     1.2 +++ b/themes/mercurialweb/changelogentry.tmpl	Sat Feb 26 18:26:23 2011 +0100
     1.3 @@ -1,11 +1,11 @@
     1.4 -<tr id="{node|short}">
     1.5 +<tr class="parity{parity}" id="{node|short}">
     1.6    <td colspan="5">
     1.7      <strong>{rev}:{node|short}</strong>
     1.8      <span class="changesetlinks"><div class="changesetchildlinks"></div>{child%changeloglink}</span>
     1.9      <span class="changesetlinks"><div class="changesetparentlinks"></div>{parent%changeloglink}</span>
    1.10    </td>
    1.11  </tr>
    1.12 -<tr>
    1.13 +<tr class="parity{parity}">
    1.14    <td>{date|age}</td>
    1.15    <td>{author|person|xmlescape}</td>
    1.16    <td class="navigation">
    1.17 @@ -16,8 +16,10 @@
    1.18    <td width="40%">{desc|strip|escape}</td>
    1.19    <td>{branches%branchtag}{inbranch%inbranchtag}{tags%tagtag}</td>
    1.20  </tr>
    1.21 -<tr>
    1.22 -  <td colspan="5" class="files changelogfiles">
    1.23 +<tr class="parity{parity}">
    1.24 +  <td colspan="3"></td>
    1.25 +  <td class="files changelogfiles">
    1.26      {files}
    1.27    </td>
    1.28 +  <td></td>
    1.29  </tr>
     2.1 --- a/themes/mercurialweb/changeset.tmpl	Sat Feb 26 02:00:27 2011 +0100
     2.2 +++ b/themes/mercurialweb/changeset.tmpl	Sat Feb 26 18:26:23 2011 +0100
     2.3 @@ -43,11 +43,13 @@
     2.4          <a href="{url}shortlog/{node|short}{sessionvars%urlparameter}#{node|short}">shortlog</a>
     2.5          <a href="{url}changelog/{node|short}{sessionvars%urlparameter}#{node|short}">changelog</a>
     2.6        </td>
     2.7 -      <td width="50%">{desc|strip|escape}</td>
     2.8 +      <td width="50%" class="description">{desc|strip|escape}</td>
     2.9        <td>{branches%branchtag}{inbranch%inbranchtag}{tags%tagtag}</td>
    2.10      </tr>
    2.11      <tr>
    2.12 -      <td colspan="5" class="files">{files}</td>
    2.13 +      <td colspan="3"></td>
    2.14 +      <td class="files">{files}</td>
    2.15 +      <td></td>
    2.16      </tr>
    2.17    </tbody>
    2.18  </table>
     3.1 --- a/themes/mercurialweb/searchentry.tmpl	Sat Feb 26 02:00:27 2011 +0100
     3.2 +++ b/themes/mercurialweb/searchentry.tmpl	Sat Feb 26 18:26:23 2011 +0100
     3.3 @@ -1,6 +1,14 @@
     3.4  <tr class="parity{parity}">
     3.5    <td>{date|age}</td>
     3.6    <td>{author|person|xmlescape}</td>
     3.7 -  <td><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{desc|strip|firstline|escape}</a></td>
     3.8 -  <td><a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a></td>
     3.9 +  <td class="navigation">
    3.10 +    <a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a>
    3.11 +    <a href="{url}shortlog/{node|short}{sessionvars%urlparameter}#{node|short}">shortlog</a>
    3.12 +    <a href="{url}changelog/{node|short}{sessionvars%urlparameter}#{node|short}">changelog</a>
    3.13 +  </td>
    3.14 +  <td width="50%"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{desc|strip|firstline|escape}</a></td>
    3.15  </tr>
    3.16 +<tr class="parity{parity}">
    3.17 +  <td colspan="3"></td>
    3.18 +  <td class="files searchentryfiles">{files}</td>
    3.19 +</tr>
     4.1 --- a/themes/mercurialweb/static/style-mercurialweb.css	Sat Feb 26 02:00:27 2011 +0100
     4.2 +++ b/themes/mercurialweb/static/style-mercurialweb.css	Sat Feb 26 18:26:23 2011 +0100
     4.3 @@ -320,7 +320,7 @@
     4.4  
     4.5  /* Changeset and changelog presentation. */
     4.6  
     4.7 -.changelogfiles {
     4.8 +.changelogfiles, .searchentryfiles {
     4.9      border-bottom: 1px solid #ccc;
    4.10  }
    4.11  
    4.12 @@ -340,6 +340,11 @@
    4.13      display: block;
    4.14  }
    4.15  
    4.16 +.description {
    4.17 +    font-family: monospace;
    4.18 +    white-space: pre;
    4.19 +}
    4.20 +
    4.21  /* Position changeset labels at a fixed distance from the left margin. */
    4.22  
    4.23  .changesetparentlinks,
    4.24 @@ -364,6 +369,10 @@
    4.25      margin-left: 1em;
    4.26  }
    4.27  
    4.28 +.files {
    4.29 +    font-size: smaller;
    4.30 +}
    4.31 +
    4.32  .files span:before {
    4.33      content: '| ';
    4.34  }