Show More
@@ -16,6 +16,12 b'' | |||
|
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 --> |
@@ -25,13 +31,9 b'' | |||
|
25 | 31 | <div class="table"> |
|
26 | 32 | <div id="body" class="diffblock"> |
|
27 | 33 | <div class="code-header"> |
|
28 | <div> | |
|
34 | <h3>${_('Compare View')}</h3> | |
|
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 | ##» <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 | ##» <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> |
@@ -54,7 +56,7 b'' | |||
|
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= |
|
|
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> |
@@ -65,8 +67,8 b'' | |||
|
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="${ |
|
|
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, |
General Comments 0
You need to be logged in to leave comments.
Login now