Mercurial > kallithea
annotate pylons_app/templates/admin/admin.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
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 24 May 2010 22:20:21 +0200 |
parents | 11e8eb5a92e3 |
children | 64e1125fc479 |
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"/> |
175
d69e19fc2795
removed login from admin, from now we're have to be globally logged in.
Marcin Kuzminski <marcin@python-works.com>
parents:
174
diff
changeset
|
3 |
44 | 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 ${_('Administration')} |
44 | 6 </%def> |
7 <%def name="breadcrumbs()"> | |
174
fec7d0707e72
fixed html in admin templates. Litle refactors
Marcin Kuzminski <marcin@python-works.com>
parents:
159
diff
changeset
|
8 ${h.link_to(u'Admin',h.url('admin_home'))} |
175
d69e19fc2795
removed login from admin, from now we're have to be globally logged in.
Marcin Kuzminski <marcin@python-works.com>
parents:
174
diff
changeset
|
9 / |
44 | 10 </%def> |
11 <%def name="page_nav()"> | |
182
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
175
diff
changeset
|
12 ${self.menu('admin')} |
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
|
13 ${self.submenu('')} |
44 | 14 </%def> |
15 <%def name="main()"> | |
16 %if c.admin_user: | |
175
d69e19fc2795
removed login from admin, from now we're have to be globally logged in.
Marcin Kuzminski <marcin@python-works.com>
parents:
174
diff
changeset
|
17 <div> |
d69e19fc2795
removed login from admin, from now we're have to be globally logged in.
Marcin Kuzminski <marcin@python-works.com>
parents:
174
diff
changeset
|
18 <h2>Welcome ${c.admin_username}</h2> |
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
|
19 ${_('Last actions')} |
175
d69e19fc2795
removed login from admin, from now we're have to be globally logged in.
Marcin Kuzminski <marcin@python-works.com>
parents:
174
diff
changeset
|
20 <div id="user_log"> |
d69e19fc2795
removed login from admin, from now we're have to be globally logged in.
Marcin Kuzminski <marcin@python-works.com>
parents:
174
diff
changeset
|
21 ${c.log_data} |
d69e19fc2795
removed login from admin, from now we're have to be globally logged in.
Marcin Kuzminski <marcin@python-works.com>
parents:
174
diff
changeset
|
22 </div> |
d69e19fc2795
removed login from admin, from now we're have to be globally logged in.
Marcin Kuzminski <marcin@python-works.com>
parents:
174
diff
changeset
|
23 </div> |
44 | 24 %else: |
175
d69e19fc2795
removed login from admin, from now we're have to be globally logged in.
Marcin Kuzminski <marcin@python-works.com>
parents:
174
diff
changeset
|
25 <h2>${_('Sorry only admin users can acces this area')}</h2> |
44 | 26 %endif |
27 | |
28 </%def> |