index.html
62 lines
| 2.0 KiB
| text/html
|
HtmlLexer
Marcin Kuzminski
|
r55 | ## -*- coding: utf-8 -*- | ||
Marcin Kuzminski
|
r83 | <%! | ||
from pylons_app.lib import filters | ||||
%> | ||||
Marcin Kuzminski
|
r55 | <%inherit file="base/base.html"/> | ||
<%def name="title()"> | ||||
${c.repos_prefix} Mercurial Repositories | ||||
</%def> | ||||
<%def name="breadcrumbs()"> | ||||
Marcin Kuzminski
|
r57 | ${c.repos_prefix} Mercurial Repositories | ||
Marcin Kuzminski
|
r55 | </%def> | ||
<%def name="page_nav()"> | ||||
r186 | ${self.menu('home')} | |||
Marcin Kuzminski
|
r0 | </%def> | ||
Marcin Kuzminski
|
r55 | <%def name="main()"> | ||
<%def name="get_sort(name)"> | ||||
Marcin Kuzminski
|
r57 | <%name_slug = name.lower().replace(' ','_') %> | ||
%if name_slug == c.cs_slug: | ||||
<span style="font-weight: bold;color:#006699">${name}</span> | ||||
%else: | ||||
<span style="font-weight: bold">${name}</span> | ||||
Marcin Kuzminski
|
r56 | %endif | ||
Marcin Kuzminski
|
r57 | <a href="?sort=${name_slug}">↓</a> | ||
<a href="?sort=-${name_slug}">↑</a> | ||||
Marcin Kuzminski
|
r55 | </%def> | ||
<table> | ||||
<tr> | ||||
<td>${get_sort(_('Name'))}</td> | ||||
<td>${get_sort(_('Description'))}</td> | ||||
<td>${get_sort(_('Last change'))}</td> | ||||
<td>${get_sort(_('Tip'))}</td> | ||||
<td>${get_sort(_('Contact'))}</td> | ||||
Marcin Kuzminski
|
r57 | <td></td> | ||
<td></td> | ||||
r102 | <td></td> | |||
Marcin Kuzminski
|
r55 | </tr> | ||
%for cnt,repo in enumerate(c.repos_list): | ||||
<tr class="parity${cnt%2}"> | ||||
Marcin Kuzminski
|
r80 | <td>${h.link(repo['name'],h.url('summary_home',repo_name=repo['name']))}</td> | ||
Marcin Kuzminski
|
r57 | <td>${repo['description']}</td> | ||
Marcin Kuzminski
|
r83 | <td>${repo['last_change']|n,filters.age}</td> | ||
r225 | <td>${h.link_to('r%s:%s' % (repo['rev'],repo['tip']),h.url('changeset_home',repo_name=repo['name'],revision=repo['tip']))}</td> | |||
<td title="${repo['contact']}">${repo['contact']|n,filters.person}</td> | ||||
r210 | ||||
r225 | ##%for archive in repo['repo_archives']: | |||
##<td class="indexlinks"> | ||||
## ${h.link_to(archive['type'], | ||||
## h.url('files_archive_home',repo_name=repo['name'], | ||||
## revision='tip',fileformat=archive['extension']),class_="archive_logo" )} | ||||
##</td> | ||||
##%endfor | ||||
r210 | ||||
Marcin Kuzminski
|
r55 | <td> | ||
r205 | ${h.link_to(_('RSS'),h.url('rss_feed_home',repo_name=repo['name']),class_='rss_logo')} | |||
Marcin Kuzminski
|
r55 | </td> | ||
r102 | <td> | |||
r206 | ${h.link_to(_('Atom'),h.url('atom_feed_home',repo_name=repo['name']),class_='atom_logo')} | |||
r102 | </td> | |||
Marcin Kuzminski
|
r55 | </tr> | ||
%endfor | ||||
</table> | ||||
</%def> | ||||