annotate mercurial/templates/paper/branches.tmpl @ 13964:616ad3f6fd33

hgweb: support alternate logo url Clicking on the logo image/text in the hgweb interface brings the user to the Mercurial project page. The majority of users expect that this would bring them to the top level index. I have added a new template variable named `logourl' which allows an administrator to change this behavior. To stay compatible with existing behavior, `logourl' will default to http://mercurial.selenic.com/. This change is very useful in large installations where jumping to the index is common.
author Steven Stallion <sstallion@gmail.com>
date Tue, 19 Apr 2011 23:37:06 -0400
parents 38c9837b1f75
children 44382887d012
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8353
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
1 {header}
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
2 <title>{repo|escape}: branches</title>
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
3 <link rel="alternate" type="application/atom+xml"
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
4 href="{url}atom-tags" title="Atom feed for {repo|escape}: branches" />
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
5 <link rel="alternate" type="application/rss+xml"
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
6 href="{url}rss-tags" title="RSS feed for {repo|escape}: branches" />
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
7 </head>
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
8 <body>
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
9
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
10 <div class="container">
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
11 <div class="menu">
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
12 <div class="logo">
13964
616ad3f6fd33 hgweb: support alternate logo url
Steven Stallion <sstallion@gmail.com>
parents: 13597
diff changeset
13 <a href="{logourl}">
8353
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
14 <img src="{staticurl}hglogo.png" alt="mercurial" /></a>
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
15 </div>
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
16 <ul>
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
17 <li><a href="{url}shortlog{sessionvars%urlparameter}">log</a></li>
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
18 <li><a href="{url}graph{sessionvars%urlparameter}">graph</a></li>
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
19 <li><a href="{url}tags{sessionvars%urlparameter}">tags</a></li>
13597
38c9837b1f75 hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents: 13176
diff changeset
20 <li><a href="{url}bookmarks{sessionvars%urlparameter}">bookmarks</a></li>
8353
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
21 <li class="active">branches</li>
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
22 </ul>
12846
4b334f8c941b templates: fix inconsistency in 'help' link
Pradeepkumar Gayam <in3xes@gmail.com>
parents: 9999
diff changeset
23 <ul>
4b334f8c941b templates: fix inconsistency in 'help' link
Pradeepkumar Gayam <in3xes@gmail.com>
parents: 9999
diff changeset
24 <li><a href="{url}help{sessionvars%urlparameter}">help</a></li>
4b334f8c941b templates: fix inconsistency in 'help' link
Pradeepkumar Gayam <in3xes@gmail.com>
parents: 9999
diff changeset
25 </ul>
8353
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
26 </div>
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
27
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
28 <div class="main">
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
29 <h2><a href="{url}{sessionvars%urlparameter}">{repo|escape}</a></h2>
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
30 <h3>branches</h3>
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
31
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
32 <form class="search" action="{url}log">
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
33 {sessionvars%hiddenformentry}
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
34 <p><input name="rev" id="search1" type="text" size="30" /></p>
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
35 <div id="hint">find changesets by author, revision,
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
36 files, or words in the commit message</div>
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
37 </form>
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
38
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
39 <table class="bigtable">
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
40 <tr>
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
41 <th>branch</th>
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
42 <th>node</th>
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
43 </tr>
13176
895f54a79c6e templater: use the parser.py parser to extend the templater syntax
Matt Mackall <mpm@selenic.com>
parents: 12846
diff changeset
44 {entries %
895f54a79c6e templater: use the parser.py parser to extend the templater syntax
Matt Mackall <mpm@selenic.com>
parents: 12846
diff changeset
45 ' <tr class="tagEntry parity{parity}">
895f54a79c6e templater: use the parser.py parser to extend the templater syntax
Matt Mackall <mpm@selenic.com>
parents: 12846
diff changeset
46 <td>
895f54a79c6e templater: use the parser.py parser to extend the templater syntax
Matt Mackall <mpm@selenic.com>
parents: 12846
diff changeset
47 <a href="{url}shortlog/{node|short}{sessionvars%urlparameter}" class="{status}">
895f54a79c6e templater: use the parser.py parser to extend the templater syntax
Matt Mackall <mpm@selenic.com>
parents: 12846
diff changeset
48 {branch|escape}
895f54a79c6e templater: use the parser.py parser to extend the templater syntax
Matt Mackall <mpm@selenic.com>
parents: 12846
diff changeset
49 </a>
895f54a79c6e templater: use the parser.py parser to extend the templater syntax
Matt Mackall <mpm@selenic.com>
parents: 12846
diff changeset
50 </td>
895f54a79c6e templater: use the parser.py parser to extend the templater syntax
Matt Mackall <mpm@selenic.com>
parents: 12846
diff changeset
51 <td class="node">
895f54a79c6e templater: use the parser.py parser to extend the templater syntax
Matt Mackall <mpm@selenic.com>
parents: 12846
diff changeset
52 {node|short}
895f54a79c6e templater: use the parser.py parser to extend the templater syntax
Matt Mackall <mpm@selenic.com>
parents: 12846
diff changeset
53 </td>
895f54a79c6e templater: use the parser.py parser to extend the templater syntax
Matt Mackall <mpm@selenic.com>
parents: 12846
diff changeset
54 </tr>'
895f54a79c6e templater: use the parser.py parser to extend the templater syntax
Matt Mackall <mpm@selenic.com>
parents: 12846
diff changeset
55 }
8353
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
56 </table>
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
57 </div>
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
58 </div>
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
59
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
60 {footer}