[PATCH 1 of 2 V3] hgweb: add (Atom) subscribe link to the main paper template pages
Angel Ezquerra
angel.ezquerra at gmail.com
Thu Dec 20 15:33:00 CST 2012
# HG changeset patch
# User Angel Ezquerra <angel.ezquerra at gmail.com>
# Date 1354578089 -3600
# Node ID a6a46c80a4847eea523cb8b82403571185b3488d
# Parent 8ceabb34f1cb5469b7dd6b2d7b1ce4727d719e65
hgweb: add (Atom) subscribe link to the main paper template pages
The subscribe link is found at the bottom of the navigation sidebar.
This uses a free icon from http://feedicons.com.
diff -r 8ceabb34f1cb -r a6a46c80a484 mercurial/templates/paper/bookmarks.tmpl
--- a/mercurial/templates/paper/bookmarks.tmpl Wed Dec 19 10:02:43 2012 +0100
+++ b/mercurial/templates/paper/bookmarks.tmpl Tue Dec 04 00:41:29 2012 +0100
@@ -23,6 +23,12 @@
<ul>
<li><a href="{url}help{sessionvars%urlparameter}">help</a></li>
</ul>
+<p>
+<div class="atom-logo">
+<a href="{url}atom-bookmarks" title="subscribe to atom feed">
+<img class="atom-logo" src="{staticurl}feed-icon-14x14.png" alt="atom feed">
+</a>
+</div>
</div>
<div class="main">
diff -r 8ceabb34f1cb -r a6a46c80a484 mercurial/templates/paper/branches.tmpl
--- a/mercurial/templates/paper/branches.tmpl Wed Dec 19 10:02:43 2012 +0100
+++ b/mercurial/templates/paper/branches.tmpl Tue Dec 04 00:41:29 2012 +0100
@@ -23,6 +23,12 @@
<ul>
<li><a href="{url}help{sessionvars%urlparameter}">help</a></li>
</ul>
+<p>
+<div class="atom-logo">
+<a href="{url}atom-branches" title="subscribe to atom feed">
+<img class="atom-logo" src="{staticurl}feed-icon-14x14.png" alt="atom feed">
+</a>
+</div>
</div>
<div class="main">
diff -r 8ceabb34f1cb -r a6a46c80a484 mercurial/templates/paper/graph.tmpl
--- a/mercurial/templates/paper/graph.tmpl Wed Dec 19 10:02:43 2012 +0100
+++ b/mercurial/templates/paper/graph.tmpl Tue Dec 04 00:41:29 2012 +0100
@@ -28,6 +28,12 @@
<ul>
<li><a href="{url}help{sessionvars%urlparameter}">help</a></li>
</ul>
+<p>
+<div class="atom-logo">
+<a href="{url}atom-log" title="subscribe to atom feed">
+<img class="atom-logo" src="{staticurl}feed-icon-14x14.png" alt="atom feed">
+</a>
+</div>
</div>
<div class="main">
diff -r 8ceabb34f1cb -r a6a46c80a484 mercurial/templates/paper/shortlog.tmpl
--- a/mercurial/templates/paper/shortlog.tmpl Wed Dec 19 10:02:43 2012 +0100
+++ b/mercurial/templates/paper/shortlog.tmpl Tue Dec 04 00:41:29 2012 +0100
@@ -30,6 +30,12 @@
<ul>
<li><a href="{url}help{sessionvars%urlparameter}">help</a></li>
</ul>
+<p>
+<div class="atom-logo">
+<a href="{url}atom-log" title="subscribe to atom feed">
+<img class="atom-logo" src="{staticurl}feed-icon-14x14.png" alt="atom feed">
+</a>
+</div>
</div>
<div class="main">
diff -r 8ceabb34f1cb -r a6a46c80a484 mercurial/templates/paper/tags.tmpl
--- a/mercurial/templates/paper/tags.tmpl Wed Dec 19 10:02:43 2012 +0100
+++ b/mercurial/templates/paper/tags.tmpl Tue Dec 04 00:41:29 2012 +0100
@@ -23,6 +23,11 @@
<ul>
<li><a href="{url}help{sessionvars%urlparameter}">help</a></li>
</ul>
+<p>
+<div class="atom-logo">
+<a href="{url}atom-tags" title="subscribe to atom feed">
+<img class="atom-logo" src="{staticurl}feed-icon-14x14.png" alt="atom feed"></a>
+</div>
</div>
<div class="main">
diff -r 8ceabb34f1cb -r a6a46c80a484 mercurial/templates/static/feed-icon-14x14.png
Binary file mercurial/templates/static/feed-icon-14x14.png has changed
diff -r 8ceabb34f1cb -r a6a46c80a484 mercurial/templates/static/style-paper.css
--- a/mercurial/templates/static/style-paper.css Wed Dec 19 10:02:43 2012 +0100
+++ b/mercurial/templates/static/style-paper.css Tue Dec 04 00:41:29 2012 +0100
@@ -60,6 +60,12 @@
border: 0;
}
+.atom-logo img{
+ width: 14px;
+ height: 14px;
+ border: 0;
+}
+
.menu a { color: black; display: block; }
.search {
More information about the Mercurial-devel
mailing list