annotate mercurial/templates/gitweb/index.tmpl @ 26670:ab2cd800f1b0

gitweb: visually highlight source lines when hovering over line numbers Due to how the line links now reside outside of the source lines, hovering over line numbers doesn't count as hovering over the appropriate source line. It can be worked around by using a "+" css selector. However, it's necessary to reorder the elements and put <a> before <span> (which is actually quite logical). It works without further css tweaks because <a> is already absolute-positioned and so the order doesn't matter visually.
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 15 Oct 2015 00:04:58 +0800
parents 20ed56771b21
children eb7de21b15be
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 5820
diff changeset
1 {header}
3222
a5603ad915c5 Add gitweb style hgwebdir
Edouard Gomez <ed.gomez@free.fr>
parents:
diff changeset
2 <title>Mercurial repositories index</title>
a5603ad915c5 Add gitweb style hgwebdir
Edouard Gomez <ed.gomez@free.fr>
parents:
diff changeset
3 </head>
a5603ad915c5 Add gitweb style hgwebdir
Edouard Gomez <ed.gomez@free.fr>
parents:
diff changeset
4 <body>
a5603ad915c5 Add gitweb style hgwebdir
Edouard Gomez <ed.gomez@free.fr>
parents:
diff changeset
5
a5603ad915c5 Add gitweb style hgwebdir
Edouard Gomez <ed.gomez@free.fr>
parents:
diff changeset
6 <div class="page_header">
13964
616ad3f6fd33 hgweb: support alternate logo url
Steven Stallion <sstallion@gmail.com>
parents: 10301
diff changeset
7 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a>
18258
bebb05a7e249 hgweb: add a "URL breadcrumb" to the index and repository pages
Angel Ezquerra <angel.ezquerra at gmail.com>
parents: 13964
diff changeset
8 <a href="/">Mercurial</a> {pathdef%breadcrumb}
3222
a5603ad915c5 Add gitweb style hgwebdir
Edouard Gomez <ed.gomez@free.fr>
parents:
diff changeset
9 </div>
a5603ad915c5 Add gitweb style hgwebdir
Edouard Gomez <ed.gomez@free.fr>
parents:
diff changeset
10
a5603ad915c5 Add gitweb style hgwebdir
Edouard Gomez <ed.gomez@free.fr>
parents:
diff changeset
11 <table cellspacing="0">
a5603ad915c5 Add gitweb style hgwebdir
Edouard Gomez <ed.gomez@free.fr>
parents:
diff changeset
12 <tr>
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 5820
diff changeset
13 <td><a href="?sort={sort_name}">Name</a></td>
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 5820
diff changeset
14 <td><a href="?sort={sort_description}">Description</a></td>
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 5820
diff changeset
15 <td><a href="?sort={sort_contact}">Contact</a></td>
10301
56b50194617f templates: rename `Last change' column in hgwebdir repository list.
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents: 9999
diff changeset
16 <td><a href="?sort={sort_lastchange}">Last modified</a></td>
3222
a5603ad915c5 Add gitweb style hgwebdir
Edouard Gomez <ed.gomez@free.fr>
parents:
diff changeset
17 <td>&nbsp;</td>
5269
46c5e1ee8aaa Added support for the Atom syndication format
Robert Bachmann <rbach@rbach.priv.at>
parents: 3478
diff changeset
18 <td>&nbsp;</td>
5784
d17e57592909 Fixed XHTML validation errors
Kevin Christen <kevin.christen@gmail.com>
parents: 5269
diff changeset
19 </tr>
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 5820
diff changeset
20 {entries%indexentry}
3222
a5603ad915c5 Add gitweb style hgwebdir
Edouard Gomez <ed.gomez@free.fr>
parents:
diff changeset
21 </table>
a5603ad915c5 Add gitweb style hgwebdir
Edouard Gomez <ed.gomez@free.fr>
parents:
diff changeset
22 <div class="page_footer">
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 5820
diff changeset
23 {motd}
3222
a5603ad915c5 Add gitweb style hgwebdir
Edouard Gomez <ed.gomez@free.fr>
parents:
diff changeset
24 </div>
25871
20ed56771b21 hgweb: show ages in repos' Last modified column in monoblue and gitweb
Anton Shestakov <av6@dwimlabs.net>
parents: 18258
diff changeset
25 <script type="text/javascript">process_dates()</script>
3222
a5603ad915c5 Add gitweb style hgwebdir
Edouard Gomez <ed.gomez@free.fr>
parents:
diff changeset
26 </body>
a5603ad915c5 Add gitweb style hgwebdir
Edouard Gomez <ed.gomez@free.fr>
parents:
diff changeset
27 </html>