##// END OF EJS Templates
html code cleanup
marcink -
r217:3a1b921c default
parent child Browse files
Show More
@@ -1,93 +1,92 b''
1 <%!
1 <%!
2 from pylons_app.lib import filters
2 from pylons_app.lib import filters
3 %>
3 %>
4 <%inherit file="/base/base.html"/>
4 <%inherit file="/base/base.html"/>
5
5
6 <%def name="title()">
6 <%def name="title()">
7 ${_('Changelog - %s') % c.repo_name}
7 ${_('Changelog - %s') % c.repo_name}
8 </%def>
8 </%def>
9 <%def name="breadcrumbs()">
9 <%def name="breadcrumbs()">
10 ${h.link_to(u'Home',h.url('/'))}
10 ${h.link_to(u'Home',h.url('/'))}
11 /
11 /
12 ${h.link_to(c.repo_name,h.url('changelog_home',repo_name=c.repo_name))}
12 ${h.link_to(c.repo_name,h.url('changelog_home',repo_name=c.repo_name))}
13 /
13 /
14 ${_('changelog')}
14 ${_('changelog')}
15 </%def>
15 </%def>
16 <%def name="page_nav()">
16 <%def name="page_nav()">
17 ${self.menu('changelog')}
17 ${self.menu('changelog')}
18 </%def>
18 </%def>
19
19
20 <%def name="main()">
20 <%def name="main()">
21
21
22 <h2 class="no-link no-border">${_('Changelog')} - ${_('showing ')} ${c.size} ${_('revisions')}</h2>
22 <h2 class="no-link no-border">${_('Changelog')} - ${_('showing ')} ${c.size} ${_('revisions')}</h2>
23 <noscript>${_('The revision graph only works with JavaScript-enabled browsers.')}</noscript>
23 <noscript>${_('The revision graph only works with JavaScript-enabled browsers.')}</noscript>
24
24
25 <div id="graph">
25 <div id="graph">
26 ##<div id="graph_nodes" style="height:1000px">
26 ##<div id="graph_nodes" style="height:1000px">
27 ## <canvas id="graph" width="160"></canvas>
27 ## <canvas id="graph" width="160"></canvas>
28 ##</div>
28 ##</div>
29 <div id="graph_content">
29 <div id="graph_content">
30 <div class="container_header">
30 <div class="container_header">
31 ${h.form(h.url.current(),method='get')}
31 ${h.form(h.url.current(),method='get')}
32 ${_('Show')}: ${h.text('size',size=5,value=c.size)} ${_('revisions')}
32 ${_('Show')}: ${h.text('size',size=5,value=c.size)} ${_('revisions')}
33 ${h.submit('','set')}
33 ${h.submit('','set')}
34 ${h.end_form()}
34 ${h.end_form()}
35 </div>
35 </div>
36 %for cnt,cs in enumerate(c.pagination):
36 %for cnt,cs in enumerate(c.pagination):
37 <div class="container">
37 <div class="container">
38 <div class="left">
38 <div class="left">
39 <div class="date">${_('commit')} ${cs.revision}: ${cs.raw_id}@${cs.date}</div>
39 <div class="date">${_('commit')} ${cs.revision}: ${cs.raw_id}@${cs.date}</div>
40 <div class="author">${cs.author}</div>
40 <div class="author">${cs.author}</div>
41 <div id="chg_${cnt}" class="message">
41 <div id="chg_${cnt}" class="message">
42 ${h.link_to(cs.message,
42 ${h.link_to(cs.message,
43 h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id),
43 h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id),
44 title=cs.message)}
44 title=cs.message)}
45 </div>
45 </div>
46 <span class="logtags">
46 <span class="logtags">
47 <span class="branchtag">${cs.branch}</span>
47 <span class="branchtag">${cs.branch}</span>
48 %for tag in cs.tags:
48 %for tag in cs.tags:
49 <span class="tagtag">${tag}</span>
49 <span class="tagtag">${tag}</span>
50 %endfor
50 %endfor
51 </span>
51 </span>
52 </div>
52 </div>
53 <div class="right">
53 <div class="right">
54 <span class="removed" title="${_('removed')}">${len(cs.removed)}</span>
54 <div class="changes">
55 <span class="changed" title="${_('changed')}">${len(cs.changed)}</span>
55 <span class="removed" title="${_('removed')}">${len(cs.removed)}</span>
56 <span class="added" title="${_('added')}">${len(cs.added)}</span>
56 <span class="changed" title="${_('changed')}">${len(cs.changed)}</span>
57 </div>
57 <span class="added" title="${_('added')}">${len(cs.added)}</span>
58 <div class="right">
58 </div>
59 %if len(cs.parents)>1:
59 %if len(cs.parents)>1:
60 <div class="merge">
60 <div class="merge">
61 ${_('merge')}
61 ${_('merge')}<img alt="merge" src="/images/icons/arrow_join.png">
62 <img alt="merge" src="/images/icons/arrow_join.png">
62 </div>
63 </div>
63 %endif
64 %endif
65 %for p_cs in reversed(cs.parents):
64 %for p_cs in reversed(cs.parents):
66 <div class="parent">${_('Parrent')} ${p_cs.revision}: ${h.link_to(p_cs.raw_id,
65 <div class="parent">${_('Parrent')} ${p_cs.revision}: ${h.link_to(p_cs.raw_id,
67 h.url('changeset_home',repo_name=c.repo_name,revision=p_cs.raw_id),
66 h.url('changeset_home',repo_name=c.repo_name,revision=p_cs.raw_id),title=p_cs.message)}
68 title=p_cs.message)}</div>
67 </div>
69 %endfor
68 %endfor
70 </div>
69 </div>
71 </div>
70 </div>
72
71
73 %endfor
72 %endfor
74 </div>
73 </div>
75 </div>
74 </div>
76
75
77 ##<script type="text/javascript" src="/js/graph2.js"></script>
76 ##<script type="text/javascript" src="/js/graph2.js"></script>
78 ##<script type="text/javascript" src="http://bitbucket-assets.s3.amazonaws.com/js/lib/bundle.160310Mar.js"></script>
77 ##<script type="text/javascript" src="http://bitbucket-assets.s3.amazonaws.com/js/lib/bundle.160310Mar.js"></script>
79 ##
78 ##
80 ##<script>
79 ##<script>
81 ##<!-- hide script content
80 ##<!-- hide script content
82 ##
81 ##
83 ##var jsdata = ${c.jsdata|n};
82 ##var jsdata = ${c.jsdata|n};
84 ##var r = new BranchRenderer();
83 ##var r = new BranchRenderer();
85 ##r.render(jsdata);
84 ##r.render(jsdata);
86
85
87 ##// stop hiding script -->
86 ##// stop hiding script -->
88 ##</script>
87 ##</script>
89
88
90 <div>
89 <div>
91 <h2>${c.pagination.pager('$link_previous ~2~ $link_next')}</h2>
90 <h2>${c.pagination.pager('$link_previous ~2~ $link_next')}</h2>
92 </div>
91 </div>
93 </%def> No newline at end of file
92 </%def>
General Comments 0
You need to be logged in to leave comments. Login now