Show More
@@ -1,94 +1,95 | |||
|
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 | 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 | %for change,filenode,diff in c.changes: | |
|
59 | %for change,filenode,diff,cs1,cs2 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 | %for change,filenode,diff in c.changes: | |
|
64 | %for change,filenode,diff,cs1,cs2 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 | ||
|
75 |
|
|
|
76 | ##h.url.current(diff2=c.diff2,diff1=c.diff1,diff='diff'))}</span> | |
|
77 |
|
|
|
78 | ##h.url.current(diff2=c.diff2,diff1=c.diff1.split(':')[-1],diff='raw'))}</span> | |
|
79 |
|
|
|
80 | ##h.url.current(diff2=c.diff2,diff1=c.diff1,diff='download'))}</span> | |
|
74 | %if 1: | |
|
75 | » <span style="font-size:77%">${h.link_to(_('diff'), | |
|
76 | h.url('files_diff_home',repo_name=c.repo_name,f_path=filenode.path,diff2=cs2,diff1=cs1,diff='diff'))}</span> | |
|
77 | » <span style="font-size:77%">${h.link_to(_('raw diff'), | |
|
78 | h.url('files_diff_home',repo_name=c.repo_name,f_path=filenode.path,diff2=cs2,diff1=cs1,diff='raw'))}</span> | |
|
79 | » <span style="font-size:77%">${h.link_to(_('download diff'), | |
|
80 | h.url('files_diff_home',repo_name=c.repo_name,f_path=filenode.path,diff2=cs2,diff1=cs1,diff='download'))}</span> | |
|
81 | %endif | |
|
81 | 82 | </div> |
|
82 | 83 | </div> |
|
83 | 84 | <div class="code-body"> |
|
84 | 85 | %if diff: |
|
85 | 86 | ${diff|n} |
|
86 | 87 | %else: |
|
87 | 88 | ${_('No changes in this file')} |
|
88 | 89 | %endif |
|
89 | 90 | </div> |
|
90 | 91 | </div> |
|
91 | 92 | %endif |
|
92 | 93 | %endfor |
|
93 | 94 | |
|
94 | 95 | </%def> No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now