Mercurial > kallithea
annotate pylons_app/templates/index.html @ 268:bd70107ef256
main html update
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 07 Jun 2010 10:26:50 +0200 |
parents | 6ada8c223374 |
children | cd2ee462fc2c |
rev | line source |
---|---|
55
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
1 ## -*- coding: utf-8 -*- |
83
db39d0ca5308
implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
80
diff
changeset
|
2 <%! |
db39d0ca5308
implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
80
diff
changeset
|
3 from pylons_app.lib import filters |
db39d0ca5308
implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
80
diff
changeset
|
4 %> |
55
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
5 <%inherit file="base/base.html"/> |
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
6 <%def name="title()"> |
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
7 ${c.repos_prefix} Mercurial Repositories |
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
8 </%def> |
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
9 <%def name="breadcrumbs()"> |
57
e96bc5a01490
Implemented main page sorting
Marcin Kuzminski <marcin@python-blog.com>
parents:
56
diff
changeset
|
10 ${c.repos_prefix} Mercurial Repositories |
55
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
11 </%def> |
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
12 <%def name="page_nav()"> |
186
556473ba0399
fixed menu in home page, and added login html with forms that validates username and password.
Marcin Kuzminski <marcin@python-works.com>
parents:
157
diff
changeset
|
13 ${self.menu('home')} |
0 | 14 </%def> |
55
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
15 <%def name="main()"> |
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
16 <%def name="get_sort(name)"> |
57
e96bc5a01490
Implemented main page sorting
Marcin Kuzminski <marcin@python-blog.com>
parents:
56
diff
changeset
|
17 <%name_slug = name.lower().replace(' ','_') %> |
e96bc5a01490
Implemented main page sorting
Marcin Kuzminski <marcin@python-blog.com>
parents:
56
diff
changeset
|
18 %if name_slug == c.cs_slug: |
268
bd70107ef256
main html update
Marcin Kuzminski <marcin@python-works.com>
parents:
260
diff
changeset
|
19 <span style="font-weight: bold;text-decoration: underline;">${name}</span> |
57
e96bc5a01490
Implemented main page sorting
Marcin Kuzminski <marcin@python-blog.com>
parents:
56
diff
changeset
|
20 %else: |
e96bc5a01490
Implemented main page sorting
Marcin Kuzminski <marcin@python-blog.com>
parents:
56
diff
changeset
|
21 <span style="font-weight: bold">${name}</span> |
56
bf1b64046c79
Added last change translation to 'time ago', added generation of enabled zip archives
Marcin Kuzminski <marcin@python-blog.com>
parents:
55
diff
changeset
|
22 %endif |
268
bd70107ef256
main html update
Marcin Kuzminski <marcin@python-works.com>
parents:
260
diff
changeset
|
23 <a style="color:#FFF" href="?sort=${name_slug}">↓</a> |
bd70107ef256
main html update
Marcin Kuzminski <marcin@python-works.com>
parents:
260
diff
changeset
|
24 <a style="color:#FFF" href="?sort=-${name_slug}">↑</a> |
55
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
25 </%def> |
268
bd70107ef256
main html update
Marcin Kuzminski <marcin@python-works.com>
parents:
260
diff
changeset
|
26 <table class="table_disp"> |
bd70107ef256
main html update
Marcin Kuzminski <marcin@python-works.com>
parents:
260
diff
changeset
|
27 <tr class="header"> |
55
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
28 <td>${get_sort(_('Name'))}</td> |
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
29 <td>${get_sort(_('Description'))}</td> |
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
30 <td>${get_sort(_('Last change'))}</td> |
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
31 <td>${get_sort(_('Tip'))}</td> |
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
32 <td>${get_sort(_('Contact'))}</td> |
268
bd70107ef256
main html update
Marcin Kuzminski <marcin@python-works.com>
parents:
260
diff
changeset
|
33 <td>${_('RSS')}</td> |
bd70107ef256
main html update
Marcin Kuzminski <marcin@python-works.com>
parents:
260
diff
changeset
|
34 <td>${_('Atom')}</td> |
55
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
35 </tr> |
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
36 %for cnt,repo in enumerate(c.repos_list): |
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
37 <tr class="parity${cnt%2}"> |
80
928416088790
reimplemented summary page,
Marcin Kuzminski <marcin@python-blog.com>
parents:
57
diff
changeset
|
38 <td>${h.link(repo['name'],h.url('summary_home',repo_name=repo['name']))}</td> |
260
6ada8c223374
made global funcion to clean repo names, and remove all special chars from the name.
Marcin Kuzminski <marcin@python-works.com>
parents:
259
diff
changeset
|
39 <td title="${repo['description']}">${h.truncate(repo['description'],60)}</td> |
83
db39d0ca5308
implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
80
diff
changeset
|
40 <td>${repo['last_change']|n,filters.age}</td> |
225
710e7a75bb6b
templating update, improved look & feel, version bump
Marcin Kuzminski <marcin@python-works.com>
parents:
210
diff
changeset
|
41 <td>${h.link_to('r%s:%s' % (repo['rev'],repo['tip']),h.url('changeset_home',repo_name=repo['name'],revision=repo['tip']))}</td> |
710e7a75bb6b
templating update, improved look & feel, version bump
Marcin Kuzminski <marcin@python-works.com>
parents:
210
diff
changeset
|
42 <td title="${repo['contact']}">${repo['contact']|n,filters.person}</td> |
55
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
43 <td> |
268
bd70107ef256
main html update
Marcin Kuzminski <marcin@python-works.com>
parents:
260
diff
changeset
|
44 <a title="${_('Subscribe to %s rss feed')%repo['name']}" class="rss_logo" href="${h.url('rss_feed_home',repo_name=repo['name'])}"></a> |
55
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
45 </td> |
102
2dc0c8e4f384
Updated tempaltes, added file browser breadcrumbs, and feed icons
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
46 <td> |
268
bd70107ef256
main html update
Marcin Kuzminski <marcin@python-works.com>
parents:
260
diff
changeset
|
47 <a title="${_('Subscribe to %s atom feed')%repo['name']}" class="atom_logo" href="${h.url('atom_feed_home',repo_name=repo['name'])}"></a> |
102
2dc0c8e4f384
Updated tempaltes, added file browser breadcrumbs, and feed icons
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
48 </td> |
55
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
49 </tr> |
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
50 %endfor |
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
51 </table> |
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
52 </%def> |