comparison pylons_app/templates/index.html @ 362:558eb7c5028f rhodecode-0.0.0.8.0

version bump to 0.8 hg app 0.8 new template. Add yui flot and graph into summary page. + various tweeks and patches into look of application
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 24 Jul 2010 02:17:48 +0200
parents 664a5b8c551a
children 5cd6616b8673
comparison
equal deleted inserted replaced
361:3581656180b7 362:558eb7c5028f
1 ## -*- coding: utf-8 -*- 1 ## -*- coding: utf-8 -*-
2 <%inherit file="base/base.html"/> 2 <%inherit file="base/base.html"/>
3 <%def name="title()"> 3 <%def name="title()">
4 ${c.repos_prefix} 4 ${c.hg_app_name}
5 </%def> 5 </%def>
6 <%def name="breadcrumbs()"> 6 <%def name="breadcrumbs()">
7 ${c.repos_prefix} 7 ${c.hg_app_name}
8 </%def> 8 </%def>
9 <%def name="page_nav()"> 9 <%def name="page_nav()">
10 ${self.menu('home')} 10 ${self.menu('home')}
11 </%def> 11 </%def>
12 <%def name="main()"> 12 <%def name="main()">
15 %if name_slug == c.cs_slug: 15 %if name_slug == c.cs_slug:
16 <span style="font-weight: bold;text-decoration: underline;">${name}</span> 16 <span style="font-weight: bold;text-decoration: underline;">${name}</span>
17 %else: 17 %else:
18 <span style="font-weight: bold">${name}</span> 18 <span style="font-weight: bold">${name}</span>
19 %endif 19 %endif
20 <a style="color:#FFF" href="?sort=${name_slug}">&darr;</a> 20 <a href="?sort=${name_slug}">&darr;</a>
21 <a style="color:#FFF" href="?sort=-${name_slug}">&uarr;</a> 21 <a href="?sort=-${name_slug}">&uarr;</a>
22 </%def> 22 </%def>
23 <table class="table_disp"> 23
24 <tr class="header"> 24
25 <td>${get_sort(_('Name'))}</td> 25
26 <td>${get_sort(_('Description'))}</td> 26 <div class="box">
27 <td>${get_sort(_('Last change'))}</td> 27 <!-- box / title -->
28 <td>${get_sort(_('Tip'))}</td> 28 <div class="title">
29 <td>${get_sort(_('Contact'))}</td> 29 <h5>${_('Dashboard')}</h5>
30 <td>${_('RSS')}</td> 30 </div>
31 <td>${_('Atom')}</td> 31 <!-- end box / title -->
32 </tr> 32 <div class="table">
33 %for cnt,repo in enumerate(c.repos_list): 33 <table>
34 %if h.HasRepoPermissionAny('repository.write','repository.read','repository.admin')(repo['name'],'main page check'): 34 <thead>
35 35 <tr>
36 <tr class="parity${cnt%2}"> 36 <th class="left">${get_sort(_('Name'))}</th>
37 <td> 37 <th class="left">${get_sort(_('Description'))}</th>
38 %if repo['repo'].dbrepo.private: 38 <th class="left">${get_sort(_('Last change'))}</th>
39 <img alt="${_('private')}" src="/images/icons/lock.png"> 39 <th class="left">${get_sort(_('Tip'))}</th>
40 %else: 40 <th class="left">${get_sort(_('Contact'))}</th>
41 <img alt="${_('public')}" src="/images/icons/lock_open.png"> 41 <th class="left">${_('RSS')}</th>
42 %endif 42 <th class="left">${_('Atom')}</th>
43 ${h.link_to(repo['name'], 43 </tr>
44 h.url('summary_home',repo_name=repo['name']))}</td> 44 </thead>
45 <td title="${repo['description']}">${h.truncate(repo['description'],60)}</td> 45 <tbody>
46 <td>${h.age(repo['last_change'])}</td> 46 %for cnt,repo in enumerate(c.repos_list):
47 <td>${h.link_to_if(repo['rev']>=0,'r%s:%s' % (repo['rev'],repo['tip']), 47 %if h.HasRepoPermissionAny('repository.write','repository.read','repository.admin')(repo['name'],'main page check'):
48 h.url('changeset_home',repo_name=repo['name'],revision=repo['tip']), 48 <tr class="parity${cnt%2}">
49 class_="tooltip", 49 <td>
50 tooltip_title=h.tooltip(repo['last_msg']))}</td> 50 %if repo['repo'].dbrepo.private:
51 <td title="${repo['contact']}">${h.person(repo['contact'])}</td> 51 <img alt="${_('private')}" src="/images/icons/lock.png"/>
52 <td> 52 %else:
53 <a title="${_('Subscribe to %s rss feed')%repo['name']}" class="rss_logo" href="${h.url('rss_feed_home',repo_name=repo['name'])}"></a> 53 <img alt="${_('public')}" src="/images/icons/lock_open.png"/>
54 </td> 54 %endif
55 <td> 55 ${h.link_to(repo['name'],
56 <a title="${_('Subscribe to %s atom feed')%repo['name']}" class="atom_logo" href="${h.url('atom_feed_home',repo_name=repo['name'])}"></a> 56 h.url('summary_home',repo_name=repo['name']))}</td>
57 </td> 57 <td title="${repo['description']}">${h.truncate(repo['description'],60)}</td>
58 </tr> 58 <td>${h.age(repo['last_change'])}</td>
59 %endif 59 <td>${h.link_to_if(repo['rev']>=0,'r%s:%s' % (repo['rev'],repo['tip']),
60 %endfor 60 h.url('changeset_home',repo_name=repo['name'],revision=repo['tip']),
61 </table> 61 class_="tooltip",
62 tooltip_title=h.tooltip(repo['last_msg']))}</td>
63 <td title="${repo['contact']}">${h.person(repo['contact'])}</td>
64 <td>
65 <a title="${_('Subscribe to %s rss feed')%repo['name']}" class="rss_icon" href="${h.url('rss_feed_home',repo_name=repo['name'])}"></a>
66 </td>
67 <td>
68 <a title="${_('Subscribe to %s atom feed')%repo['name']}" class="atom_icon" href="${h.url('atom_feed_home',repo_name=repo['name'])}"></a>
69 </td>
70 </tr>
71 %endif
72 %endfor
73 </tbody>
74 </table>
75 </div>
76 </div>
62 </%def> 77 </%def>