Show More
@@ -0,0 +1,115 b'' | |||
|
1 | <%inherit file="/base/base.html"/> | |
|
2 | ||
|
3 | <%def name="title()"> | |
|
4 | ${_('Repository managment')} | |
|
5 | </%def> | |
|
6 | <%def name="breadcrumbs()"> | |
|
7 | ${h.link_to(u'Home',h.url('/'))} | |
|
8 | / | |
|
9 | ${h.link_to(c.repo_name,h.url('changelog_home',repo_name=c.repo_name))} | |
|
10 | / | |
|
11 | ${_('changelog')} | |
|
12 | </%def> | |
|
13 | <%def name="page_nav()"> | |
|
14 | <form action="log"> | |
|
15 | <dl class="search"> | |
|
16 | <dt><label>Search: </label></dt> | |
|
17 | <dd><input type="text" name="rev" /></dd> | |
|
18 | </dl> | |
|
19 | </form> | |
|
20 | ||
|
21 | ${self.menu('changelog')} | |
|
22 | </%def> | |
|
23 | ||
|
24 | <%def name="main()"> | |
|
25 | ||
|
26 | <h2 class="no-link no-border">${_('Changelog')} - ${_('showing ')} ${c.size} ${_('revisions')}</h2> | |
|
27 | <noscript>${_('The revision graph only works with JavaScript-enabled browsers.')}</noscript> | |
|
28 | <div> | |
|
29 | ${h.form(h.url.current(),method='get')} | |
|
30 | ${_('Show')}: ${h.text('size',size=5,value=c.size)} ${_('revisions')} | |
|
31 | ${h.submit('','set')} | |
|
32 | ${h.end_form()} | |
|
33 | </div> | |
|
34 | <div id="wrapper" style="height:${c.canvasheight}px"> | |
|
35 | <div style="float:left;height:${c.canvasheight}px"> | |
|
36 | <canvas id="graph" width="224" height="${c.canvasheight}"></canvas> | |
|
37 | </div> | |
|
38 | <div style="float:left;height:${c.canvasheight}px"> | |
|
39 | <ul id="graphnodes"></ul> | |
|
40 | </div> | |
|
41 | </div> | |
|
42 | ||
|
43 | <script type="text/javascript" src="/js/graph.js"></script> | |
|
44 | <script> | |
|
45 | <!-- hide script content | |
|
46 | ||
|
47 | var data = ${c.jsdata|n}; | |
|
48 | var graph = new Graph(); | |
|
49 | graph.scale(39); | |
|
50 | ||
|
51 | graph.edge = function(x0, y0, x1, y1, color) { | |
|
52 | ||
|
53 | this.setColor(color, 0.0, 0.65); | |
|
54 | this.ctx.beginPath(); | |
|
55 | this.ctx.moveTo(x0, y0); | |
|
56 | this.ctx.lineTo(x1, y1); | |
|
57 | this.ctx.stroke(); | |
|
58 | ||
|
59 | } | |
|
60 | ||
|
61 | var revlink = '<li style="_STYLE"><span class="desc">'; | |
|
62 | revlink += '<a class="list" href="/${c.repo_name}/changeset/_NODEID" title="_NODEID"><b>_DESC</b></a>'; | |
|
63 | revlink += '</span> _TAGS'; | |
|
64 | revlink += '<span class="info">_DATE, by _USER</span></li>'; | |
|
65 | ||
|
66 | graph.vertex = function(x, y, color, parity, cur) { | |
|
67 | ||
|
68 | this.ctx.beginPath(); | |
|
69 | color = this.setColor(color, 0.25, 0.75); | |
|
70 | this.ctx.arc(x, y, radius, 0, Math.PI * 2, true); | |
|
71 | this.ctx.fill(); | |
|
72 | ||
|
73 | var bg = '<li class="bg parity' + parity + '"></li>'; | |
|
74 | var left = (this.columns + 1) * this.bg_height; | |
|
75 | var nstyle = 'padding-left: ' + left + 'px;'; | |
|
76 | var item = revlink.replace(/_STYLE/, nstyle); | |
|
77 | item = item.replace(/_PARITY/, 'parity' + parity); | |
|
78 | item = item.replace(/_NODEID/, cur[0]); | |
|
79 | item = item.replace(/_NODEID/, cur[0]); | |
|
80 | item = item.replace(/_DESC/, cur[3]); | |
|
81 | item = item.replace(/_USER/, cur[4]); | |
|
82 | item = item.replace(/_DATE/, cur[5]); | |
|
83 | ||
|
84 | var tagspan = ''; | |
|
85 | if (cur[7].length || (cur[6][0] != 'default' || cur[6][1])) { | |
|
86 | tagspan = '<span class="logtags">'; | |
|
87 | if (cur[6][1]) { | |
|
88 | tagspan += '<span class="branchtag" title="' + cur[6][0] + '">'; | |
|
89 | tagspan += cur[6][0] + '</span> '; | |
|
90 | } else if (!cur[6][1] && cur[6][0] != 'default') { | |
|
91 | tagspan += '<span class="inbranchtag" title="' + cur[6][0] + '">'; | |
|
92 | tagspan += cur[6][0] + '</span> '; | |
|
93 | } | |
|
94 | if (cur[7].length) { | |
|
95 | for (var t in cur[7]) { | |
|
96 | var tag = cur[7][t]; | |
|
97 | tagspan += '<span class="tagtag">' + tag + '</span> '; | |
|
98 | } | |
|
99 | } | |
|
100 | tagspan += '</span>'; | |
|
101 | } | |
|
102 | ||
|
103 | item = item.replace(/_TAGS/, tagspan); | |
|
104 | return [bg, item]; | |
|
105 | ||
|
106 | } | |
|
107 | ||
|
108 | graph.render(data); | |
|
109 | ||
|
110 | // stop hiding script --> | |
|
111 | </script> | |
|
112 | <div> | |
|
113 | <h2>${c.pagination.pager('$link_previous ~2~ $link_next')}</h2> | |
|
114 | </div> | |
|
115 | </%def> No newline at end of file |
@@ -1,125 +1,110 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 | <html xmlns="http://www.w3.org/1999/xhtml"> | |
|
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 | ##<link rel="stylesheet" href="/js/yui/reset-fonts-grids/reset-fonts-grids.css" type="text/css" /> | |
|
8 | 9 | ${self.css()} |
|
9 | 10 | ${self.js()} |
|
10 | 11 | </head> |
|
11 | 12 | |
|
12 | <body> | |
|
13 | <body class="mainbody"> | |
|
13 | 14 | <div id="container"> |
|
14 | 15 | <div class="page-header"> |
|
15 | 16 | <h1> |
|
16 | 17 | ${next.breadcrumbs()} |
|
17 | 18 | </h1> |
|
18 | 19 | <ul class="page-nav"> |
|
19 | 20 | ${self.page_nav()} |
|
20 | 21 | </ul> |
|
21 | 22 | </div> |
|
22 | 23 | <div id="main"> |
|
23 | 24 | ${next.main()} |
|
24 | 25 | </div> |
|
25 | 26 | <div class="page-footer"> |
|
26 | 27 | Mercurial App © 2010 |
|
27 | 28 | </div> |
|
28 | 29 | |
|
29 | 30 | <div id="powered-by"> |
|
30 | 31 | <p> |
|
31 | 32 | <a href="http://mercurial.selenic.com/" title="Mercurial"> |
|
32 | 33 | <img src="/images/hglogo.png" width="75" height="90" alt="mercurial"/></a> |
|
33 | 34 | </p> |
|
34 | 35 | </div> |
|
35 | 36 | |
|
36 | 37 | <div id="corner-top-left"></div> |
|
37 | 38 | <div id="corner-top-right"></div> |
|
38 | 39 | <div id="corner-bottom-left"></div> |
|
39 | 40 | <div id="corner-bottom-right"></div> |
|
40 | 41 | |
|
41 | 42 | </div> |
|
42 | 43 | </body> |
|
43 | 44 | </html> |
|
44 | 45 | |
|
45 | 46 | <%def name="page_nav()"> |
|
46 | 47 | |
|
47 | 48 | ${self.menu()} |
|
48 | 49 | |
|
49 | 50 | </%def> |
|
50 | 51 | |
|
51 | 52 | |
|
52 | 53 | <%def name="menu(current)"> |
|
53 | 54 | <ul class="page-nav"> |
|
54 | 55 | <script> |
|
55 | 56 | YAHOO.util.Event.onDOMReady(function(){ |
|
56 | 57 | YAHOO.util.Event.addListener('repo_switcher','click',function(){ |
|
57 | 58 | if(YAHOO.util.Dom.hasClass('repo_switcher','selected')){ |
|
58 | 59 | YAHOO.util.Dom.setStyle('switch_repos','display','none'); |
|
59 | 60 | YAHOO.util.Dom.setStyle('repo_switcher','background',''); |
|
60 | 61 | YAHOO.util.Dom.removeClass('repo_switcher','selected'); |
|
61 | 62 | } |
|
62 | 63 | else{ |
|
63 | 64 | YAHOO.util.Dom.setStyle('switch_repos','display',''); |
|
64 | 65 | YAHOO.util.Dom.setStyle('repo_switcher','background','#FFFFFF'); |
|
65 | 66 | YAHOO.util.Dom.addClass('repo_switcher','selected'); |
|
66 | 67 | } |
|
67 | 68 | }); |
|
68 | 69 | YAHOO.util.Event.addListener('repos_list','change',function(e){ |
|
69 | 70 | var wa = YAHOO.util.Dom.get('repos_list').value; |
|
70 | 71 | |
|
71 | 72 | var url = "${h.url('summary_home',repo_name='__REPLACE__')}".replace('__REPLACE__',wa); |
|
72 | 73 | window.location = url; |
|
73 | 74 | }) |
|
74 | 75 | }); |
|
75 | 76 | </script> |
|
76 | 77 | <li> |
|
77 | 78 | <a id="repo_switcher" title="${_('Switch repository')}" href="#">↓</a> |
|
78 | 79 | <div id="switch_repos" style="display:none;position: absolute;width: 150px;height: 25px"> |
|
79 | 80 | <select id="repos_list"> |
|
80 | 81 | %for repo in c.repo_list: |
|
81 | 82 | <option value="${repo}">${repo}</option> |
|
82 | 83 | %endfor |
|
83 | 84 | </select> |
|
84 | 85 | </div> |
|
85 | 86 | </li> |
|
86 | <li | |
|
87 | %if current=='summary': | |
|
88 | class='current' | |
|
89 | %endif | |
|
90 | >${h.link_to_unless(current=='summary',_('summary'),h.url('summary_home',repo_name=c.repo_name))}</li> | |
|
91 | <li | |
|
92 | %if current=='changelog': | |
|
93 | class='current' | |
|
94 | %endif | |
|
95 |
>${h.link_to |
|
|
96 | <li | |
|
97 | %if current=='branches': | |
|
98 | class='current' | |
|
99 | %endif | |
|
100 | >${h.link_to_unless(current=='branches',_('branches'),h.url('branches_home',repo_name=c.repo_name))}</li> | |
|
101 | <li | |
|
102 | %if current=='tags': | |
|
103 | class='current' | |
|
104 | %endif | |
|
105 | >${h.link_to_unless(current=='tags',_('tags'),h.url('tags_home',repo_name=c.repo_name))}</li> | |
|
106 | <li | |
|
107 | %if current=='graph': | |
|
108 | class='current' | |
|
109 | %endif | |
|
110 | >${h.link_to_unless(current=='graph',_('graph'),h.url('graph_home',repo_name=c.repo_name))}</li> | |
|
111 | <li | |
|
112 | %if current=='files': | |
|
113 | class='current' | |
|
114 | %endif | |
|
115 | >${h.link_to_unless(current=='files',_('files'),h.url('files_home',repo_name=c.repo_name))}</li> | |
|
87 | <%def name="is_current(selected)"> | |
|
88 | <% | |
|
89 | if selected == current: | |
|
90 | return 'current' | |
|
91 | else: | |
|
92 | return '' | |
|
93 | %> | |
|
94 | </%def> | |
|
95 | <li class="${is_current('summary')}">${h.link_to(_('summary'),h.url('summary_home',repo_name=c.repo_name))}</li> | |
|
96 | <li class="${is_current('shortlog')}">${h.link_to(_('shortlog'),h.url('shortlog_home',repo_name=c.repo_name))}</li> | |
|
97 | <li class="${is_current('changelog')}">${h.link_to(_('changelog'),h.url('changelog_home',repo_name=c.repo_name))}</li> | |
|
98 | <li class="${is_current('branches')}">${h.link_to(_('branches'),h.url('branches_home',repo_name=c.repo_name))}</li> | |
|
99 | <li class="${is_current('tags')}">${h.link_to(_('tags'),h.url('tags_home',repo_name=c.repo_name))}</li> | |
|
100 | <li class="${is_current('files')}">${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name))}</li> | |
|
116 | 101 | </ul> |
|
117 | 102 | </%def> |
|
118 | 103 | |
|
119 | 104 | <%def name="css()"> |
|
120 | 105 | <link rel="stylesheet" href="/css/monoblue_custom.css" type="text/css" /> |
|
121 | 106 | </%def> |
|
122 | 107 | |
|
123 | 108 | <%def name="js()"> |
|
124 | 109 | <script type="text/javascript" src="/js/yui/utilities/utilities.js"></script> |
|
125 | 110 | </%def> No newline at end of file |
@@ -1,30 +1,30 b'' | |||
|
1 | 1 | <%inherit file="/base/base.html"/> |
|
2 | 2 | |
|
3 | 3 | <%def name="title()"> |
|
4 | 4 | ${_('Repository managment')} |
|
5 | 5 | </%def> |
|
6 | 6 | <%def name="breadcrumbs()"> |
|
7 | 7 | ${h.link_to(u'Home',h.url('/'))} |
|
8 | 8 | / |
|
9 | 9 | ${h.link_to(c.repo_name,h.url('shortlog_home',repo_name=c.repo_name))} |
|
10 | 10 | / |
|
11 | 11 | ${_('shortlog')} |
|
12 | 12 | </%def> |
|
13 | 13 | <%def name="page_nav()"> |
|
14 | 14 | <form action="log"> |
|
15 | 15 | <dl class="search"> |
|
16 | 16 | <dt><label>Search: </label></dt> |
|
17 | 17 | <dd><input type="text" name="rev" /></dd> |
|
18 | 18 | </dl> |
|
19 | 19 | </form> |
|
20 | 20 | |
|
21 |
${self.menu(' |
|
|
21 | ${self.menu('shortlog')} | |
|
22 | 22 | </%def> |
|
23 | 23 | <%def name="main()"> |
|
24 | 24 | |
|
25 | 25 | <h2 class="no-link no-border">${_('Shortlog')}</h2> |
|
26 | 26 | |
|
27 | 27 | <div id="shortlog_data"> |
|
28 | 28 | ${c.shortlog_data} |
|
29 | 29 | </div> |
|
30 | 30 | </%def> No newline at end of file |
|
1 | NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now