Mercurial > kallithea
annotate pylons_app/templates/base/base.html @ 260:6ada8c223374
made global funcion to clean repo names, and remove all special chars from the name.
Switched message slug into webhelpers function
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 06 Jun 2010 21:54:54 +0200 |
parents | dee1913f7f5a |
children | 408c66ecdad4 |
rev | line source |
---|---|
0 | 1 ## -*- coding: utf-8 -*- |
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
143
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
109
diff
changeset
|
3 <html xmlns="http://www.w3.org/1999/xhtml" id="mainhtml"> |
0 | 4 <head> |
101
8b06c420491d
statics moved to pylons.
Marcin Kuzminski <marcin@python-works.com>
parents:
98
diff
changeset
|
5 <link rel="icon" href="/images/hgicon.png" type="image/png" /> |
44 | 6 <meta name="robots" content="index, nofollow"/> |
98
01d0f363f36d
added pygments webhelper
Marcin Kuzminski <marcin@python-works.com>
parents:
91
diff
changeset
|
7 <title>${next.title()}</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:
208
diff
changeset
|
8 ##For future use yui reset for cross browser compatability. |
143
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
109
diff
changeset
|
9 ##<link rel="stylesheet" href="/js/yui/reset-fonts-grids/reset-fonts-grids.css" type="text/css" /> |
98
01d0f363f36d
added pygments webhelper
Marcin Kuzminski <marcin@python-works.com>
parents:
91
diff
changeset
|
10 ${self.css()} |
79
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
74
diff
changeset
|
11 ${self.js()} |
0 | 12 </head> |
13 | |
143
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
109
diff
changeset
|
14 <body class="mainbody"> |
44 | 15 <div id="container"> |
16 <div class="page-header"> | |
155
42d916306766
updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents:
154
diff
changeset
|
17 <h1>${next.breadcrumbs()}</h1> |
42d916306766
updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents:
154
diff
changeset
|
18 ${self.page_nav()} |
237
f188b156603d
Added flash messages support
Marcin Kuzminski <marcin@python-works.com>
parents:
225
diff
changeset
|
19 <div class="flash_msg"> |
f188b156603d
Added flash messages support
Marcin Kuzminski <marcin@python-works.com>
parents:
225
diff
changeset
|
20 <% messages = h.flash.pop_messages() %> |
f188b156603d
Added flash messages support
Marcin Kuzminski <marcin@python-works.com>
parents:
225
diff
changeset
|
21 % if messages: |
f188b156603d
Added flash messages support
Marcin Kuzminski <marcin@python-works.com>
parents:
225
diff
changeset
|
22 <ul id="flash-messages"> |
f188b156603d
Added flash messages support
Marcin Kuzminski <marcin@python-works.com>
parents:
225
diff
changeset
|
23 % for message in messages: |
f188b156603d
Added flash messages support
Marcin Kuzminski <marcin@python-works.com>
parents:
225
diff
changeset
|
24 <li class="${message.category}_msg">${message}</li> |
f188b156603d
Added flash messages support
Marcin Kuzminski <marcin@python-works.com>
parents:
225
diff
changeset
|
25 % endfor |
f188b156603d
Added flash messages support
Marcin Kuzminski <marcin@python-works.com>
parents:
225
diff
changeset
|
26 </ul> |
f188b156603d
Added flash messages support
Marcin Kuzminski <marcin@python-works.com>
parents:
225
diff
changeset
|
27 % endif |
f188b156603d
Added flash messages support
Marcin Kuzminski <marcin@python-works.com>
parents:
225
diff
changeset
|
28 </div> |
f188b156603d
Added flash messages support
Marcin Kuzminski <marcin@python-works.com>
parents:
225
diff
changeset
|
29 <div id="main"> |
105
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
102
diff
changeset
|
30 ${next.main()} |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
102
diff
changeset
|
31 </div> |
44 | 32 <div class="page-footer"> |
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:
208
diff
changeset
|
33 Hg App ${c.hg_app_version} © 2010 by Marcin Kuzminski |
44 | 34 </div> |
0 | 35 |
44 | 36 <div id="powered-by"> |
37 <p> | |
38 <a href="http://mercurial.selenic.com/" title="Mercurial"> | |
101
8b06c420491d
statics moved to pylons.
Marcin Kuzminski <marcin@python-works.com>
parents:
98
diff
changeset
|
39 <img src="/images/hglogo.png" width="75" height="90" alt="mercurial"/></a> |
44 | 40 </p> |
41 </div> | |
0 | 42 |
44 | 43 <div id="corner-top-left"></div> |
44 <div id="corner-top-right"></div> | |
45 <div id="corner-bottom-left"></div> | |
46 <div id="corner-bottom-right"></div> | |
0 | 47 |
44 | 48 </div> |
49 </body> | |
79
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
74
diff
changeset
|
50 </html> |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
74
diff
changeset
|
51 |
182
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
52 ### MAKO DEFS ### |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
53 |
91
25e01cb65282
Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
54 <%def name="page_nav()"> |
25e01cb65282
Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
55 ${self.menu()} |
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:
208
diff
changeset
|
56 ${self.submenu()} |
91
25e01cb65282
Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
57 </%def> |
25e01cb65282
Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
58 |
25e01cb65282
Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
59 <%def name="menu(current)"> |
182
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
60 <% |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
61 def is_current(selected): |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
62 if selected == current: |
208 | 63 return "class='current'" |
182
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
64 %> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
65 %if current not in ['home','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:
208
diff
changeset
|
66 ##regular menu |
182
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
67 <script type="text/javascript"> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
68 YAHOO.util.Event.onDOMReady(function(){ |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
69 YAHOO.util.Event.addListener('repo_switcher','click',function(){ |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
70 if(YAHOO.util.Dom.hasClass('repo_switcher','selected')){ |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
71 YAHOO.util.Dom.setStyle('switch_repos','display','none'); |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
72 YAHOO.util.Dom.setStyle('repo_switcher','background',''); |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
73 YAHOO.util.Dom.removeClass('repo_switcher','selected'); |
255
8d0c7276db3d
fixed repo switcher
Marcin Kuzminski <marcin@python-works.com>
parents:
245
diff
changeset
|
74 YAHOO.util.Dom.get('repo_switcher').removeAttribute('style'); |
182
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
75 } |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
76 else{ |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
77 YAHOO.util.Dom.setStyle('switch_repos','display',''); |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
78 YAHOO.util.Dom.setStyle('repo_switcher','background','#FFFFFF'); |
225
710e7a75bb6b
templating update, improved look & feel, version bump
Marcin Kuzminski <marcin@python-works.com>
parents:
219
diff
changeset
|
79 YAHOO.util.Dom.setStyle('repo_switcher','color','#556CB5'); |
182
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
80 YAHOO.util.Dom.addClass('repo_switcher','selected'); |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
81 } |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
82 }); |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
83 YAHOO.util.Event.addListener('repos_list','change',function(e){ |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
84 var wa = YAHOO.util.Dom.get('repos_list').value; |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
85 |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
86 var url = "${h.url('summary_home',repo_name='__REPLACE__')}".replace('__REPLACE__',wa); |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
87 window.location = url; |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
88 }) |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
89 }); |
225
710e7a75bb6b
templating update, improved look & feel, version bump
Marcin Kuzminski <marcin@python-works.com>
parents:
219
diff
changeset
|
90 </script> |
182
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
91 <ul class="page-nav"> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
92 <li> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
93 <a id="repo_switcher" title="${_('Switch repository')}" href="#">↓</a> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
94 <div id="switch_repos" style="display:none;position: absolute;width: 150px;height: 25px"> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
95 <select id="repos_list" size="=10"> |
256
c49010829e4d
fixed sorting in repo switcher
Marcin Kuzminski <marcin@python-works.com>
parents:
255
diff
changeset
|
96 %for repo in sorted(x.name.lower() for x in c.cached_repo_list.values()): |
c49010829e4d
fixed sorting in repo switcher
Marcin Kuzminski <marcin@python-works.com>
parents:
255
diff
changeset
|
97 <option value="${repo}">${repo}</option> |
182
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
98 %endfor |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
99 </select> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
100 </div> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
101 </li> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
102 <li ${is_current('summary')}>${h.link_to(_('summary'),h.url('summary_home',repo_name=c.repo_name))}</li> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
103 <li ${is_current('shortlog')}>${h.link_to(_('shortlog'),h.url('shortlog_home',repo_name=c.repo_name))}</li> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
104 <li ${is_current('changelog')}>${h.link_to(_('changelog'),h.url('changelog_home',repo_name=c.repo_name))}</li> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
105 <li ${is_current('branches')}>${h.link_to(_('branches'),h.url('branches_home',repo_name=c.repo_name))}</li> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
106 <li ${is_current('tags')}>${h.link_to(_('tags'),h.url('tags_home',repo_name=c.repo_name))}</li> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
107 <li ${is_current('files')}>${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name))}</li> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
108 </ul> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
109 %else: |
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:
208
diff
changeset
|
110 ##Root menu |
182
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
111 <ul class="page-nav"> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
112 <li ${is_current('home')}>${h.link_to(_('Home'),h.url('/'))}</li> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
113 <li ${is_current('admin')}>${h.link_to(_('Admin'),h.url('admin_home'))}</li> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
114 <li class="logout">${h.link_to(u'Logout',h.url('logout_home'))}</li> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
115 </ul> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
116 %endif |
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:
208
diff
changeset
|
117 </div> |
91
25e01cb65282
Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
118 </%def> |
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:
208
diff
changeset
|
119 <%def name="submenu(current=None)"> |
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:
208
diff
changeset
|
120 <% |
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:
208
diff
changeset
|
121 def is_current(selected): |
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:
208
diff
changeset
|
122 if selected == current: |
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:
208
diff
changeset
|
123 return "class='current_submenu'" |
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:
208
diff
changeset
|
124 %> |
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:
208
diff
changeset
|
125 %if current != None: |
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:
208
diff
changeset
|
126 <div> |
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:
208
diff
changeset
|
127 <ul class="submenu"> |
219
64e1125fc479
html + css changes, added icons and etc.
Marcin Kuzminski <marcin@python-works.com>
parents:
216
diff
changeset
|
128 <li ${is_current('repos')}>${h.link_to(u'repos',h.url('repos'),class_='repos')}</li> |
64e1125fc479
html + css changes, added icons and etc.
Marcin Kuzminski <marcin@python-works.com>
parents:
216
diff
changeset
|
129 <li ${is_current('users')}>${h.link_to(u'users',h.url('users'),class_='users')}</li> |
64e1125fc479
html + css changes, added icons and etc.
Marcin Kuzminski <marcin@python-works.com>
parents:
216
diff
changeset
|
130 <li ${is_current('permissions')}>${h.link_to(u'permissions',h.url('permissions'),class_='permissions')}</li> |
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:
208
diff
changeset
|
131 </ul> |
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:
208
diff
changeset
|
132 </div> |
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:
208
diff
changeset
|
133 %endif |
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:
208
diff
changeset
|
134 </%def> |
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:
208
diff
changeset
|
135 |
91
25e01cb65282
Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
136 |
98
01d0f363f36d
added pygments webhelper
Marcin Kuzminski <marcin@python-works.com>
parents:
91
diff
changeset
|
137 <%def name="css()"> |
102
2dc0c8e4f384
Updated tempaltes, added file browser breadcrumbs, and feed icons
Marcin Kuzminski <marcin@python-works.com>
parents:
101
diff
changeset
|
138 <link rel="stylesheet" href="/css/monoblue_custom.css" type="text/css" /> |
98
01d0f363f36d
added pygments webhelper
Marcin Kuzminski <marcin@python-works.com>
parents:
91
diff
changeset
|
139 </%def> |
79
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
74
diff
changeset
|
140 |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
74
diff
changeset
|
141 <%def name="js()"> |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
74
diff
changeset
|
142 <script type="text/javascript" src="/js/yui/utilities/utilities.js"></script> |
176
8dd7305fbc2d
moved get_form_error to base
Marcin Kuzminski <marcin@python-works.com>
parents:
166
diff
changeset
|
143 </%def> |
8dd7305fbc2d
moved get_form_error to base
Marcin Kuzminski <marcin@python-works.com>
parents:
166
diff
changeset
|
144 |
8dd7305fbc2d
moved get_form_error to base
Marcin Kuzminski <marcin@python-works.com>
parents:
166
diff
changeset
|
145 <!-- DEFINITION OF FORM ERROR FETCHER --> |
8dd7305fbc2d
moved get_form_error to base
Marcin Kuzminski <marcin@python-works.com>
parents:
166
diff
changeset
|
146 <%def name="get_form_error(element)"> |
8dd7305fbc2d
moved get_form_error to base
Marcin Kuzminski <marcin@python-works.com>
parents:
166
diff
changeset
|
147 %if hasattr(c,'form_errors') and type(c.form_errors) == dict: |
8dd7305fbc2d
moved get_form_error to base
Marcin Kuzminski <marcin@python-works.com>
parents:
166
diff
changeset
|
148 %if c.form_errors.get(element,False): |
8dd7305fbc2d
moved get_form_error to base
Marcin Kuzminski <marcin@python-works.com>
parents:
166
diff
changeset
|
149 <span class="error-message"> |
8dd7305fbc2d
moved get_form_error to base
Marcin Kuzminski <marcin@python-works.com>
parents:
166
diff
changeset
|
150 ${c.form_errors.get(element,'')} |
8dd7305fbc2d
moved get_form_error to base
Marcin Kuzminski <marcin@python-works.com>
parents:
166
diff
changeset
|
151 </span> |
8dd7305fbc2d
moved get_form_error to base
Marcin Kuzminski <marcin@python-works.com>
parents:
166
diff
changeset
|
152 %endif |
8dd7305fbc2d
moved get_form_error to base
Marcin Kuzminski <marcin@python-works.com>
parents:
166
diff
changeset
|
153 %endif |
79
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
74
diff
changeset
|
154 </%def> |