Mercurial > hg
view mercurial/templates/paper/index.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 | 56b50194617f |
children | 44382887d012 |
line wrap: on
line source
{header} <title>Mercurial repositories index</title> </head> <body> <div class="container"> <div class="menu"> <a href="{logourl}"> <img src="{staticurl}hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a> </div> <div class="main"> <h2>Mercurial Repositories</h2> <table class="bigtable"> <tr> <th><a href="?sort={sort_name}">Name</a></th> <th><a href="?sort={sort_description}">Description</a></th> <th><a href="?sort={sort_contact}">Contact</a></th> <th><a href="?sort={sort_lastchange}">Last modified</a></th> <th> </th> </tr> {entries%indexentry} </table> </div> </div> {footer}