[PATCH] hgweb: add base link to file log for paper and coal styles (issue2452)
Kevin Gessner
kevin at fogcreek.com
Thu Mar 31 15:01:13 CDT 2011
# HG changeset patch
# User Kevin Gessner <kevin at fogcreek.com>
# Date 1301600993 14400
# Node ID 8aaf5d6751c984edf24e9561c303b6bc89a378eb
# Parent f1823b9f073bd376e19fc544c2891609458891e4
hgweb: add base link to file log for paper and coal styles (issue2452)
diff --git a/mercurial/templates/coal/map b/mercurial/templates/coal/map
--- a/mercurial/templates/coal/map
+++ b/mercurial/templates/coal/map
@@ -94,14 +94,12 @@
filerename = '{file|escape}@'
filelogrename = '
- <tr>
- <th>base:</th>
- <td>
- <a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
- {file|escape}@{node|short}
- </a>
- </td>
- </tr>'
+ <span class="base">
+ base
+ <a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
+ {file|escape}@{node|short}
+ </a>
+ </span>'
fileannotateparent = '
<tr>
<td class="metatag">parent:</td>
diff --git a/mercurial/templates/paper/filelogentry.tmpl
b/mercurial/templates/paper/filelogentry.tmpl
--- a/mercurial/templates/paper/filelogentry.tmpl
+++ b/mercurial/templates/paper/filelogentry.tmpl
@@ -1,5 +1,5 @@
<tr class="parity{parity}">
<td class="age">{date|age}</td>
<td class="author">{author|person}</td>
- <td class="description"><a
href="{url}rev/{node|short}{sessionvars%urlparameter}">{desc|strip|firstline|escape|nonempty}</a>{inbranch%changelogbranchname}{branches%changelogbranchhead}{tags%changelogtag}</td>
+ <td class="description"><a
href="{url}rev/{node|short}{sessionvars%urlparameter}">{desc|strip|firstline|escape|nonempty}</a>{inbranch%changelogbranchname}{branches%changelogbranchhead}{tags%changelogtag}{rename%filelogrename}</td>
</tr>
diff --git a/mercurial/templates/paper/map b/mercurial/templates/paper/map
--- a/mercurial/templates/paper/map
+++ b/mercurial/templates/paper/map
@@ -93,14 +93,12 @@
filerename = '{file|escape}@'
filelogrename = '
- <tr>
- <th>base:</th>
- <td>
- <a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
- {file|escape}@{node|short}
- </a>
- </td>
- </tr>'
+ <span class="base">
+ base
+ <a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
+ {file|escape}@{node|short}
+ </a>
+ </span>'
fileannotateparent = '
<tr>
<td class="metatag">parent:</td>
diff --git a/mercurial/templates/static/style-coal.css
b/mercurial/templates/static/style-coal.css
--- a/mercurial/templates/static/style-coal.css
+++ b/mercurial/templates/static/style-coal.css
@@ -173,6 +173,7 @@
.bigtable .age { width: 6em; }
.bigtable .author { width: 12em; }
.bigtable .description { }
+.bigtable .description .base { font-size: 70%; float: right;
line-height: 1.66; }
.bigtable .node { width: 5em; font-family: monospace;}
.bigtable .lineno { width: 2em; text-align: right;}
.bigtable .lineno a { color: #999; font-size: smaller; font-family: monospace;}
diff --git a/mercurial/templates/static/style-paper.css
b/mercurial/templates/static/style-paper.css
--- a/mercurial/templates/static/style-paper.css
+++ b/mercurial/templates/static/style-paper.css
@@ -164,6 +164,7 @@
.bigtable .age { width: 7em; }
.bigtable .author { width: 12em; }
.bigtable .description { }
+.bigtable .description .base { font-size: 70%; float: right;
line-height: 1.66; }
.bigtable .node { width: 5em; font-family: monospace;}
.bigtable .permissions { width: 8em; text-align: left;}
.bigtable .size { width: 5em; text-align: right; }
More information about the Mercurial-devel
mailing list