annotate pylons_app/templates/base/base.html @ 294:c60eeeb8ac4d

fixes #5, links, are not visible highlited in top breadcrumbs
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 23 Jun 2010 21:38:41 +0200
parents 1dbe02063123
children 15e96b5a2685
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
1 ## -*- coding: utf-8 -*-
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
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
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
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
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
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
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
12 </head>
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
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
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
15 <div id="container">
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
16 <div class="page-header">
294
c60eeeb8ac4d fixes #5, links, are not visible highlited in top breadcrumbs
Marcin Kuzminski <marcin@python-works.com>
parents: 289
diff changeset
17 <h1 class="breadcrumbs">${next.breadcrumbs()}</h1>
155
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()}
289
1dbe02063123 graph fixes.
Marcin Kuzminski <marcin@python-works.com>
parents: 281
diff changeset
31 <script type="text/javascript">${h.tooltip.activate()}</script>
105
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 102
diff changeset
32 </div>
44
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
33 <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
34 Hg App ${c.hg_app_version} &copy; 2010 by Marcin Kuzminski
44
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
35 </div>
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
36
44
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
37 <div id="powered-by">
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
38 <p>
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
39 <a href="http://mercurial.selenic.com/" title="Mercurial">
101
8b06c420491d statics moved to pylons.
Marcin Kuzminski <marcin@python-works.com>
parents: 98
diff changeset
40 <img src="/images/hglogo.png" width="75" height="90" alt="mercurial"/></a>
44
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
41 </p>
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
42 </div>
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
43
44
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
44 <div id="corner-top-left"></div>
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
45 <div id="corner-top-right"></div>
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
46 <div id="corner-bottom-left"></div>
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
47 <div id="corner-bottom-right"></div>
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
48
44
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
49 </div>
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
50 </body>
79
9fe23fdab9e9 Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents: 74
diff changeset
51 </html>
9fe23fdab9e9 Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents: 74
diff changeset
52
182
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
53 ### MAKO DEFS ###
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
54
91
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
55 <%def name="page_nav()">
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
56 ${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
57 ${self.submenu()}
91
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
58 </%def>
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
59
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
60 <%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
61 <%
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
62 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
63 if selected == current:
208
c674d994b07c html fix
Marcin Kuzminski <marcin@python-works.com>
parents: 185
diff changeset
64 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
65 %>
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
66 %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
67 ##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
68 <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
69 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
70 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
71 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
72 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
73 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
74 YAHOO.util.Dom.removeClass('repo_switcher','selected');
255
8d0c7276db3d fixed repo switcher
Marcin Kuzminski <marcin@python-works.com>
parents: 245
diff changeset
75 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
76 }
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
77 else{
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('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
79 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
80 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
81 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
82 }
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
83 });
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
84 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
85 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
86
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
87 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
88 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
89 })
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
90 });
225
710e7a75bb6b templating update, improved look & feel, version bump
Marcin Kuzminski <marcin@python-works.com>
parents: 219
diff changeset
91 </script>
182
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
92 <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
93 <li>
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
94 <a id="repo_switcher" title="${_('Switch repository')}" href="#">&darr;</a>
270
408c66ecdad4 fixes a repo switcher display bug
Marcin Kuzminski <marcin@python-works.com>
parents: 260
diff changeset
95 <div id="switch_repos" style="display:none;position: absolute;height: 25px">
408c66ecdad4 fixes a repo switcher display bug
Marcin Kuzminski <marcin@python-works.com>
parents: 260
diff changeset
96 <select id="repos_list" size="=10" style="min-width: 150px">
256
c49010829e4d fixed sorting in repo switcher
Marcin Kuzminski <marcin@python-works.com>
parents: 255
diff changeset
97 %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
98 <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
99 %endfor
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
100 </select>
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
101 </div>
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
102 </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('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
104 <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
105 <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
106 <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
107 <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
108 <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
109 </ul>
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
110 %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
111 ##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
112 <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
113 <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
114 <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
115 <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
116 </ul>
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
117 %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
118 </div>
91
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
119 </%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
120 <%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
121 <%
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 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
123 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
124 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
125 %>
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 %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
127 <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
128 <ul class="submenu">
219
64e1125fc479 html + css changes, added icons and etc.
Marcin Kuzminski <marcin@python-works.com>
parents: 216
diff changeset
129 <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
130 <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
131 <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
132 </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
133 </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
134 %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
135 </%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
136
91
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
137
98
01d0f363f36d added pygments webhelper
Marcin Kuzminski <marcin@python-works.com>
parents: 91
diff changeset
138 <%def name="css()">
102
2dc0c8e4f384 Updated tempaltes, added file browser breadcrumbs, and feed icons
Marcin Kuzminski <marcin@python-works.com>
parents: 101
diff changeset
139 <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
140 </%def>
79
9fe23fdab9e9 Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents: 74
diff changeset
141
9fe23fdab9e9 Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents: 74
diff changeset
142 <%def name="js()">
9fe23fdab9e9 Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents: 74
diff changeset
143 <script type="text/javascript" src="/js/yui/utilities/utilities.js"></script>
281
cd2ee462fc2c implemented yui tooltip, and added it into annotation and main page.
Marcin Kuzminski <marcin@python-works.com>
parents: 270
diff changeset
144 <script type="text/javascript" src="/js/yui/container/container-min.js"></script>
176
8dd7305fbc2d moved get_form_error to base
Marcin Kuzminski <marcin@python-works.com>
parents: 166
diff changeset
145 </%def>
8dd7305fbc2d moved get_form_error to base
Marcin Kuzminski <marcin@python-works.com>
parents: 166
diff changeset
146
8dd7305fbc2d moved get_form_error to base
Marcin Kuzminski <marcin@python-works.com>
parents: 166
diff changeset
147 <!-- DEFINITION OF FORM ERROR FETCHER -->
8dd7305fbc2d moved get_form_error to base
Marcin Kuzminski <marcin@python-works.com>
parents: 166
diff changeset
148 <%def name="get_form_error(element)">
8dd7305fbc2d moved get_form_error to base
Marcin Kuzminski <marcin@python-works.com>
parents: 166
diff changeset
149 %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
150 %if c.form_errors.get(element,False):
8dd7305fbc2d moved get_form_error to base
Marcin Kuzminski <marcin@python-works.com>
parents: 166
diff changeset
151 <span class="error-message">
8dd7305fbc2d moved get_form_error to base
Marcin Kuzminski <marcin@python-works.com>
parents: 166
diff changeset
152 ${c.form_errors.get(element,'')}
8dd7305fbc2d moved get_form_error to base
Marcin Kuzminski <marcin@python-works.com>
parents: 166
diff changeset
153 </span>
8dd7305fbc2d moved get_form_error to base
Marcin Kuzminski <marcin@python-works.com>
parents: 166
diff changeset
154 %endif
8dd7305fbc2d moved get_form_error to base
Marcin Kuzminski <marcin@python-works.com>
parents: 166
diff changeset
155 %endif
79
9fe23fdab9e9 Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents: 74
diff changeset
156 </%def>