Mercurial > kallithea
comparison rhodecode/templates/admin/repos_groups/repos_groups.html @ 1193:523382549c45 beta
Added repo group page showing what reposiories are inside a group
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 01 Apr 2011 18:46:24 +0200 |
parents | |
children | a04fe5986109 |
comparison
equal
deleted
inserted
replaced
1192:01fe71db71f6 | 1193:523382549c45 |
---|---|
1 ## -*- coding: utf-8 -*- | |
2 <%inherit file="/base/base.html"/> | |
3 | |
4 <%def name="title()"> | |
5 ${_('Repository group')} - ${c.rhodecode_name} | |
6 </%def> | |
7 | |
8 | |
9 <%def name="breadcrumbs_links()"> | |
10 ${_('Group')} » ${c.group.group_name} - ${_(' %s repositories' % c.repo_cnt)} | |
11 </%def> | |
12 <%def name="page_nav()"> | |
13 ${self.menu('admin')} | |
14 </%def> | |
15 <%def name="main()"> | |
16 <%def name="get_sort(name)"> | |
17 <%name_slug = name.lower().replace(' ','_') %> | |
18 | |
19 %if name_slug == c.sort_slug: | |
20 %if c.sort_by.startswith('-'): | |
21 <a href="?sort=${name_slug}">${name}↑</a> | |
22 %else: | |
23 <a href="?sort=-${name_slug}">${name}↓</a> | |
24 %endif: | |
25 %else: | |
26 <a href="?sort=${name_slug}">${name}</a> | |
27 %endif | |
28 </%def> | |
29 <div class="box"> | |
30 <!-- box / title --> | |
31 <div class="title"> | |
32 ${self.breadcrumbs()} | |
33 </div> | |
34 <!-- end box / title --> | |
35 <div class="table"> | |
36 <table> | |
37 <thead> | |
38 <tr> | |
39 <th class="left">${get_sort(_('Name'))}</th> | |
40 <th class="left">${get_sort(_('Description'))}</th> | |
41 <th class="left">${get_sort(_('Last change'))}</th> | |
42 <th class="left">${get_sort(_('Tip'))}</th> | |
43 <th class="left">${get_sort(_('Owner'))}</th> | |
44 <th class="left">${_('RSS')}</th> | |
45 <th class="left">${_('Atom')}</th> | |
46 </tr> | |
47 </thead> | |
48 <tbody> | |
49 %for cnt,repo in enumerate(c.repos_list): | |
50 <tr class="parity${cnt%2}"> | |
51 <td> | |
52 <div style="white-space: nowrap"> | |
53 ## TYPE OF REPO | |
54 %if repo['dbrepo']['repo_type'] =='hg': | |
55 <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url("/images/icons/hgicon.png")}"/> | |
56 %elif repo['dbrepo']['repo_type'] =='git': | |
57 <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url("/images/icons/giticon.png")}"/> | |
58 %else: | |
59 | |
60 %endif | |
61 | |
62 ##PRIVATE/PUBLIC | |
63 %if repo['dbrepo']['private']: | |
64 <img class="icon" title="${_('private repository')}" alt="${_('private repository')}" src="${h.url("/images/icons/lock.png")}"/> | |
65 %else: | |
66 <img class="icon" title="${_('public repository')}" alt="${_('public repository')}" src="${h.url("/images/icons/lock_open.png")}"/> | |
67 %endif | |
68 | |
69 ##NAME | |
70 ${h.link_to(repo['name'], | |
71 h.url('summary_home',repo_name=repo['name']),class_="repo_name")} | |
72 %if repo['dbrepo_fork']: | |
73 <a href="${h.url('summary_home',repo_name=repo['dbrepo_fork']['repo_name'])}"> | |
74 <img class="icon" alt="${_('fork')}" | |
75 title="${_('Fork of')} ${repo['dbrepo_fork']['repo_name']}" | |
76 src="${h.url("/images/icons/arrow_divide.png")}"/></a> | |
77 %endif | |
78 </div> | |
79 </td> | |
80 ##DESCRIPTION | |
81 <td><span class="tooltip" title="${h.tooltip(repo['description'])}"> | |
82 ${h.truncate(repo['description'],60)}</span> | |
83 </td> | |
84 ##LAST CHANGE | |
85 <td> | |
86 <span class="tooltip" title="${repo['last_change']}"> | |
87 ${h.age(repo['last_change'])}</span> | |
88 </td> | |
89 <td> | |
90 %if repo['rev']>=0: | |
91 ${h.link_to('r%s:%s' % (repo['rev'],h.short_id(repo['tip'])), | |
92 h.url('changeset_home',repo_name=repo['name'],revision=repo['tip']), | |
93 class_="tooltip", | |
94 title=h.tooltip(repo['last_msg']))} | |
95 %else: | |
96 ${_('No changesets yet')} | |
97 %endif | |
98 </td> | |
99 <td title="${repo['contact']}">${h.person(repo['contact'])}</td> | |
100 <td> | |
101 %if c.rhodecode_user.username != 'default': | |
102 <a title="${_('Subscribe to %s rss feed')%repo['name']}" class="rss_icon" href="${h.url('rss_feed_home',repo_name=repo['name'],api_key=c.rhodecode_user.api_key)}"></a> | |
103 %else: | |
104 <a title="${_('Subscribe to %s rss feed')%repo['name']}" class="rss_icon" href="${h.url('rss_feed_home',repo_name=repo['name'])}"></a> | |
105 %endif: | |
106 </td> | |
107 <td> | |
108 %if c.rhodecode_user.username != 'default': | |
109 <a title="${_('Subscribe to %s atom feed')%repo['name']}" class="atom_icon" href="${h.url('atom_feed_home',repo_name=repo['name'],api_key=c.rhodecode_user.api_key)}"></a> | |
110 %else: | |
111 <a title="${_('Subscribe to %s atom feed')%repo['name']}" class="atom_icon" href="${h.url('atom_feed_home',repo_name=repo['name'])}"></a> | |
112 %endif: | |
113 </td> | |
114 </tr> | |
115 %endfor | |
116 </tbody> | |
117 </table> | |
118 </div> | |
119 </div> | |
120 | |
121 </%def> |