annotate pylons_app/templates/changelog/changelog.html @ 403:0659a891d975

fixed title on my account page
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 08 Aug 2010 13:13:42 +0200
parents b1debb6c5a09
children cbfb853a0a4c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
6
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
7 <%def name="breadcrumbs_links()">
143
787689980bcd Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
8 ${h.link_to(u'Home',h.url('/'))}
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
9 &raquo;
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
10 ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
11 &raquo;
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
12 ${_('Changelog')} - ${_('showing ')} ${c.size if c.size <= c.total_cs else c.total_cs} ${_('out of')} ${c.total_cs} ${_('revisions')}
143
787689980bcd Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
13 </%def>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
14
143
787689980bcd Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
15 <%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
16 ${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
17 </%def>
787689980bcd Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
18
787689980bcd Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
19 <%def name="main()">
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
20 <div class="box">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
21 <!-- box / title -->
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
22 <div class="title">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
23 ${self.breadcrumbs()}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
24 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
25 <div class="table">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
26 % if c.pagination:
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
27 <div id="graph">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
28 <div id="graph_nodes">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
29 <canvas id="graph_canvas"></canvas>
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>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
31 <div id="graph_content">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
32 <div class="container_header">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
33
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
34 ${h.form(h.url.current(),method='get')}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
35 <div class="info_box">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
36 <span>${_('Show')}:</span>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
37 ${h.text('size',size=1,value=c.size)}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
38 <span>${_('revisions')}</span>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
39 ${h.submit('set',_('set'))}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
40 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
41 ${h.end_form()}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
42
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
43 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
44 %for cnt,cs in enumerate(c.pagination):
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
45 <div id="chg_${cnt+1}" class="container">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
46 <div class="left">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
47 <div class="date">${_('commit')} ${cs.revision}: ${cs.raw_id}@${cs.date}</div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
48 <span class="logtags">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
49 <span class="branchtag">${cs.branch}</span>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
50 %for tag in cs.tags:
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
51 <span class="tagtag">${tag}</span>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
52 %endfor
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
53 </span>
401
b1debb6c5a09 implemented gravatars to changesets, updated styling for changesets
Marcin Kuzminski <marcin@python-works.com>
parents: 362
diff changeset
54 <div class="author">
b1debb6c5a09 implemented gravatars to changesets, updated styling for changesets
Marcin Kuzminski <marcin@python-works.com>
parents: 362
diff changeset
55 <div class="gravatar">
b1debb6c5a09 implemented gravatars to changesets, updated styling for changesets
Marcin Kuzminski <marcin@python-works.com>
parents: 362
diff changeset
56 <img alt="gravatar" src="${h.gravatar_url(h.email(cs.author),20)}"/>
b1debb6c5a09 implemented gravatars to changesets, updated styling for changesets
Marcin Kuzminski <marcin@python-works.com>
parents: 362
diff changeset
57 </div>
b1debb6c5a09 implemented gravatars to changesets, updated styling for changesets
Marcin Kuzminski <marcin@python-works.com>
parents: 362
diff changeset
58 <span>${h.person(cs.author)}</span><br/>
b1debb6c5a09 implemented gravatars to changesets, updated styling for changesets
Marcin Kuzminski <marcin@python-works.com>
parents: 362
diff changeset
59 <span><a href="mailto:${h.email_or_none(cs.author)}">${h.email_or_none(cs.author)}</a></span><br/>
b1debb6c5a09 implemented gravatars to changesets, updated styling for changesets
Marcin Kuzminski <marcin@python-works.com>
parents: 362
diff changeset
60 </div>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
61 <div class="message">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
62 ${h.link_to(h.wrap_paragraphs(cs.message),
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
63 h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}
217
3a1b921ce51c html code cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 212
diff changeset
64 </div>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
65 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
66 <div class="right">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
67 <div class="changes">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
68 <span class="removed" title="${_('removed')}">${len(cs.removed)}</span>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
69 <span class="changed" title="${_('changed')}">${len(cs.changed)}</span>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
70 <span class="added" title="${_('added')}">${len(cs.added)}</span>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
71 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
72 %if len(cs.parents)>1:
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
73 <div class="merge">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
74 ${_('merge')}<img alt="merge" src="/images/icons/arrow_join.png"/>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
75 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
76 %endif
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
77 %for p_cs in reversed(cs.parents):
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
78 <div class="parent">${_('Parent')} ${p_cs.revision}: ${h.link_to(p_cs.raw_id,
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
79 h.url('changeset_home',repo_name=c.repo_name,revision=p_cs.raw_id),title=p_cs.message)}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
80 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
81 %endfor
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
82 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
83 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
84
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
85 %endfor
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
86 <div class="pagination-wh pagination-left">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
87 ${c.pagination.pager('$link_previous ~2~ $link_next')}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
88 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
89 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
90 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
91
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
92 <script type="text/javascript" src="/js/graph.js"></script>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
93 <script type="text/javascript">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
94 YAHOO.util.Event.onDOMReady(function(){
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
95 function set_canvas() {
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
96 var c = document.getElementById('graph_nodes');
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
97 var t = document.getElementById('graph_content');
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
98 canvas = document.getElementById('graph_canvas');
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
99 var div_h = t.clientHeight;
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
100 c.style.height=div_h+'px';
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
101 canvas.setAttribute('height',div_h);
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
102 canvas.setAttribute('width',160);
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
103 };
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
104 set_canvas();
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
105 var jsdata = ${c.jsdata|n};
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
106 var r = new BranchRenderer();
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
107 r.render(jsdata);
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
108 });
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
109 </script>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
110 %else:
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
111 ${_('There are no changes yet')}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
112 %endif
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
113 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
114 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 322
diff changeset
115 </%def>