annotate pylons_app/templates/admin/repos/repos.html @ 375:3e55d9981c0e

templating fixes
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 28 Jul 2010 23:38:06 +0200
parents 0f35fa0f4eb8
children 86a25ad59766
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
216
c8162373f214 Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
Marcin Kuzminski <marcin@python-works.com>
parents: 182
diff changeset
1 ## -*- coding: utf-8 -*-
127
20dc7a5eb748 Html changes and cleanups, made folders for html templates, implemented tags and branches pages
Marcin Kuzminski <marcin@python-works.com>
parents: 105
diff changeset
2 <%inherit file="/base/base.html"/>
216
c8162373f214 Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
Marcin Kuzminski <marcin@python-works.com>
parents: 182
diff changeset
3
44
d924b931b488 Added managment pages.
marcink
parents:
diff changeset
4 <%def name="title()">
216
c8162373f214 Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
Marcin Kuzminski <marcin@python-works.com>
parents: 182
diff changeset
5 ${_('Repositories administration')}
44
d924b931b488 Added managment pages.
marcink
parents:
diff changeset
6 </%def>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
7
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
8
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
9 <%def name="breadcrumbs_links()">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
10 ${h.link_to(_('Admin'),h.url('admin_home'))} &raquo; ${_('Repositories')}
44
d924b931b488 Added managment pages.
marcink
parents:
diff changeset
11 </%def>
d924b931b488 Added managment pages.
marcink
parents:
diff changeset
12 <%def name="page_nav()">
182
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 174
diff changeset
13 ${self.menu('admin')}
44
d924b931b488 Added managment pages.
marcink
parents:
diff changeset
14 </%def>
d924b931b488 Added managment pages.
marcink
parents:
diff changeset
15 <%def name="main()">
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
16 <div class="box">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
17 <!-- box / title -->
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
18 <div class="title">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
19 ${self.breadcrumbs()}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
20 <ul class="links">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
21 <li>
375
3e55d9981c0e templating fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 366
diff changeset
22 <span>${h.link_to(u'ADD NEW REPOSITORY',h.url('new_repo'),class_="add_icon")}</span>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
23 </li>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
24 </ul>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
25 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
26 <!-- end box / title -->
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
27 <div class="table">
219
64e1125fc479 html + css changes, added icons and etc.
Marcin Kuzminski <marcin@python-works.com>
parents: 216
diff changeset
28 <table class="table_disp">
64e1125fc479 html + css changes, added icons and etc.
Marcin Kuzminski <marcin@python-works.com>
parents: 216
diff changeset
29 <tr class="header">
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
30 <th class="left">${_('name')}</th>
366
0f35fa0f4eb8 fixed some html and styles, added owner into admin repo list
Marcin Kuzminski <marcin@python-works.com>
parents: 362
diff changeset
31 <th class="left">${_('owner')}</th>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
32 <th class="left">${_('last revision')}</th>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
33 <th class="left">${_('action')}</th>
219
64e1125fc479 html + css changes, added icons and etc.
Marcin Kuzminski <marcin@python-works.com>
parents: 216
diff changeset
34 </tr>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
35 %for cnt,repo in enumerate(c.repos_list):
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
36 <tr class="parity${cnt%2}">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
37 <td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
38 %if repo['repo'].dbrepo.private:
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
39 <img alt="${_('private')}" src="/images/icons/lock.png"/>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
40 %else:
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
41 <img alt="${_('public')}" src="/images/icons/lock_open.png"/>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
42 %endif
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
43 ${h.link_to(repo['name'],h.url('edit_repo',repo_name=repo['name']))}</td>
366
0f35fa0f4eb8 fixed some html and styles, added owner into admin repo list
Marcin Kuzminski <marcin@python-works.com>
parents: 362
diff changeset
44 <td>${repo['contact']}</td>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
45 <td>r${repo['rev']}:${repo['tip']}</td>
58
8fb1abd4178a Added hg model,implemented removal of repos, added HgModel for fetching repos(with generator)
Marcin Kuzminski <marcin@python-blog.com>
parents: 48
diff changeset
46 <td>
299
d303aacb3349 repos crud controllers - change id into repo_name for compatability, added ajax repo perm user function variuos html fixes, permissions forms and managment fixes.
Marcin Kuzminski <marcin@python-works.com>
parents: 230
diff changeset
47 ${h.form(url('repo', repo_name=repo['name']),method='delete')}
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
48 ${h.submit('remove','delete',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")}
58
8fb1abd4178a Added hg model,implemented removal of repos, added HgModel for fetching repos(with generator)
Marcin Kuzminski <marcin@python-blog.com>
parents: 48
diff changeset
49 ${h.end_form()}
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
50 </td>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
51 </tr>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
52 %endfor
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
53 </table>
44
d924b931b488 Added managment pages.
marcink
parents:
diff changeset
54 </div>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
55 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 324
diff changeset
56
216
c8162373f214 Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
Marcin Kuzminski <marcin@python-works.com>
parents: 182
diff changeset
57 </%def>