Mercurial > kallithea
comparison rhodecode/templates/admin/repos/repos.html @ 1512:bf263968da47
merge beta in stable branch
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 07 Oct 2011 01:08:50 +0200 |
parents | 3d9da7893fdb aaec08ad9daf |
children | 82a88013a3fd |
comparison
equal
deleted
inserted
replaced
1329:e058df3ff2b4 | 1512:bf263968da47 |
---|---|
17 <!-- box / title --> | 17 <!-- box / title --> |
18 <div class="title"> | 18 <div class="title"> |
19 ${self.breadcrumbs()} | 19 ${self.breadcrumbs()} |
20 <ul class="links"> | 20 <ul class="links"> |
21 <li> | 21 <li> |
22 <span>${h.link_to(u'ADD NEW REPOSITORY',h.url('new_repo'))}</span> | 22 <span>${h.link_to(_(u'ADD NEW REPOSITORY'),h.url('new_repo'))}</span> |
23 </li> | 23 </li> |
24 </ul> | 24 </ul> |
25 </div> | 25 </div> |
26 <!-- end box / title --> | 26 <!-- end box / title --> |
27 <div class="table"> | 27 <div class="table"> |
36 </tr> | 36 </tr> |
37 %for cnt,repo in enumerate(c.repos_list): | 37 %for cnt,repo in enumerate(c.repos_list): |
38 <tr class="parity${cnt%2}"> | 38 <tr class="parity${cnt%2}"> |
39 <td> | 39 <td> |
40 ## TYPE OF REPO | 40 ## TYPE OF REPO |
41 %if repo['repo'].dbrepo.repo_type =='hg': | 41 %if repo['dbrepo']['repo_type'] =='hg': |
42 <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url("/images/icons/hgicon.png")}"/> | 42 <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url('/images/icons/hgicon.png')}"/> |
43 %elif repo['repo'].dbrepo.repo_type =='git': | 43 %elif repo['dbrepo']['repo_type'] =='git': |
44 <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url("/images/icons/giticon.png")}"/> | 44 <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url('/images/icons/giticon.png')}"/> |
45 %else: | 45 %else: |
46 | 46 |
47 %endif | 47 %endif |
48 | 48 |
49 ## PRIVATE/PUBLIC REPO | 49 ## PRIVATE/PUBLIC REPO |
50 %if repo['repo'].dbrepo.private: | 50 %if repo['dbrepo']['private']: |
51 <img alt="${_('private')}" src="${h.url("/images/icons/lock.png")}"/> | 51 <img alt="${_('private')}" src="${h.url('/images/icons/lock.png')}"/> |
52 %else: | 52 %else: |
53 <img alt="${_('public')}" src="${h.url("/images/icons/lock_open.png")}"/> | 53 <img alt="${_('public')}" src="${h.url('/images/icons/lock_open.png')}"/> |
54 %endif | 54 %endif |
55 ${h.link_to(repo['name'],h.url('edit_repo',repo_name=repo['name']))} | 55 ${h.link_to(repo['name'],h.url('edit_repo',repo_name=repo['name']))} |
56 | 56 |
57 %if repo['repo'].dbrepo.fork: | 57 %if repo['dbrepo_fork']: |
58 <a href="${h.url('summary_home',repo_name=repo['repo'].dbrepo.fork.repo_name)}"> | 58 <a href="${h.url('summary_home',repo_name=repo['dbrepo_fork']['repo_name'])}"> |
59 <img class="icon" alt="${_('public')}" | 59 <img class="icon" alt="${_('public')}" |
60 title="${_('Fork of')} ${repo['repo'].dbrepo.fork.repo_name}" | 60 title="${_('Fork of')} ${repo['dbrepo_fork']['repo_name']}" |
61 src="${h.url("/images/icons/arrow_divide.png")}"/></a> | 61 src="${h.url("/images/icons/arrow_divide.png")}"/></a> |
62 %endif | 62 %endif |
63 </td> | 63 </td> |
64 <td title="${repo['description']}">${h.truncate(repo['description'],60)}</td> | 64 <td title="${repo['description']}">${h.truncate(repo['description'],60)}</td> |
65 <td>${h.age(repo['last_change'])}</td> | 65 <td>${h.age(repo['last_change'])}</td> |
74 %endif | 74 %endif |
75 </td> | 75 </td> |
76 <td title="${repo['contact']}">${h.person(repo['contact'])}</td> | 76 <td title="${repo['contact']}">${h.person(repo['contact'])}</td> |
77 <td> | 77 <td> |
78 ${h.form(url('repo', repo_name=repo['name']),method='delete')} | 78 ${h.form(url('repo', repo_name=repo['name']),method='delete')} |
79 ${h.submit('remove_%s' % repo['name'],'delete',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")} | 79 ${h.submit('remove_%s' % repo['name'],_('delete'),class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this repository')+"');")} |
80 ${h.end_form()} | 80 ${h.end_form()} |
81 </td> | 81 </td> |
82 </tr> | 82 </tr> |
83 %endfor | 83 %endfor |
84 </table> | 84 </table> |