Mercurial > kallithea
annotate pylons_app/templates/admin/admin.html @ 153:a5a3bcc5ee89
Added colored formatter to project, and configs
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 16 May 2010 15:06:20 +0200 |
parents | 20dc7a5eb748 |
children | 96285f905073 |
rev | line source |
---|---|
43 | 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:
108
diff
changeset
|
2 <%inherit file="/base/base.html"/> |
45 | 3 <%def name="get_form_error(element)"> |
108 | 4 %if hasattr(c,'form_errors'): |
5 %if type(c.form_errors) == dict: | |
6 %if c.form_errors.get(element,False): | |
7 <span class="error-message"> | |
8 ${c.form_errors.get(element,'')} | |
9 </span> | |
10 %endif | |
11 %endif | |
12 %endif | |
45 | 13 </%def> |
44 | 14 <%def name="title()"> |
15 ${_('Repository managment')} | |
16 </%def> | |
17 <%def name="breadcrumbs()"> | |
18 ${h.link_to(u'Home',h.url('/'))} | |
19 / | |
20 ${h.link_to(u'Admin',h.url('admin_home'))} | |
21 </%def> | |
22 <%def name="page_nav()"> | |
23 <li>${h.link_to(u'Home',h.url('/'))}</li> | |
24 <li class="current">${_('Admin')}</li> | |
25 </%def> | |
26 <%def name="main()"> | |
27 %if c.admin_user: | |
28 <ul class="submenu"> | |
29 <li> | |
47
f6ac79182600
Added rest controllers for repos and users,
Marcin Kuzminski <marcin@python-blog.com>
parents:
45
diff
changeset
|
30 ${h.link_to(u'Repos',h.url('repos'))} |
44 | 31 </li> |
32 <li> | |
47
f6ac79182600
Added rest controllers for repos and users,
Marcin Kuzminski <marcin@python-blog.com>
parents:
45
diff
changeset
|
33 ${h.link_to(u'Users',h.url('users'))} |
44 | 34 </li> |
35 </ul> | |
36 <br/> | |
37 <div> | |
62
4df4c0eac619
Updated admin to show last 5 actions + updated db model
Marcin Kuzminski <marcin@python-blog.com>
parents:
47
diff
changeset
|
38 <h2>Welcome ${c.admin_username}</h2> |
79
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
78
diff
changeset
|
39 <div id="user_log"> |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
78
diff
changeset
|
40 ${c.log_data} |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
78
diff
changeset
|
41 </div> |
43 | 42 </div> |
44 | 43 %else: |
44 <div> | |
45 <br /> | |
46 <h2>${_('Login')}</h2> | |
47 ${h.form(h.url.current())} | |
48 <table> | |
49 <tr> | |
50 <td>${_('Username')}</td> | |
51 <td>${h.text('username')}</td> | |
45 | 52 <td>${get_form_error('username')} </td> |
44 | 53 </tr> |
54 <tr> | |
55 <td>${_('Password')}</td> | |
45 | 56 <td>${h.password('password')}</td> |
57 <td>${get_form_error('password')}</td> | |
44 | 58 </tr> |
59 <tr> | |
60 <td></td> | |
61 <td>${h.submit('login','login')}</td> | |
62 </tr> | |
63 </table> | |
64 ${h.end_form()} | |
65 </div> | |
66 %endif | |
67 | |
68 </%def> |