comparison pylons_app/templates/admin/repos/repos.html @ 531:6fc59ac322ca

added info about forked repository in few places added autoloading of parent(forked) for each such repository
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 01 Oct 2010 00:53:38 +0200
parents 86a25ad59766
children
comparison
equal deleted inserted replaced
530:a08f610e545e 531:6fc59ac322ca
25 </div> 25 </div>
26 <!-- end box / title --> 26 <!-- end box / title -->
27 <div class="table"> 27 <div class="table">
28 <table class="table_disp"> 28 <table class="table_disp">
29 <tr class="header"> 29 <tr class="header">
30 <th class="left">${_('name')}</th> 30 <th class="left">${_('Name')}</th>
31 <th class="left">${_('owner')}</th> 31 <th class="left">${_('Description')}</th>
32 <th class="left">${_('last revision')}</th> 32 <th class="left">${_('Last change')}</th>
33 <th class="left">${_('Tip')}</th>
34 <th class="left">${_('Contact')}</th>
33 <th class="left">${_('action')}</th> 35 <th class="left">${_('action')}</th>
34 </tr> 36 </tr>
35 %for cnt,repo in enumerate(c.repos_list): 37 %for cnt,repo in enumerate(c.repos_list):
36 <tr class="parity${cnt%2}"> 38 <tr class="parity${cnt%2}">
37 <td> 39 <td>
38 %if repo['repo'].dbrepo.private: 40 %if repo['repo'].dbrepo.private:
39 <img alt="${_('private')}" src="/images/icons/lock.png"/> 41 <img alt="${_('private')}" src="/images/icons/lock.png"/>
40 %else: 42 %else:
41 <img alt="${_('public')}" src="/images/icons/lock_open.png"/> 43 <img alt="${_('public')}" src="/images/icons/lock_open.png"/>
42 %endif 44 %endif
43 ${h.link_to(repo['name'],h.url('edit_repo',repo_name=repo['name']))}</td> 45 ${h.link_to(repo['name'],h.url('edit_repo',repo_name=repo['name']))}
44 <td>${repo['contact']}</td> 46
45 <td>r${repo['rev']}:${repo['tip']}</td> 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>
46 <td> 67 <td>
47 ${h.form(url('repo', repo_name=repo['name']),method='delete')} 68 ${h.form(url('repo', repo_name=repo['name']),method='delete')}
48 ${h.submit('remove_%s' % repo['name'],'delete',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")} 69 ${h.submit('remove_%s' % repo['name'],'delete',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")}
49 ${h.end_form()} 70 ${h.end_form()}
50 </td> 71 </td>