##// END OF EJS Templates
Moved summary to seperate controller,...
Moved summary to seperate controller, little cleanups in templates. added archives to summary

File last commit:

r80:92841608 default
r82:67071350 default
Show More
index.html
58 lines | 1.7 KiB | text/html | HtmlLexer
Marcin Kuzminski
Implemented index page using vcs
r55 ## -*- coding: utf-8 -*-
Marcin Kuzminski
initial commit.
r0
Marcin Kuzminski
Implemented index page using vcs
r55 <%inherit file="base/base.html"/>
<%def name="title()">
${c.repos_prefix} Mercurial Repositories
</%def>
<%def name="breadcrumbs()">
Marcin Kuzminski
Implemented main page sorting
r57 ${c.repos_prefix} Mercurial Repositories
Marcin Kuzminski
Implemented index page using vcs
r55 </%def>
<%def name="page_nav()">
<li class="current">${_('Home')}</li>
<li>${h.link_to(u'Admin',h.url('admin_home'))}</li>
Marcin Kuzminski
initial commit.
r0 </%def>
Marcin Kuzminski
Implemented index page using vcs
r55 <%def name="main()">
<%def name="get_sort(name)">
Marcin Kuzminski
Implemented main page sorting
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
Added last change translation to 'time ago', added generation of enabled zip archives
r56 %endif
Marcin Kuzminski
Implemented main page sorting
r57
<a href="?sort=${name_slug}">&darr;</a>
<a href="?sort=-${name_slug}">&uarr;</a>
Marcin Kuzminski
Implemented index page using vcs
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
Implemented main page sorting
r57 <td></td>
<td></td>
Marcin Kuzminski
Implemented index page using vcs
r55 </tr>
%for cnt,repo in enumerate(c.repos_list):
<tr class="parity${cnt%2}">
Marcin Kuzminski
reimplemented summary page,...
r80 <td>${h.link(repo['name'],h.url('summary_home',repo_name=repo['name']))}</td>
Marcin Kuzminski
Implemented main page sorting
r57 <td>${repo['description']}</td>
Marcin Kuzminski
reimplemented summary page,...
r80 <td>${repo['last_change']|n,self.f.age}</td>
Marcin Kuzminski
Added last change translation to 'time ago', added generation of enabled zip archives
r56 <td>r${repo['rev']}:<a href="/${repo['name']}/rev/${repo['tip']}/">${repo['tip']}</a></td>
Marcin Kuzminski
Implemented index page using vcs
r55 <td>${repo['contact']}</td>
<td class="indexlinks">
Marcin Kuzminski
Added last change translation to 'time ago', added generation of enabled zip archives
r56 %for archive in repo['repo_archives']:
<a href="/${repo['name']}/archive/${archive['node']}${archive['extension']}">${archive['type']}</a>
%endfor
Marcin Kuzminski
Implemented index page using vcs
r55 </td>
<td>
<div class="rss_logo">
<a href="/${repo['name']}/rss-log">RSS</a>
<a href="/${repo['name']}/atom-log">Atom</a>
</div>
</td>
</tr>
%endfor
</table>
</%def>