view mercurial/templates/monoblue/index.tmpl @ 25871:20ed56771b21 stable

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.
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 26 Jul 2015 00:11:23 +0800
parents 0c3c0f123a1a
children b57d05ca8743
line wrap: on
line source

{header}
    <title>Mercurial repositories index</title>
</head>

<body>
<div id="container">
    <div class="page-header">
        <h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h1>
        <ul class="page-nav">
        </ul>
    </div>

    <table cellspacing="0">
        <tr>
            <td><a href="?sort={sort_name}">Name</a></td>
            <td><a href="?sort={sort_description}">Description</a></td>
            <td><a href="?sort={sort_contact}">Contact</a></td>
            <td><a href="?sort={sort_lastchange}">Last modified</a></td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        {entries%indexentry}
    </table>
    <div class="page-footer">
        {motd}
    </div>

    <div id="powered-by">
        <p><a href="{logourl}" title="Mercurial"><img src="{staticurl|urlescape}{logoimg}" width=75 height=90 border=0 alt="mercurial"></a></p>
    </div>

    <div id="corner-top-left"></div>
    <div id="corner-top-right"></div>
    <div id="corner-bottom-left"></div>
    <div id="corner-bottom-right"></div>

</div>
<script type="text/javascript">process_dates()</script>
</body>
</html>