MercurialWebTheme

Changeset

15:47c22ce46af0
2010-07-13 Paul Boddie raw files shortlog changelog graph Added the manifest (files) view template. Fixed links to this template from the changeset view. Fixed links to raw files from the file revision view.
themes/mercurialweb/changeset.tmpl (file) themes/mercurialweb/direntry.tmpl (file) themes/mercurialweb/fileentry.tmpl (file) themes/mercurialweb/filerevision.tmpl (file) themes/mercurialweb/manifest.tmpl (file) themes/mercurialweb/map (file) themes/mercurialweb/static/style-mercurialweb.css (file)
     1.1 --- a/themes/mercurialweb/changeset.tmpl	Tue Jul 13 19:21:52 2010 +0200
     1.2 +++ b/themes/mercurialweb/changeset.tmpl	Tue Jul 13 21:27:56 2010 +0200
     1.3 @@ -40,7 +40,7 @@
     1.4        <td>{author|person}</td>
     1.5        <td class="navigation">
     1.6          <a href="{url}raw-rev/{node|short}{sessionvars%urlparameter}">raw</a>
     1.7 -        <a href="{url}files/{node|short}{sessionvars%urlparameter}">files</a>
     1.8 +        <a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a>
     1.9          <a href="{url}shortlog/{node|short}{sessionvars%urlparameter}#{node|short}">shortlog</a>
    1.10        </td>
    1.11        <td width="50%">{desc|strip|escape}</td>
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/themes/mercurialweb/direntry.tmpl	Tue Jul 13 21:27:56 2010 +0200
     2.3 @@ -0,0 +1,8 @@
     2.4 +<tr class="parity{parity}">
     2.5 +  <td>
     2.6 +    <a href="{url}file/{node|short}{path|urlescape}{sessionvars%urlparameter}">{basename|escape}/</a>
     2.7 +    <a href="{url}file/{node|short}{path|urlescape}/{emptydirs|urlescape}{sessionvars%urlparameter}">{emptydirs|escape}</a>
     2.8 +  </td>
     2.9 +  <td></td>
    2.10 +  <td class="permissions">drwxr-xr-x</td>
    2.11 +</tr>
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/themes/mercurialweb/fileentry.tmpl	Tue Jul 13 21:27:56 2010 +0200
     3.3 @@ -0,0 +1,5 @@
     3.4 +<tr class="parity{parity}">
     3.5 +  <td><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{basename|escape}</a></td>
     3.6 +  <td>{size}</td>
     3.7 +  <td class="permissions">{permissions|permissions}</td>
     3.8 +</tr>
     4.1 --- a/themes/mercurialweb/filerevision.tmpl	Tue Jul 13 19:21:52 2010 +0200
     4.2 +++ b/themes/mercurialweb/filerevision.tmpl	Tue Jul 13 21:27:56 2010 +0200
     4.3 @@ -39,7 +39,7 @@
     4.4        <td>{date|age}</td>
     4.5        <td>{author|person}</td>
     4.6        <td class="navigation">
     4.7 -        <a href="{url}raw-file/{node|short}{sessionvars%urlparameter}">raw</a>
     4.8 +        <a href="{url}raw-file/{node|short}/{file|escape}{sessionvars%urlparameter}">raw</a>
     4.9          <a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a>
    4.10          <a href="{url}rev/{node|short}{sessionvars%urlparameter}">changeset</a>
    4.11        </td>
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/themes/mercurialweb/manifest.tmpl	Tue Jul 13 21:27:56 2010 +0200
     5.3 @@ -0,0 +1,53 @@
     5.4 +{header}
     5.5 +<title>{repo|escape} (shortlog)</title>
     5.6 +</head>
     5.7 +
     5.8 +<body>
     5.9 +
    5.10 +<div id="header">
    5.11 +  <div id="logo"><a href="{url}..{sessionvars%urlparameter}"><img src="{staticurl}mercurial-logo.png" alt="Mercurial logo" /></a></div>
    5.12 +  <div class="controls">
    5.13 +    <ul id="navibar">
    5.14 +    <li><a href="{url}summary{sessionvars%urlparameter}">Summary</a></li
    5.15 +    ><li><a href="{url}shortlog{sessionvars%urlparameter}">Shortlog</a></li
    5.16 +    ><li><a href="{url}changelog{sessionvars%urlparameter}">Changelog</a></li
    5.17 +    ><li><a href="{url}tags{sessionvars%urlparameter}">Tags</a></li
    5.18 +    ><li><a href="{url}branches{sessionvars%urlparameter}">Branches</a></li
    5.19 +    ><li class="current"><span>Files</span></li
    5.20 +    ><li><form id="searchform" action="{url}log"><span class="container">
    5.21 +        <span class="hint">Search</span>&nbsp;<input name="rev" id="searchinput" type="text" size="20" />
    5.22 +      </span>
    5.23 +      {sessionvars%hiddenformentry}
    5.24 +      </form>
    5.25 +    </li>
    5.26 +    </ul>
    5.27 +  </div>
    5.28 +  <div id="pageline"></div>
    5.29 +</div>
    5.30 +
    5.31 +<h2>{repo|escape}</h2>
    5.32 +
    5.33 +<p>{rev}:{node|short} <span>{branches%branchtag}{inbranch%inbranchtag}{tags%tagtag}</span></p>
    5.34 +
    5.35 +<h3>Files in {path|escape}</h3>
    5.36 +
    5.37 +<table>
    5.38 +  <thead>
    5.39 +    <tr>
    5.40 +      <th>Name</th>
    5.41 +      <th>Size</th>
    5.42 +      <th>Permissions</th>
    5.43 +    </tr>
    5.44 +  </thead>
    5.45 +  <tbody>
    5.46 +    <tr class="parity{upparity}">
    5.47 +      <td><a href="{url}file/{node|short}{up|urlescape}{sessionvars%urlparameter}">[up]</a></td>
    5.48 +      <td></td>
    5.49 +      <td class="permissions">drwxr-xr-x</td>
    5.50 +    </tr>
    5.51 +{dentries%direntry}
    5.52 +{fentries%fileentry}
    5.53 +  </tbody>
    5.54 +</table>
    5.55 +
    5.56 +{footer}
     6.1 --- a/themes/mercurialweb/map	Tue Jul 13 19:21:52 2010 +0200
     6.2 +++ b/themes/mercurialweb/map	Tue Jul 13 21:27:56 2010 +0200
     6.3 @@ -8,6 +8,7 @@
     6.4  header = header.tmpl
     6.5  footer = footer.tmpl
     6.6  index = index.tmpl
     6.7 +manifest = manifest.tmpl
     6.8  notfound = notfound.tmpl
     6.9  search = search.tmpl
    6.10  shortlog = shortlog.tmpl
    6.11 @@ -15,6 +16,8 @@
    6.12  tags = tags.tmpl
    6.13  
    6.14  branchentry = branchentry.tmpl
    6.15 +direntry = direntry.tmpl
    6.16 +fileentry = fileentry.tmpl
    6.17  indexentry = indexentry.tmpl
    6.18  searchentry = searchentry.tmpl
    6.19  shortlogentry = shortlogentry.tmpl
     7.1 --- a/themes/mercurialweb/static/style-mercurialweb.css	Tue Jul 13 19:21:52 2010 +0200
     7.2 +++ b/themes/mercurialweb/static/style-mercurialweb.css	Tue Jul 13 21:27:56 2010 +0200
     7.3 @@ -380,3 +380,13 @@
     7.4  .atline {
     7.5      color: #990;
     7.6  }
     7.7 +
     7.8 +/* File views. */
     7.9 +
    7.10 +.permissions {
    7.11 +    font-family: monospace;
    7.12 +
    7.13 +    /* Monospace inline text frequently looks smaller than the surrounding text. */
    7.14 +
    7.15 +    font-size: 120%;
    7.16 +}