##// END OF EJS Templates
changeset ranges use new fileid method.
marcink -
r1688:82e604d3 beta
parent child Browse files
Show More
@@ -1,97 +1,99
1 1 <%inherit file="/base/base.html"/>
2 2
3 3 <%def name="title()">
4 4 ${c.repo_name} ${_('Changesets')} - r${c.cs_ranges[0].revision}:${h.short_id(c.cs_ranges[0].raw_id)} -> r${c.cs_ranges[-1].revision}:${h.short_id(c.cs_ranges[-1].raw_id)} - ${c.rhodecode_name}
5 5 </%def>
6 6
7 7 <%def name="breadcrumbs_links()">
8 8 ${h.link_to(u'Home',h.url('/'))}
9 9 &raquo;
10 10 ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))}
11 11 &raquo;
12 12 ${_('Changesets')} - r${c.cs_ranges[0].revision}:${h.short_id(c.cs_ranges[0].raw_id)} -> r${c.cs_ranges[-1].revision}:${h.short_id(c.cs_ranges[-1].raw_id)}
13 13 </%def>
14 14
15 15 <%def name="page_nav()">
16 16 ${self.menu('changelog')}
17 17 </%def>
18 18
19 <%def name="fid(raw_id,path)" filter="strip">
20 <%
21 return 'C-%s-%s' % (h.short_id(raw_id),h.safeid(h.safe_unicode(path)))
22 %>
23 </%def>
24
19 25 <%def name="main()">
20 26 <div class="box">
21 27 <!-- box / title -->
22 28 <div class="title">
23 29 ${self.breadcrumbs()}
24 30 </div>
25 31 <div class="table">
26 32 <div id="body" class="diffblock">
27 33 <div class="code-header">
34 <h3>${_('Compare View')}</h3>
28 35 <div>
29 36 ${_('Changesets')} - r${c.cs_ranges[0].revision}:${h.short_id(c.cs_ranges[0].raw_id)} -> r${c.cs_ranges[-1].revision}:${h.short_id(c.cs_ranges[-1].raw_id)}
30 <h3>${_('Compare View')}</h3>
31 ##&raquo; <span>${h.link_to(_('raw diff'),
32 ##h.url('raw_changeset_home',repo_name=c.repo_name,revision=c.changeset.raw_id,diff='show'))}</span>
33 ##&raquo; <span>${h.link_to(_('download diff'),
34 ##h.url('raw_changeset_home',repo_name=c.repo_name,revision=c.changeset.raw_id,diff='download'))}</span>
35 37 </div>
36 38 </div>
37 39 </div>
38 40 <div id="changeset_compare_view_content">
39 41 <div class="container">
40 42 <table class="compare_view_commits noborder">
41 43 %for cs in c.cs_ranges:
42 44 <tr>
43 45 <td><div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(h.email(cs.author),14)}"/></div></td>
44 46 <td>${h.link_to('r%s:%s' % (cs.revision,h.short_id(cs.raw_id)),h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}</td>
45 47 <td><div class="author">${h.person(cs.author)}</div></td>
46 48 <td><span class="tooltip" title="${h.age(cs.date)}">${cs.date}</span></td>
47 49 <td><div class="message">${h.link_to(h.wrap_paragraphs(cs.message),h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}</div></td>
48 50 </tr>
49 51 %endfor
50 52 </table>
51 53 </div>
52 54 <div style="font-size:1.1em;font-weight: bold;clear:both;padding-top:10px">${_('Files affected')}</div>
53 55 <div class="cs_files">
54 56 %for cs in c.cs_ranges:
55 57 <div class="cur_cs">r${cs}</div>
56 58 %for change,filenode,diff,cs1,cs2,st in c.changes[cs.raw_id]:
57 <div class="cs_${change}">${h.link_to(h.safe_unicode(filenode.path),h.url.current(anchor=h.repo_name_slug('C%s-%s' % (cs.short_id,h.safe_unicode(filenode.path)))))}</div>
59 <div class="cs_${change}">${h.link_to(h.safe_unicode(filenode.path),h.url.current(anchor=self.fid(cs.raw_id,filenode.path)))}</div>
58 60 %endfor
59 61 %endfor
60 62 </div>
61 63 </div>
62 64
63 65 </div>
64 66 %for cs in c.cs_ranges:
65 67 %for change,filenode,diff,cs1,cs2,st in c.changes[cs.raw_id]:
66 68 %if change !='removed':
67 69 <div style="clear:both;height:10px"></div>
68 <div class="diffblock">
69 <div id="${h.repo_name_slug('C%s-%s' % (cs.short_id,h.safe_unicode(filenode.path)))}" class="code-header">
70 <div class="diffblock margined">
71 <div id="${self.fid(cs.raw_id,filenode.path)}" class="code-header">
70 72 <div class="changeset_header">
71 73 <span class="changeset_file">
72 74 ${h.link_to_if(change!='removed',h.safe_unicode(filenode.path),h.url('files_home',repo_name=c.repo_name,
73 75 revision=filenode.changeset.raw_id,f_path=h.safe_unicode(filenode.path)))}
74 76 </span>
75 77 %if 1:
76 78 &raquo; <span>${h.link_to(_('diff'),
77 79 h.url('files_diff_home',repo_name=c.repo_name,f_path=h.safe_unicode(filenode.path),diff2=cs2,diff1=cs1,diff='diff'))}</span>
78 80 &raquo; <span>${h.link_to(_('raw diff'),
79 81 h.url('files_diff_home',repo_name=c.repo_name,f_path=h.safe_unicode(filenode.path),diff2=cs2,diff1=cs1,diff='raw'))}</span>
80 82 &raquo; <span>${h.link_to(_('download diff'),
81 83 h.url('files_diff_home',repo_name=c.repo_name,f_path=h.safe_unicode(filenode.path),diff2=cs2,diff1=cs1,diff='download'))}</span>
82 84 %endif
83 85 </div>
84 86 </div>
85 87 <div class="code-body">
86 88 %if diff:
87 89 ${diff|n}
88 90 %else:
89 91 ${_('No changes in this file')}
90 92 %endif
91 93 </div>
92 94 </div>
93 95 %endif
94 96 %endfor
95 97 %endfor
96 98 </div>
97 99 </%def> No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now