Mercurial > kallithea
annotate pylons_app/templates/index.html @ 370:5df93e22eec0
user edit form html fix
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 27 Jul 2010 15:57:21 +0200 |
parents | 558eb7c5028f |
children | 5cd6616b8673 |
rev | line source |
---|---|
55
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
1 ## -*- coding: utf-8 -*- |
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
2 <%inherit file="base/base.html"/> |
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
3 <%def name="title()"> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
4 ${c.hg_app_name} |
55
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
5 </%def> |
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
6 <%def name="breadcrumbs()"> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
7 ${c.hg_app_name} |
55
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="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
|
10 ${self.menu('home')} |
0 | 11 </%def> |
55
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
12 <%def name="main()"> |
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
13 <%def name="get_sort(name)"> |
57
e96bc5a01490
Implemented main page sorting
Marcin Kuzminski <marcin@python-blog.com>
parents:
56
diff
changeset
|
14 <%name_slug = name.lower().replace(' ','_') %> |
e96bc5a01490
Implemented main page sorting
Marcin Kuzminski <marcin@python-blog.com>
parents:
56
diff
changeset
|
15 %if name_slug == c.cs_slug: |
268
bd70107ef256
main html update
Marcin Kuzminski <marcin@python-works.com>
parents:
260
diff
changeset
|
16 <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
|
17 %else: |
e96bc5a01490
Implemented main page sorting
Marcin Kuzminski <marcin@python-blog.com>
parents:
56
diff
changeset
|
18 <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
|
19 %endif |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
20 <a href="?sort=${name_slug}">↓</a> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
21 <a href="?sort=-${name_slug}">↑</a> |
55
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
22 </%def> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
23 |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
24 |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
25 |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
26 <div class="box"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
27 <!-- box / title --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
28 <div class="title"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
29 <h5>${_('Dashboard')}</h5> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
30 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
31 <!-- end box / title --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
32 <div class="table"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
33 <table> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
34 <thead> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
35 <tr> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
36 <th class="left">${get_sort(_('Name'))}</th> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
37 <th class="left">${get_sort(_('Description'))}</th> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
38 <th class="left">${get_sort(_('Last change'))}</th> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
39 <th class="left">${get_sort(_('Tip'))}</th> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
40 <th class="left">${get_sort(_('Contact'))}</th> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
41 <th class="left">${_('RSS')}</th> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
42 <th class="left">${_('Atom')}</th> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
43 </tr> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
44 </thead> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
45 <tbody> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
46 %for cnt,repo in enumerate(c.repos_list): |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
47 %if h.HasRepoPermissionAny('repository.write','repository.read','repository.admin')(repo['name'],'main page check'): |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
48 <tr class="parity${cnt%2}"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
49 <td> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
50 %if repo['repo'].dbrepo.private: |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
51 <img alt="${_('private')}" src="/images/icons/lock.png"/> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
52 %else: |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
53 <img alt="${_('public')}" src="/images/icons/lock_open.png"/> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
54 %endif |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
55 ${h.link_to(repo['name'], |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
56 h.url('summary_home',repo_name=repo['name']))}</td> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
57 <td title="${repo['description']}">${h.truncate(repo['description'],60)}</td> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
58 <td>${h.age(repo['last_change'])}</td> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
59 <td>${h.link_to_if(repo['rev']>=0,'r%s:%s' % (repo['rev'],repo['tip']), |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
60 h.url('changeset_home',repo_name=repo['name'],revision=repo['tip']), |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
61 class_="tooltip", |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
62 tooltip_title=h.tooltip(repo['last_msg']))}</td> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
63 <td title="${repo['contact']}">${h.person(repo['contact'])}</td> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
64 <td> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
65 <a title="${_('Subscribe to %s rss feed')%repo['name']}" class="rss_icon" href="${h.url('rss_feed_home',repo_name=repo['name'])}"></a> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
66 </td> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
67 <td> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
68 <a title="${_('Subscribe to %s atom feed')%repo['name']}" class="atom_icon" href="${h.url('atom_feed_home',repo_name=repo['name'])}"></a> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
69 </td> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
70 </tr> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
71 %endif |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
72 %endfor |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
73 </tbody> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
74 </table> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
75 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
350
diff
changeset
|
76 </div> |
55
e00dccb6f211
Implemented index page using vcs
Marcin Kuzminski <marcin@python-blog.com>
parents:
0
diff
changeset
|
77 </%def> |