Mercurial > kallithea
comparison rhodecode/templates/admin/repos/repos.html @ 547:1e757ac98988
renamed project to rhodecode
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 06 Oct 2010 03:18:16 +0200 |
parents | pylons_app/templates/admin/repos/repos.html@6fc59ac322ca |
children | 136ad719d9e2 |
comparison
equal
deleted
inserted
replaced
546:7c2f5e4d7bbf | 547:1e757ac98988 |
---|---|
1 ## -*- coding: utf-8 -*- | |
2 <%inherit file="/base/base.html"/> | |
3 | |
4 <%def name="title()"> | |
5 ${_('Repositories administration')} | |
6 </%def> | |
7 | |
8 | |
9 <%def name="breadcrumbs_links()"> | |
10 ${h.link_to(_('Admin'),h.url('admin_home'))} » ${_('Repositories')} | |
11 </%def> | |
12 <%def name="page_nav()"> | |
13 ${self.menu('admin')} | |
14 </%def> | |
15 <%def name="main()"> | |
16 <div class="box"> | |
17 <!-- box / title --> | |
18 <div class="title"> | |
19 ${self.breadcrumbs()} | |
20 <ul class="links"> | |
21 <li> | |
22 <span>${h.link_to(u'ADD NEW REPOSITORY',h.url('new_repo'),class_="add_icon")}</span> | |
23 </li> | |
24 </ul> | |
25 </div> | |
26 <!-- end box / title --> | |
27 <div class="table"> | |
28 <table class="table_disp"> | |
29 <tr class="header"> | |
30 <th class="left">${_('Name')}</th> | |
31 <th class="left">${_('Description')}</th> | |
32 <th class="left">${_('Last change')}</th> | |
33 <th class="left">${_('Tip')}</th> | |
34 <th class="left">${_('Contact')}</th> | |
35 <th class="left">${_('action')}</th> | |
36 </tr> | |
37 %for cnt,repo in enumerate(c.repos_list): | |
38 <tr class="parity${cnt%2}"> | |
39 <td> | |
40 %if repo['repo'].dbrepo.private: | |
41 <img alt="${_('private')}" src="/images/icons/lock.png"/> | |
42 %else: | |
43 <img alt="${_('public')}" src="/images/icons/lock_open.png"/> | |
44 %endif | |
45 ${h.link_to(repo['name'],h.url('edit_repo',repo_name=repo['name']))} | |
46 | |
47 %if repo['repo'].dbrepo.fork: | |
48 <a href="${h.url('summary_home',repo_name=repo['repo'].dbrepo.fork.repo_name)}"> | |
49 <img class="icon" alt="${_('public')}" | |
50 title="${_('Fork of')} ${repo['repo'].dbrepo.fork.repo_name}" | |
51 src="/images/icons/arrow_divide.png"/></a> | |
52 %endif | |
53 </td> | |
54 <td title="${repo['description']}">${h.truncate(repo['description'],60)}</td> | |
55 <td>${h.age(repo['last_change'])}</td> | |
56 <td> | |
57 %if repo['rev']>=0: | |
58 ${h.link_to('r%s:%s' % (repo['rev'],repo['tip']), | |
59 h.url('changeset_home',repo_name=repo['name'],revision=repo['tip']), | |
60 class_="tooltip", | |
61 tooltip_title=h.tooltip(repo['last_msg']))} | |
62 %else: | |
63 ${_('No changesets yet')} | |
64 %endif | |
65 </td> | |
66 <td title="${repo['contact']}">${h.person(repo['contact'])}</td> | |
67 <td> | |
68 ${h.form(url('repo', repo_name=repo['name']),method='delete')} | |
69 ${h.submit('remove_%s' % repo['name'],'delete',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")} | |
70 ${h.end_form()} | |
71 </td> | |
72 </tr> | |
73 %endfor | |
74 </table> | |
75 </div> | |
76 </div> | |
77 | |
78 </%def> |