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