Show More
@@ -1,92 +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 | <div class="right"> |
|
54 | 54 | <div class="changes"> |
|
55 | 55 | <span class="removed" title="${_('removed')}">${len(cs.removed)}</span> |
|
56 | 56 | <span class="changed" title="${_('changed')}">${len(cs.changed)}</span> |
|
57 | 57 | <span class="added" title="${_('added')}">${len(cs.added)}</span> |
|
58 | 58 | </div> |
|
59 | 59 | %if len(cs.parents)>1: |
|
60 | 60 | <div class="merge"> |
|
61 | 61 | ${_('merge')}<img alt="merge" src="/images/icons/arrow_join.png"> |
|
62 | 62 | </div> |
|
63 | 63 | %endif |
|
64 | 64 | %for p_cs in reversed(cs.parents): |
|
65 |
<div class="parent">${_('Par |
|
|
65 | <div class="parent">${_('Parent')} ${p_cs.revision}: ${h.link_to(p_cs.raw_id, | |
|
66 | 66 | h.url('changeset_home',repo_name=c.repo_name,revision=p_cs.raw_id),title=p_cs.message)} |
|
67 | 67 | </div> |
|
68 | 68 | %endfor |
|
69 | 69 | </div> |
|
70 | 70 | </div> |
|
71 | 71 | |
|
72 | 72 | %endfor |
|
73 | 73 | </div> |
|
74 | 74 | </div> |
|
75 | 75 | |
|
76 | 76 | ##<script type="text/javascript" src="/js/graph2.js"></script> |
|
77 | 77 | ##<script type="text/javascript" src="http://bitbucket-assets.s3.amazonaws.com/js/lib/bundle.160310Mar.js"></script> |
|
78 | 78 | ## |
|
79 | 79 | ##<script> |
|
80 | 80 | ##<!-- hide script content |
|
81 | 81 | ## |
|
82 | 82 | ##var jsdata = ${c.jsdata|n}; |
|
83 | 83 | ##var r = new BranchRenderer(); |
|
84 | 84 | ##r.render(jsdata); |
|
85 | 85 | |
|
86 | 86 | ##// stop hiding script --> |
|
87 | 87 | ##</script> |
|
88 | 88 | |
|
89 | 89 | <div> |
|
90 | 90 | <h2>${c.pagination.pager('$link_previous ~2~ $link_next')}</h2> |
|
91 | 91 | </div> |
|
92 | 92 | </%def> No newline at end of file |
@@ -1,94 +1,94 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 | ${_('Changeset')} |
|
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('changeset_home',repo_name=c.repo_name))} |
|
13 | 13 | / |
|
14 | 14 | ${_('changeset')} |
|
15 | 15 | </%def> |
|
16 | 16 | <%def name="page_nav()"> |
|
17 | 17 | ${self.menu('changelog')} |
|
18 | 18 | </%def> |
|
19 | 19 | <%def name="css()"> |
|
20 | 20 | <link rel="stylesheet" href="/css/monoblue_custom.css" type="text/css" /> |
|
21 | 21 | <link rel="stylesheet" href="/css/diff.css" type="text/css" /> |
|
22 | 22 | </%def> |
|
23 | 23 | <%def name="main()"> |
|
24 | 24 | <h2 class="no-link no-border">${_('Changeset')} - r${c.changeset.revision}:${c.changeset.raw_id}</h2> |
|
25 | 25 | |
|
26 | 26 | <div id="changeset_content"> |
|
27 | 27 | <div class="container"> |
|
28 | 28 | <div class="left"> |
|
29 | 29 | <div class="date">${_('Date')}: ${c.changeset.date}</div> |
|
30 | 30 | <div class="author">${_('Author')}: ${c.changeset.author}</div> |
|
31 | 31 | <div class="message"> |
|
32 | 32 | ${c.changeset.message} |
|
33 | 33 | </div> |
|
34 | 34 | </div> |
|
35 | 35 | <div class="right"> |
|
36 | 36 | <span class="logtags"> |
|
37 | 37 | <span class="branchtag">${c.changeset.branch}</span> |
|
38 | 38 | %for tag in c.changeset.tags: |
|
39 | 39 | <span class="tagtag">${tag}</span> |
|
40 | 40 | %endfor |
|
41 | 41 | </span> |
|
42 | 42 | %if len(c.changeset.parents)>1: |
|
43 | 43 | <div class="merge"> |
|
44 | 44 | ${_('merge')} |
|
45 | 45 | <img alt="merge" src="/images/icons/arrow_join.png"> |
|
46 | 46 | </div> |
|
47 | 47 | %endif |
|
48 | 48 | %for p_cs in reversed(c.changeset.parents): |
|
49 |
<div class="parent">${_('Par |
|
|
49 | <div class="parent">${_('Parent')} ${p_cs.revision}: ${h.link_to(p_cs.raw_id, | |
|
50 | 50 | h.url('changeset_home',repo_name=c.repo_name,revision=p_cs.raw_id),title=p_cs.message)} |
|
51 | 51 | </div> |
|
52 | 52 | %endfor |
|
53 | 53 | </div> |
|
54 | 54 | </div> |
|
55 | 55 | </div> |
|
56 | 56 | |
|
57 | 57 | <div style="clear:both;height:10px"></div> |
|
58 | 58 | <div class="cs_files"> |
|
59 | 59 | %for change,filenode,diff in c.changes: |
|
60 | 60 | <div class="cs_${change}">${h.link_to(filenode.path,h.url.current(anchor='CHANGE-%s'%filenode.path))}</div> |
|
61 | 61 | %endfor |
|
62 | 62 | </div> |
|
63 | 63 | |
|
64 | 64 | %for change,filenode,diff in c.changes: |
|
65 | 65 | %if change !='removed': |
|
66 | 66 | <div style="clear:both;height:10px"></div> |
|
67 | 67 | <div id="body" class="diffblock"> |
|
68 | 68 | <div id="${'CHANGE-%s'%filenode.path}" class="code-header"> |
|
69 | 69 | <div> |
|
70 | 70 | <span> |
|
71 | 71 | ${h.link_to_if(change!='removed',filenode.path,h.url('files_home',repo_name=c.repo_name, |
|
72 | 72 | revision=filenode.changeset.raw_id,f_path=filenode.path))} |
|
73 | 73 | </span> |
|
74 | 74 | |
|
75 | 75 | ##» <span style="font-size:77%">${h.link_to(_('diff'), |
|
76 | 76 | ##h.url.current(diff2=c.diff2,diff1=c.diff1,diff='diff'))}</span> |
|
77 | 77 | ##» <span style="font-size:77%">${h.link_to(_('raw diff'), |
|
78 | 78 | ##h.url.current(diff2=c.diff2,diff1=c.diff1.split(':')[-1],diff='raw'))}</span> |
|
79 | 79 | ##» <span style="font-size:77%">${h.link_to(_('download diff'), |
|
80 | 80 | ##h.url.current(diff2=c.diff2,diff1=c.diff1,diff='download'))}</span> |
|
81 | 81 | </div> |
|
82 | 82 | </div> |
|
83 | 83 | <div class="code-body"> |
|
84 | 84 | %if diff: |
|
85 | 85 | ${diff|n} |
|
86 | 86 | %else: |
|
87 | 87 | ${_('No changes in this file')} |
|
88 | 88 | %endif |
|
89 | 89 | </div> |
|
90 | 90 | </div> |
|
91 | 91 | %endif |
|
92 | 92 | %endfor |
|
93 | 93 | |
|
94 | 94 | </%def> No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now