coal/paper: show link to latest file revision (issue1344)
authorDirkjan Ochtman <dirkjan@ochtman.nl>
Thu, 05 Nov 2009 14:26:37 +0100
changeset 9720 bb00a159e594
parent 9719 a73f9ee83832
child 9721 1d75c683ada1
coal/paper: show link to latest file revision (issue1344)
templates/paper/fileannotate.tmpl
templates/paper/filediff.tmpl
templates/paper/filerevision.tmpl
tests/test-hgweb-commands.out
tests/test-hgweb-diffs.out
tests/test-hgweb-removed.out
tests/test-highlight.out
--- a/templates/paper/fileannotate.tmpl	Thu Nov 05 11:51:35 2009 +0100
+++ b/templates/paper/fileannotate.tmpl	Thu Nov 05 14:26:37 2009 +0100
@@ -22,6 +22,7 @@
 </ul>
 <ul>
 <li><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">file</a></li>
+<li><a href="{url}file/tip/{file|urlescape}{sessionvars%urlparameter}">latest</a></li>
 <li><a href="{url}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a></li>
 <li class="active">annotate</li>
 <li><a href="{url}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">file log</a></li>
--- a/templates/paper/filediff.tmpl	Thu Nov 05 11:51:35 2009 +0100
+++ b/templates/paper/filediff.tmpl	Thu Nov 05 14:26:37 2009 +0100
@@ -21,6 +21,7 @@
 </ul>
 <ul>
 <li><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">file</a></li>
+<li><a href="{url}file/tip/{file|urlescape}{sessionvars%urlparameter}">latest</a></li>
 <li class="active">diff</li>
 <li><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">annotate</a></li>
 <li><a href="{url}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">file log</a></li>
--- a/templates/paper/filerevision.tmpl	Thu Nov 05 11:51:35 2009 +0100
+++ b/templates/paper/filerevision.tmpl	Thu Nov 05 14:26:37 2009 +0100
@@ -21,6 +21,7 @@
 </ul>
 <ul>
 <li class="active">file</li>
+<li><a href="{url}file/tip/{file|urlescape}{sessionvars%urlparameter}">latest</a></li>
 <li><a href="{url}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a></li>
 <li><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">annotate</a></li>
 <li><a href="{url}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">file log</a></li>
--- a/tests/test-hgweb-commands.out	Thu Nov 05 11:51:35 2009 +0100
+++ b/tests/test-hgweb-commands.out	Thu Nov 05 14:26:37 2009 +0100
@@ -394,6 +394,7 @@
 </ul>
 <ul>
 <li class="active">file</li>
+<li><a href="/file/tip/foo">latest</a></li>
 <li><a href="/diff/a4f92ed23982/foo">diff</a></li>
 <li><a href="/annotate/a4f92ed23982/foo">annotate</a></li>
 <li><a href="/log/a4f92ed23982/foo">file log</a></li>
--- a/tests/test-hgweb-diffs.out	Thu Nov 05 11:51:35 2009 +0100
+++ b/tests/test-hgweb-diffs.out	Thu Nov 05 14:26:37 2009 +0100
@@ -149,6 +149,7 @@
 </ul>
 <ul>
 <li><a href="/file/78e4ebad7cdf/a">file</a></li>
+<li><a href="/file/tip/a">latest</a></li>
 <li class="active">diff</li>
 <li><a href="/annotate/78e4ebad7cdf/a">annotate</a></li>
 <li><a href="/log/78e4ebad7cdf/a">file log</a></li>
@@ -357,6 +358,7 @@
 </ul>
 <ul>
 <li><a href="/file/78e4ebad7cdf/a">file</a></li>
+<li><a href="/file/tip/a">latest</a></li>
 <li class="active">diff</li>
 <li><a href="/annotate/78e4ebad7cdf/a">annotate</a></li>
 <li><a href="/log/78e4ebad7cdf/a">file log</a></li>
--- a/tests/test-hgweb-removed.out	Thu Nov 05 11:51:35 2009 +0100
+++ b/tests/test-hgweb-removed.out	Thu Nov 05 14:26:37 2009 +0100
@@ -121,6 +121,7 @@
 </ul>
 <ul>
 <li><a href="/file/c78f6c5cbea9/a">file</a></li>
+<li><a href="/file/tip/a">latest</a></li>
 <li class="active">diff</li>
 <li><a href="/annotate/c78f6c5cbea9/a">annotate</a></li>
 <li><a href="/log/c78f6c5cbea9/a">file log</a></li>
--- a/tests/test-highlight.out	Thu Nov 05 11:51:35 2009 +0100
+++ b/tests/test-highlight.out	Thu Nov 05 14:26:37 2009 +0100
@@ -33,6 +33,7 @@
 </ul>
 <ul>
 <li class="active">file</li>
+<li><a href="/file/tip/primes.py">latest</a></li>
 <li><a href="/diff/853dcd4de2a6/primes.py">diff</a></li>
 <li><a href="/annotate/853dcd4de2a6/primes.py">annotate</a></li>
 <li><a href="/log/853dcd4de2a6/primes.py">file log</a></li>
@@ -152,6 +153,7 @@
 </ul>
 <ul>
 <li><a href="/file/853dcd4de2a6/primes.py">file</a></li>
+<li><a href="/file/tip/primes.py">latest</a></li>
 <li><a href="/diff/853dcd4de2a6/primes.py">diff</a></li>
 <li class="active">annotate</li>
 <li><a href="/log/853dcd4de2a6/primes.py">file log</a></li>