Mercurial > hg
changeset 18200:b31266671918
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.
author | Angel Ezquerra <angel.ezquerra@gmail.com> |
---|---|
date | Tue, 04 Dec 2012 00:41:29 +0100 |
parents | d57879e72e18 |
children | 2efc6536ea43 |
files | mercurial/templates/paper/bookmarks.tmpl mercurial/templates/paper/branches.tmpl mercurial/templates/paper/filelog.tmpl mercurial/templates/paper/graph.tmpl mercurial/templates/paper/shortlog.tmpl mercurial/templates/paper/tags.tmpl mercurial/templates/static/feed-icon-14x14.png mercurial/templates/static/style-paper.css tests/test-hgweb-commands.t tests/test-hgweb-empty.t tests/test-hgweb-filelog.t |
diffstat | 11 files changed, 84 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/templates/paper/bookmarks.tmpl Sun Dec 30 19:19:52 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">
--- a/mercurial/templates/paper/branches.tmpl Sun Dec 30 19:19:52 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">
--- a/mercurial/templates/paper/filelog.tmpl Sun Dec 30 19:19:52 2012 +0100 +++ b/mercurial/templates/paper/filelog.tmpl Tue Dec 04 00:41:29 2012 +0100 @@ -35,6 +35,11 @@ <ul> <li><a href="{url}help{sessionvars%urlparameter}">help</a></li> </ul> +<p> +<div class="atom-logo"> +<a href="{url}atom-log/{node|short}/{file|urlescape}" title="subscribe to atom feed"> +<img class="atom-logo" src="{staticurl}feed-icon-14x14.png" alt="atom feed"></a> +</div> </div> <div class="main">
--- a/mercurial/templates/paper/graph.tmpl Sun Dec 30 19:19:52 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">
--- a/mercurial/templates/paper/shortlog.tmpl Sun Dec 30 19:19:52 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">
--- a/mercurial/templates/paper/tags.tmpl Sun Dec 30 19:19:52 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">
--- a/mercurial/templates/static/style-paper.css Sun Dec 30 19:19:52 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 {
--- a/tests/test-hgweb-commands.t Sun Dec 30 19:19:52 2012 +0100 +++ b/tests/test-hgweb-commands.t Tue Dec 04 00:41:29 2012 +0100 @@ -275,6 +275,12 @@ <ul> <li><a href="/help">help</a></li> </ul> + <p> + <div class="atom-logo"> + <a href="/atom-log" title="subscribe to atom feed"> + <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed"> + </a> + </div> </div> <div class="main">
--- a/tests/test-hgweb-empty.t Sun Dec 30 19:19:52 2012 +0100 +++ b/tests/test-hgweb-empty.t Tue Dec 04 00:41:29 2012 +0100 @@ -48,6 +48,12 @@ <ul> <li><a href="/help">help</a></li> </ul> + <p> + <div class="atom-logo"> + <a href="/atom-log" title="subscribe to atom feed"> + <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed"> + </a> + </div> </div> <div class="main"> @@ -133,6 +139,12 @@ <ul> <li><a href="/help">help</a></li> </ul> + <p> + <div class="atom-logo"> + <a href="/atom-log" title="subscribe to atom feed"> + <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed"> + </a> + </div> </div> <div class="main"> @@ -216,6 +228,12 @@ <ul> <li><a href="/help">help</a></li> </ul> + <p> + <div class="atom-logo"> + <a href="/atom-log" title="subscribe to atom feed"> + <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed"> + </a> + </div> </div> <div class="main">
--- a/tests/test-hgweb-filelog.t Sun Dec 30 19:19:52 2012 +0100 +++ b/tests/test-hgweb-filelog.t Tue Dec 04 00:41:29 2012 +0100 @@ -156,6 +156,11 @@ <ul> <li><a href="/help">help</a></li> </ul> + <p> + <div class="atom-logo"> + <a href="/atom-log/01de2d66a28d/a" title="subscribe to atom feed"> + <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed"></a> + </div> </div> <div class="main"> @@ -258,6 +263,11 @@ <ul> <li><a href="/help">help</a></li> </ul> + <p> + <div class="atom-logo"> + <a href="/atom-log/01de2d66a28d/a" title="subscribe to atom feed"> + <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed"></a> + </div> </div> <div class="main"> @@ -360,6 +370,11 @@ <ul> <li><a href="/help">help</a></li> </ul> + <p> + <div class="atom-logo"> + <a href="/atom-log/5ed941583260/a" title="subscribe to atom feed"> + <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed"></a> + </div> </div> <div class="main"> @@ -457,6 +472,11 @@ <ul> <li><a href="/help">help</a></li> </ul> + <p> + <div class="atom-logo"> + <a href="/atom-log/5ed941583260/a" title="subscribe to atom feed"> + <img class="atom-logo" src="/static/feed-icon-14x14.png" alt="atom feed"></a> + </div> </div> <div class="main">