##// END OF EJS Templates
rewritten db manage script to use sqlalchemy. Fixed sqlalchemy models to more generic.
rewritten db manage script to use sqlalchemy. Fixed sqlalchemy models to more generic.

File last commit:

r225:710e7a75 rhodecode-0.0.0.7.5 default
r226:c6526b75 default
Show More
index.html
62 lines | 2.0 KiB | text/html | HtmlLexer
Marcin Kuzminski
Implemented index page using vcs
r55 ## -*- coding: utf-8 -*-
Marcin Kuzminski
implemented Shortlog as seperate controller,...
r83 <%!
from pylons_app.lib import filters
%>
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()">
fixed menu in home page, and added login html with forms that validates username and password.
r186 ${self.menu('home')}
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>
Updated tempaltes, added file browser breadcrumbs, and feed icons
r102 <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
implemented Shortlog as seperate controller,...
r83 <td>${repo['last_change']|n,filters.age}</td>
templating update, improved look & feel, version bump
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>
Css changes, added icon pack.
r210
templating update, improved look & feel, version bump
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
Css changes, added icon pack.
r210
Marcin Kuzminski
Implemented index page using vcs
r55 <td>
Added feed controllers, urls,and changed index page to use them.
r205 ${h.link_to(_('RSS'),h.url('rss_feed_home',repo_name=repo['name']),class_='rss_logo')}
Marcin Kuzminski
Implemented index page using vcs
r55 </td>
Updated tempaltes, added file browser breadcrumbs, and feed icons
r102 <td>
fixed a typo on feed url generation
r206 ${h.link_to(_('Atom'),h.url('atom_feed_home',repo_name=repo['name']),class_='atom_logo')}
Updated tempaltes, added file browser breadcrumbs, and feed icons
r102 </td>
Marcin Kuzminski
Implemented index page using vcs
r55 </tr>
%endfor
</table>
</%def>