mercurial/templates/gitweb/index.tmpl
author Anton Shestakov <av6@dwimlabs.net>
Sun, 26 Jul 2015 00:11:23 +0800
branchstable
changeset 25871 20ed56771b21
parent 18258 bebb05a7e249
child 30765 eb7de21b15be
permissions -rw-r--r--
hgweb: show ages in repos' Last modified column in monoblue and gitweb Index page, which shows the list of available repositories, has a column where the last modification date for each repo is shown. paper, coal and spartan already show the dates in relative format (e.g. "2 weeks ago"), because these styles have the required process_dates() js function call in their footer templates, which are included on every page. But monoblue and gitweb styles have more things in the footer templates, such as repo name and its atom/rss links, so they don't include the footer on index page (as this page doesn't have a single repo context). Let's call process_dates() without including the footer.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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>