annotate pylons_app/templates/base/base.html @ 154:085a937368d9

updated erros found in base.html
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 16 May 2010 15:33:21 +0200
parents 787689980bcd
children 42d916306766
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>
143
787689980bcd Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents: 109
diff changeset
8 ##<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
9 ${self.css()}
79
9fe23fdab9e9 Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents: 74
diff changeset
10 ${self.js()}
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
11 </head>
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
12
143
787689980bcd Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents: 109
diff changeset
13 <body class="mainbody">
44
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
14 <div id="container">
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
15 <div class="page-header">
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
16 <h1>
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
17 ${next.breadcrumbs()}
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
18 </h1>
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
19 <ul class="page-nav">
91
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
20 ${self.page_nav()}
44
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
21 </ul>
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
22 </div>
105
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 102
diff changeset
23 <div id="main">
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 102
diff changeset
24 ${next.main()}
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 102
diff changeset
25 </div>
44
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
26 <div class="page-footer">
63
3cf0603cd4f5 Templating small fixes
Marcin Kuzminski <marcin@python-blog.com>
parents: 50
diff changeset
27 Mercurial App &copy; 2010
44
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
28 </div>
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
29
44
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
30 <div id="powered-by">
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
31 <p>
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
32 <a href="http://mercurial.selenic.com/" title="Mercurial">
101
8b06c420491d statics moved to pylons.
Marcin Kuzminski <marcin@python-works.com>
parents: 98
diff changeset
33 <img src="/images/hglogo.png" width="75" height="90" alt="mercurial"/></a>
44
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
34 </p>
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="corner-top-left"></div>
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
38 <div id="corner-top-right"></div>
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
39 <div id="corner-bottom-left"></div>
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
40 <div id="corner-bottom-right"></div>
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
41
44
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
42 </div>
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
43 </body>
79
9fe23fdab9e9 Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents: 74
diff changeset
44 </html>
9fe23fdab9e9 Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents: 74
diff changeset
45
91
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
46 <%def name="page_nav()">
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
47
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
48 ${self.menu()}
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
49
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
50 </%def>
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
51
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
52
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
53 <%def name="menu(current)">
154
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
54 <script type="text/javascript">
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
55 YAHOO.util.Event.onDOMReady(function(){
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
56 YAHOO.util.Event.addListener('repo_switcher','click',function(){
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
57 if(YAHOO.util.Dom.hasClass('repo_switcher','selected')){
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
58 YAHOO.util.Dom.setStyle('switch_repos','display','none');
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
59 YAHOO.util.Dom.setStyle('repo_switcher','background','');
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
60 YAHOO.util.Dom.removeClass('repo_switcher','selected');
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
61 }
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
62 else{
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
63 YAHOO.util.Dom.setStyle('switch_repos','display','');
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
64 YAHOO.util.Dom.setStyle('repo_switcher','background','#FFFFFF');
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
65 YAHOO.util.Dom.addClass('repo_switcher','selected');
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
66 }
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
67 });
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
68 YAHOO.util.Event.addListener('repos_list','change',function(e){
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
69 var wa = YAHOO.util.Dom.get('repos_list').value;
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
70
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
71 var url = "${h.url('summary_home',repo_name='__REPLACE__')}".replace('__REPLACE__',wa);
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
72 window.location = url;
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
73 })
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
74 });
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
75 </script>
91
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
76 <ul class="page-nav">
107
5e2470ebdbc6 Added repo switcher, in base and long term caching for this.
Marcin Kuzminski <marcin@python-works.com>
parents: 105
diff changeset
77 <li>
5e2470ebdbc6 Added repo switcher, in base and long term caching for this.
Marcin Kuzminski <marcin@python-works.com>
parents: 105
diff changeset
78 <a id="repo_switcher" title="${_('Switch repository')}" href="#">&darr;</a>
109
7b778f90a871 html updates
Marcin Kuzminski <marcin@python-works.com>
parents: 107
diff changeset
79 <div id="switch_repos" style="display:none;position: absolute;width: 150px;height: 25px">
107
5e2470ebdbc6 Added repo switcher, in base and long term caching for this.
Marcin Kuzminski <marcin@python-works.com>
parents: 105
diff changeset
80 <select id="repos_list">
5e2470ebdbc6 Added repo switcher, in base and long term caching for this.
Marcin Kuzminski <marcin@python-works.com>
parents: 105
diff changeset
81 %for repo in c.repo_list:
5e2470ebdbc6 Added repo switcher, in base and long term caching for this.
Marcin Kuzminski <marcin@python-works.com>
parents: 105
diff changeset
82 <option value="${repo}">${repo}</option>
5e2470ebdbc6 Added repo switcher, in base and long term caching for this.
Marcin Kuzminski <marcin@python-works.com>
parents: 105
diff changeset
83 %endfor
5e2470ebdbc6 Added repo switcher, in base and long term caching for this.
Marcin Kuzminski <marcin@python-works.com>
parents: 105
diff changeset
84 </select>
5e2470ebdbc6 Added repo switcher, in base and long term caching for this.
Marcin Kuzminski <marcin@python-works.com>
parents: 105
diff changeset
85 </div>
5e2470ebdbc6 Added repo switcher, in base and long term caching for this.
Marcin Kuzminski <marcin@python-works.com>
parents: 105
diff changeset
86 </li>
143
787689980bcd Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents: 109
diff changeset
87 <%def name="is_current(selected)">
787689980bcd Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents: 109
diff changeset
88 <%
154
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
89 if selected == current:
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
90 return 'class="current"'
143
787689980bcd Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents: 109
diff changeset
91 %>
787689980bcd Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents: 109
diff changeset
92 </%def>
154
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
93 <li ${is_current('summary')|n}>${h.link_to(_('summary'),h.url('summary_home',repo_name=c.repo_name))}</li>
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
94 <li ${is_current('shortlog')|n}>${h.link_to(_('shortlog'),h.url('shortlog_home',repo_name=c.repo_name))}</li>
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
95 <li ${is_current('changelog')|n}>${h.link_to(_('changelog'),h.url('changelog_home',repo_name=c.repo_name))}</li>
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
96 <li ${is_current('branches')|n}>${h.link_to(_('branches'),h.url('branches_home',repo_name=c.repo_name))}</li>
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
97 <li ${is_current('tags')|n}>${h.link_to(_('tags'),h.url('tags_home',repo_name=c.repo_name))}</li>
085a937368d9 updated erros found in base.html
Marcin Kuzminski <marcin@python-works.com>
parents: 143
diff changeset
98 <li ${is_current('files')|n}>${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name))}</li>
91
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
99 </ul>
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
100 </%def>
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
101
98
01d0f363f36d added pygments webhelper
Marcin Kuzminski <marcin@python-works.com>
parents: 91
diff changeset
102 <%def name="css()">
102
2dc0c8e4f384 Updated tempaltes, added file browser breadcrumbs, and feed icons
Marcin Kuzminski <marcin@python-works.com>
parents: 101
diff changeset
103 <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
104 </%def>
79
9fe23fdab9e9 Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents: 74
diff changeset
105
9fe23fdab9e9 Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents: 74
diff changeset
106 <%def name="js()">
9fe23fdab9e9 Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents: 74
diff changeset
107 <script type="text/javascript" src="/js/yui/utilities/utilities.js"></script>
9fe23fdab9e9 Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents: 74
diff changeset
108 </%def>