Show More
@@ -1,63 +1,63 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | ##usage: |
|
3 | 3 | ## <%namespace name="diff_block" file="/changeset/diff_block.html"/> |
|
4 | 4 | ## ${diff_block.diff_block(change)} |
|
5 | 5 | ## |
|
6 | 6 | <%def name="diff_block(change)"> |
|
7 | 7 | |
|
8 | 8 | %for FID,(cs1, cs2, change, path, diff, stats) in change.iteritems(): |
|
9 | 9 | ##%if op !='removed': |
|
10 | 10 | <div id="${FID}_target" style="clear:both;margin-top:25px"></div> |
|
11 | 11 | <div id="${FID}" class="diffblock margined comm"> |
|
12 | 12 | <div class="code-header"> |
|
13 | 13 | <div class="changeset_header"> |
|
14 | 14 | <div class="changeset_file"> |
|
15 | 15 | ${h.link_to_if(change!='removed',h.safe_unicode(path),h.url('files_home',repo_name=c.repo_name, |
|
16 | 16 | revision=cs2,f_path=h.safe_unicode(path)))} |
|
17 | 17 | </div> |
|
18 | 18 | <div class="diff-actions"> |
|
19 | 19 | <a href="${h.url('files_diff_home',repo_name=c.repo_name,f_path=h.safe_unicode(path),diff2=cs2,diff1=cs1,diff='diff',fulldiff=1)}" class="tooltip" title="${h.tooltip(_('show full diff for this file'))}"><img class="icon" src="${h.url('/images/icons/page_white_go.png')}"/></a> |
|
20 | 20 | <a href="${h.url('files_diff_home',repo_name=c.repo_name,f_path=h.safe_unicode(path),diff2=cs2,diff1=cs1,diff='raw')}" class="tooltip" title="${h.tooltip(_('raw diff'))}"><img class="icon" src="${h.url('/images/icons/page_white.png')}"/></a> |
|
21 | 21 | <a href="${h.url('files_diff_home',repo_name=c.repo_name,f_path=h.safe_unicode(path),diff2=cs2,diff1=cs1,diff='download')}" class="tooltip" title="${h.tooltip(_('download diff'))}"><img class="icon" src="${h.url('/images/icons/page_save.png')}"/></a> |
|
22 | 22 | ${c.ignorews_url(request.GET, h.FID(cs2,path))} |
|
23 | 23 | ${c.context_url(request.GET, h.FID(cs2,path))} |
|
24 | 24 | </div> |
|
25 | 25 | <span style="float:right;margin-top:-3px"> |
|
26 | 26 | <label> |
|
27 | 27 | ${_('show inline comments')} |
|
28 | 28 | ${h.checkbox('',checked="checked",class_="show-inline-comments",id_for=h.FID(cs2,path))} |
|
29 | 29 | </label> |
|
30 | 30 | </span> |
|
31 | 31 | </div> |
|
32 | 32 | </div> |
|
33 | 33 | <div class="code-body"> |
|
34 | 34 | <div class="full_f_path" path="${h.safe_unicode(path)}"></div> |
|
35 | 35 | ${diff|n} |
|
36 | 36 | </div> |
|
37 | 37 | </div> |
|
38 | 38 | ##%endif |
|
39 | 39 | %endfor |
|
40 | 40 | |
|
41 | 41 | </%def> |
|
42 | 42 | |
|
43 | 43 | <%def name="diff_block_simple(change)"> |
|
44 | 44 | |
|
45 | 45 | %for op,filenode_path,diff in change: |
|
46 | 46 | <div id="${h.FID('',filenode_path)}_target" style="clear:both;margin-top:25px"></div> |
|
47 | 47 | <div id="${h.FID('',filenode_path)}" class="diffblock margined comm"> |
|
48 | 48 | <div class="code-header"> |
|
49 | 49 | <div class="changeset_header"> |
|
50 | 50 | <div class="changeset_file"> |
|
51 | 51 | ${h.safe_unicode(filenode_path)} | |
|
52 | <a class="spantag" href="${h.url('files_home', repo_name=c.repo_name, f_path=filenode_path, revision=c.org_ref)}">${c.org_ref_type}@${c.org_ref}</a> -> | |
|
53 | <a class="spantag" href="${h.url('files_home', repo_name=c.repo_name, f_path=filenode_path, revision=c.other_ref)}">${c.other_ref_type}@${c.other_ref}</a> | |
|
52 | <a class="spantag" href="${h.url('files_home', repo_name=c.repo_name, f_path=filenode_path, revision=c.org_ref)}" title="${_('show file at latest version in this repo')}">${c.org_ref_type}@${h.short_id(c.org_ref) if c.org_ref_type=='rev' else c.org_ref}</a> -> | |
|
53 | <a class="spantag" href="${h.url('files_home', repo_name=c.repo_name, f_path=filenode_path, revision=c.other_ref)}" title="${_('show file at initial version in this repo')}">${c.other_ref_type}@${h.short_id(c.other_ref) if c.other_ref_type=='rev' else c.other_ref}</a> | |
|
54 | 54 | </div> |
|
55 | 55 | </div> |
|
56 | 56 | </div> |
|
57 | 57 | <div class="code-body"> |
|
58 | 58 | <div class="full_f_path" path="${h.safe_unicode(filenode_path)}"></div> |
|
59 | 59 | ${diff|n} |
|
60 | 60 | </div> |
|
61 | 61 | </div> |
|
62 | 62 | %endfor |
|
63 | 63 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now