Mercurial > kallithea
annotate pylons_app/templates/changelog/changelog.html @ 322:46b7d108ea7a
made graphg ticker, and fixes a paging bug caused grapgh disaligment
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 30 Jun 2010 17:05:20 +0200 |
parents | 1dbe02063123 |
children | 558eb7c5028f |
rev | line source |
---|---|
143
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
1 <%inherit file="/base/base.html"/> |
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
2 |
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
3 <%def name="title()"> |
193
50a39f923f31
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
Marcin Kuzminski <marcin@python-works.com>
parents:
143
diff
changeset
|
4 ${_('Changelog - %s') % c.repo_name} |
143
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
5 </%def> |
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
6 <%def name="breadcrumbs()"> |
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
7 ${h.link_to(u'Home',h.url('/'))} |
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
8 / |
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
9 ${h.link_to(c.repo_name,h.url('changelog_home',repo_name=c.repo_name))} |
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
10 / |
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
11 ${_('changelog')} |
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
12 </%def> |
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
13 <%def name="page_nav()"> |
193
50a39f923f31
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
Marcin Kuzminski <marcin@python-works.com>
parents:
143
diff
changeset
|
14 ${self.menu('changelog')} |
143
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
15 </%def> |
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
16 |
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
17 <%def name="main()"> |
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
18 |
282
237470e64bb8
switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents:
280
diff
changeset
|
19 <h2 class="no-link no-border">${_('Changelog')} - ${_('showing ')} |
237470e64bb8
switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents:
280
diff
changeset
|
20 ${c.size if c.size <= c.total_cs else c.total_cs} |
237470e64bb8
switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents:
280
diff
changeset
|
21 ${_('out of')} ${c.total_cs} ${_('revisions')} |
237470e64bb8
switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents:
280
diff
changeset
|
22 </h2> |
143
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
23 <noscript>${_('The revision graph only works with JavaScript-enabled browsers.')}</noscript> |
282
237470e64bb8
switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents:
280
diff
changeset
|
24 % if c.pagination: |
193
50a39f923f31
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
Marcin Kuzminski <marcin@python-works.com>
parents:
143
diff
changeset
|
25 |
50a39f923f31
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
Marcin Kuzminski <marcin@python-works.com>
parents:
143
diff
changeset
|
26 <div id="graph"> |
288
ab1afe7444f3
Initial graph release.
Marcin Kuzminski <marcin@python-works.com>
parents:
284
diff
changeset
|
27 <div id="graph_nodes"> |
ab1afe7444f3
Initial graph release.
Marcin Kuzminski <marcin@python-works.com>
parents:
284
diff
changeset
|
28 <canvas id="graph_canvas"></canvas> |
ab1afe7444f3
Initial graph release.
Marcin Kuzminski <marcin@python-works.com>
parents:
284
diff
changeset
|
29 </div> |
193
50a39f923f31
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
Marcin Kuzminski <marcin@python-works.com>
parents:
143
diff
changeset
|
30 <div id="graph_content"> |
50a39f923f31
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
Marcin Kuzminski <marcin@python-works.com>
parents:
143
diff
changeset
|
31 <div class="container_header"> |
50a39f923f31
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
Marcin Kuzminski <marcin@python-works.com>
parents:
143
diff
changeset
|
32 ${h.form(h.url.current(),method='get')} |
289 | 33 <div> |
34 <span>${_('Show')}: </span> | |
35 <span>${h.text('size',size=2,value=c.size)}</span> | |
36 <span>${_('revisions')}</span> | |
37 ${h.submit('set',_('set'))} | |
38 </div> | |
193
50a39f923f31
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
Marcin Kuzminski <marcin@python-works.com>
parents:
143
diff
changeset
|
39 ${h.end_form()} |
50a39f923f31
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
Marcin Kuzminski <marcin@python-works.com>
parents:
143
diff
changeset
|
40 </div> |
50a39f923f31
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
Marcin Kuzminski <marcin@python-works.com>
parents:
143
diff
changeset
|
41 %for cnt,cs in enumerate(c.pagination): |
288
ab1afe7444f3
Initial graph release.
Marcin Kuzminski <marcin@python-works.com>
parents:
284
diff
changeset
|
42 <div id="chg_${cnt+1}" class="container"> |
193
50a39f923f31
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
Marcin Kuzminski <marcin@python-works.com>
parents:
143
diff
changeset
|
43 <div class="left"> |
50a39f923f31
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
Marcin Kuzminski <marcin@python-works.com>
parents:
143
diff
changeset
|
44 <div class="date">${_('commit')} ${cs.revision}: ${cs.raw_id}@${cs.date}</div> |
322
46b7d108ea7a
made graphg ticker, and fixes a paging bug caused grapgh disaligment
Marcin Kuzminski <marcin@python-works.com>
parents:
289
diff
changeset
|
45 <span class="logtags"> |
46b7d108ea7a
made graphg ticker, and fixes a paging bug caused grapgh disaligment
Marcin Kuzminski <marcin@python-works.com>
parents:
289
diff
changeset
|
46 <span class="branchtag">${cs.branch}</span> |
46b7d108ea7a
made graphg ticker, and fixes a paging bug caused grapgh disaligment
Marcin Kuzminski <marcin@python-works.com>
parents:
289
diff
changeset
|
47 %for tag in cs.tags: |
46b7d108ea7a
made graphg ticker, and fixes a paging bug caused grapgh disaligment
Marcin Kuzminski <marcin@python-works.com>
parents:
289
diff
changeset
|
48 <span class="tagtag">${tag}</span> |
46b7d108ea7a
made graphg ticker, and fixes a paging bug caused grapgh disaligment
Marcin Kuzminski <marcin@python-works.com>
parents:
289
diff
changeset
|
49 %endfor |
46b7d108ea7a
made graphg ticker, and fixes a paging bug caused grapgh disaligment
Marcin Kuzminski <marcin@python-works.com>
parents:
289
diff
changeset
|
50 </span> |
193
50a39f923f31
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
Marcin Kuzminski <marcin@python-works.com>
parents:
143
diff
changeset
|
51 <div class="author">${cs.author}</div> |
289 | 52 <div class="message"> |
284
c4caeca9dd66
fixed paragraphs wrapping for ultralong commit messages. Disabled tooltips for new repos without a last commit message. ie. when tooltip_title is empty (there is a strange bug on empty tooltip_title)
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
53 ${h.link_to(h.wrap_paragraphs(cs.message), |
c4caeca9dd66
fixed paragraphs wrapping for ultralong commit messages. Disabled tooltips for new repos without a last commit message. ie. when tooltip_title is empty (there is a strange bug on empty tooltip_title)
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
54 h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))} |
193
50a39f923f31
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
Marcin Kuzminski <marcin@python-works.com>
parents:
143
diff
changeset
|
55 </div> |
50a39f923f31
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
Marcin Kuzminski <marcin@python-works.com>
parents:
143
diff
changeset
|
56 </div> |
217
3a1b921ce51c
html code cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
212
diff
changeset
|
57 <div class="right"> |
3a1b921ce51c
html code cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
212
diff
changeset
|
58 <div class="changes"> |
3a1b921ce51c
html code cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
212
diff
changeset
|
59 <span class="removed" title="${_('removed')}">${len(cs.removed)}</span> |
3a1b921ce51c
html code cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
212
diff
changeset
|
60 <span class="changed" title="${_('changed')}">${len(cs.changed)}</span> |
3a1b921ce51c
html code cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
212
diff
changeset
|
61 <span class="added" title="${_('added')}">${len(cs.added)}</span> |
3a1b921ce51c
html code cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
212
diff
changeset
|
62 </div> |
3a1b921ce51c
html code cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
212
diff
changeset
|
63 %if len(cs.parents)>1: |
3a1b921ce51c
html code cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
212
diff
changeset
|
64 <div class="merge"> |
289 | 65 ${_('merge')}<img alt="merge" src="/images/icons/arrow_join.png"/> |
217
3a1b921ce51c
html code cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
212
diff
changeset
|
66 </div> |
3a1b921ce51c
html code cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
212
diff
changeset
|
67 %endif |
212
671931f082c3
added merge and parents indicators to changelog
Marcin Kuzminski <marcin@python-works.com>
parents:
193
diff
changeset
|
68 %for p_cs in reversed(cs.parents): |
271 | 69 <div class="parent">${_('Parent')} ${p_cs.revision}: ${h.link_to(p_cs.raw_id, |
217
3a1b921ce51c
html code cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
212
diff
changeset
|
70 h.url('changeset_home',repo_name=c.repo_name,revision=p_cs.raw_id),title=p_cs.message)} |
3a1b921ce51c
html code cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
212
diff
changeset
|
71 </div> |
212
671931f082c3
added merge and parents indicators to changelog
Marcin Kuzminski <marcin@python-works.com>
parents:
193
diff
changeset
|
72 %endfor |
217
3a1b921ce51c
html code cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
212
diff
changeset
|
73 </div> |
193
50a39f923f31
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
Marcin Kuzminski <marcin@python-works.com>
parents:
143
diff
changeset
|
74 </div> |
50a39f923f31
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
Marcin Kuzminski <marcin@python-works.com>
parents:
143
diff
changeset
|
75 |
50a39f923f31
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
Marcin Kuzminski <marcin@python-works.com>
parents:
143
diff
changeset
|
76 %endfor |
143
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
77 </div> |
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
78 </div> |
288
ab1afe7444f3
Initial graph release.
Marcin Kuzminski <marcin@python-works.com>
parents:
284
diff
changeset
|
79 <script type="text/javascript" src="/js/graph.js"></script> |
143
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
80 |
288
ab1afe7444f3
Initial graph release.
Marcin Kuzminski <marcin@python-works.com>
parents:
284
diff
changeset
|
81 <script type="text/javascript"> |
ab1afe7444f3
Initial graph release.
Marcin Kuzminski <marcin@python-works.com>
parents:
284
diff
changeset
|
82 YAHOO.util.Event.onDOMReady(function(){ |
ab1afe7444f3
Initial graph release.
Marcin Kuzminski <marcin@python-works.com>
parents:
284
diff
changeset
|
83 function set_canvas() { |
ab1afe7444f3
Initial graph release.
Marcin Kuzminski <marcin@python-works.com>
parents:
284
diff
changeset
|
84 var c = document.getElementById('graph_nodes'); |
ab1afe7444f3
Initial graph release.
Marcin Kuzminski <marcin@python-works.com>
parents:
284
diff
changeset
|
85 var t = document.getElementById('graph_content'); |
ab1afe7444f3
Initial graph release.
Marcin Kuzminski <marcin@python-works.com>
parents:
284
diff
changeset
|
86 canvas = document.getElementById('graph_canvas'); |
ab1afe7444f3
Initial graph release.
Marcin Kuzminski <marcin@python-works.com>
parents:
284
diff
changeset
|
87 var div_h = t.clientHeight; |
ab1afe7444f3
Initial graph release.
Marcin Kuzminski <marcin@python-works.com>
parents:
284
diff
changeset
|
88 c.style.height=div_h+'px'; |
ab1afe7444f3
Initial graph release.
Marcin Kuzminski <marcin@python-works.com>
parents:
284
diff
changeset
|
89 canvas.setAttribute('height',div_h); |
ab1afe7444f3
Initial graph release.
Marcin Kuzminski <marcin@python-works.com>
parents:
284
diff
changeset
|
90 canvas.setAttribute('width',160); |
ab1afe7444f3
Initial graph release.
Marcin Kuzminski <marcin@python-works.com>
parents:
284
diff
changeset
|
91 }; |
143
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
92 |
288
ab1afe7444f3
Initial graph release.
Marcin Kuzminski <marcin@python-works.com>
parents:
284
diff
changeset
|
93 set_canvas(); |
ab1afe7444f3
Initial graph release.
Marcin Kuzminski <marcin@python-works.com>
parents:
284
diff
changeset
|
94 |
ab1afe7444f3
Initial graph release.
Marcin Kuzminski <marcin@python-works.com>
parents:
284
diff
changeset
|
95 var jsdata = ${c.jsdata|n}; |
ab1afe7444f3
Initial graph release.
Marcin Kuzminski <marcin@python-works.com>
parents:
284
diff
changeset
|
96 var r = new BranchRenderer(); |
ab1afe7444f3
Initial graph release.
Marcin Kuzminski <marcin@python-works.com>
parents:
284
diff
changeset
|
97 r.render(jsdata); |
ab1afe7444f3
Initial graph release.
Marcin Kuzminski <marcin@python-works.com>
parents:
284
diff
changeset
|
98 |
ab1afe7444f3
Initial graph release.
Marcin Kuzminski <marcin@python-works.com>
parents:
284
diff
changeset
|
99 }); |
ab1afe7444f3
Initial graph release.
Marcin Kuzminski <marcin@python-works.com>
parents:
284
diff
changeset
|
100 </script> |
143
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
101 |
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
102 <div> |
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
103 <h2>${c.pagination.pager('$link_previous ~2~ $link_next')}</h2> |
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
104 </div> |
282
237470e64bb8
switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents:
280
diff
changeset
|
105 %else: |
237470e64bb8
switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents:
280
diff
changeset
|
106 ${_('There are no changes yet')} |
237470e64bb8
switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents:
280
diff
changeset
|
107 %endif |
143
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
108 </%def> |