##// END OF EJS Templates
updated erros found in base.html
marcink -
r155:42d91630 default
parent child Browse files
Show More
@@ -1,108 +1,102 b''
1 1 ## -*- coding: utf-8 -*-
2 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 3 <html xmlns="http://www.w3.org/1999/xhtml" id="mainhtml">
4 4 <head>
5 5 <link rel="icon" href="/images/hgicon.png" type="image/png" />
6 6 <meta name="robots" content="index, nofollow"/>
7 7 <title>${next.title()}</title>
8 8 ##<link rel="stylesheet" href="/js/yui/reset-fonts-grids/reset-fonts-grids.css" type="text/css" />
9 9 ${self.css()}
10 10 ${self.js()}
11 11 </head>
12 12
13 13 <body class="mainbody">
14 14 <div id="container">
15 15 <div class="page-header">
16 <h1>
17 ${next.breadcrumbs()}
18 </h1>
19 <ul class="page-nav">
20 ${self.page_nav()}
21 </ul>
16 <h1>${next.breadcrumbs()}</h1>
17 ${self.page_nav()}
22 18 </div>
23 19 <div id="main">
24 20 ${next.main()}
25 21 </div>
26 22 <div class="page-footer">
27 23 Mercurial App &copy; 2010
28 24 </div>
29 25
30 26 <div id="powered-by">
31 27 <p>
32 28 <a href="http://mercurial.selenic.com/" title="Mercurial">
33 29 <img src="/images/hglogo.png" width="75" height="90" alt="mercurial"/></a>
34 30 </p>
35 31 </div>
36 32
37 33 <div id="corner-top-left"></div>
38 34 <div id="corner-top-right"></div>
39 35 <div id="corner-bottom-left"></div>
40 36 <div id="corner-bottom-right"></div>
41 37
42 38 </div>
43 39 </body>
44 40 </html>
45 41
46 42 <%def name="page_nav()">
47
48 43 ${self.menu()}
49
50 44 </%def>
51 45
52 46
53 47 <%def name="menu(current)">
54 48 <script type="text/javascript">
55 49 YAHOO.util.Event.onDOMReady(function(){
56 50 YAHOO.util.Event.addListener('repo_switcher','click',function(){
57 51 if(YAHOO.util.Dom.hasClass('repo_switcher','selected')){
58 52 YAHOO.util.Dom.setStyle('switch_repos','display','none');
59 53 YAHOO.util.Dom.setStyle('repo_switcher','background','');
60 54 YAHOO.util.Dom.removeClass('repo_switcher','selected');
61 55 }
62 56 else{
63 57 YAHOO.util.Dom.setStyle('switch_repos','display','');
64 58 YAHOO.util.Dom.setStyle('repo_switcher','background','#FFFFFF');
65 59 YAHOO.util.Dom.addClass('repo_switcher','selected');
66 60 }
67 61 });
68 62 YAHOO.util.Event.addListener('repos_list','change',function(e){
69 63 var wa = YAHOO.util.Dom.get('repos_list').value;
70 64
71 65 var url = "${h.url('summary_home',repo_name='__REPLACE__')}".replace('__REPLACE__',wa);
72 66 window.location = url;
73 67 })
74 68 });
75 69 </script>
76 70 <ul class="page-nav">
77 71 <li>
78 72 <a id="repo_switcher" title="${_('Switch repository')}" href="#">&darr;</a>
79 73 <div id="switch_repos" style="display:none;position: absolute;width: 150px;height: 25px">
80 74 <select id="repos_list">
81 75 %for repo in c.repo_list:
82 76 <option value="${repo}">${repo}</option>
83 77 %endfor
84 78 </select>
85 79 </div>
86 80 </li>
87 81 <%def name="is_current(selected)">
88 82 <%
89 83 if selected == current:
90 84 return 'class="current"'
91 85 %>
92 86 </%def>
93 87 <li ${is_current('summary')|n}>${h.link_to(_('summary'),h.url('summary_home',repo_name=c.repo_name))}</li>
94 88 <li ${is_current('shortlog')|n}>${h.link_to(_('shortlog'),h.url('shortlog_home',repo_name=c.repo_name))}</li>
95 89 <li ${is_current('changelog')|n}>${h.link_to(_('changelog'),h.url('changelog_home',repo_name=c.repo_name))}</li>
96 90 <li ${is_current('branches')|n}>${h.link_to(_('branches'),h.url('branches_home',repo_name=c.repo_name))}</li>
97 91 <li ${is_current('tags')|n}>${h.link_to(_('tags'),h.url('tags_home',repo_name=c.repo_name))}</li>
98 92 <li ${is_current('files')|n}>${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name))}</li>
99 93 </ul>
100 94 </%def>
101 95
102 96 <%def name="css()">
103 97 <link rel="stylesheet" href="/css/monoblue_custom.css" type="text/css" />
104 98 </%def>
105 99
106 100 <%def name="js()">
107 101 <script type="text/javascript" src="/js/yui/utilities/utilities.js"></script>
108 102 </%def> No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now