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