Mercurial > kallithea
comparison rhodecode/templates/changeset/changeset_range.html @ 1888:f91d3f9b7230 beta
White-space cleanup
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 12 Jan 2012 06:32:40 +0200 |
parents | f26acc1b27e2 |
children | 87664e60bbc0 44f328d6f209 |
comparison
equal
deleted
inserted
replaced
1886:50e32940e464 | 1888:f91d3f9b7230 |
---|---|
12 » | 12 » |
13 ${_('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 ${_('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)} |
14 </%def> | 14 </%def> |
15 | 15 |
16 <%def name="page_nav()"> | 16 <%def name="page_nav()"> |
17 ${self.menu('changelog')} | 17 ${self.menu('changelog')} |
18 </%def> | 18 </%def> |
19 | 19 |
20 <%def name="main()"> | 20 <%def name="main()"> |
21 <div class="box"> | 21 <div class="box"> |
22 <!-- box / title --> | 22 <!-- box / title --> |
24 ${self.breadcrumbs()} | 24 ${self.breadcrumbs()} |
25 </div> | 25 </div> |
26 <div class="table"> | 26 <div class="table"> |
27 <div id="body" class="diffblock"> | 27 <div id="body" class="diffblock"> |
28 <div class="code-header cv"> | 28 <div class="code-header cv"> |
29 <h3 class="code-header-title">${_('Compare View')}</h3> | 29 <h3 class="code-header-title">${_('Compare View')}</h3> |
30 <div> | 30 <div> |
31 ${_('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)} | 31 ${_('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)} |
32 </div> | 32 </div> |
33 </div> | 33 </div> |
34 </div> | 34 </div> |
51 %for cs in c.cs_ranges: | 51 %for cs in c.cs_ranges: |
52 <div class="cur_cs">r${cs}</div> | 52 <div class="cur_cs">r${cs}</div> |
53 %for change,filenode,diff,cs1,cs2,st in c.changes[cs.raw_id]: | 53 %for change,filenode,diff,cs1,cs2,st in c.changes[cs.raw_id]: |
54 <div class="cs_${change}">${h.link_to(h.safe_unicode(filenode.path),h.url.current(anchor=h.FID(cs.raw_id,filenode.path)))}</div> | 54 <div class="cs_${change}">${h.link_to(h.safe_unicode(filenode.path),h.url.current(anchor=h.FID(cs.raw_id,filenode.path)))}</div> |
55 %endfor | 55 %endfor |
56 %endfor | 56 %endfor |
57 </div> | 57 </div> |
58 </div> | 58 </div> |
59 | 59 |
60 </div> | 60 </div> |
61 <%namespace name="comment" file="/changeset/changeset_file_comment.html"/> | 61 <%namespace name="comment" file="/changeset/changeset_file_comment.html"/> |
62 <%namespace name="diff_block" file="/changeset/diff_block.html"/> | 62 <%namespace name="diff_block" file="/changeset/diff_block.html"/> |
63 %for cs in c.cs_ranges: | 63 %for cs in c.cs_ranges: |
64 ##${comment.comment_inline_form(cs)} | 64 ##${comment.comment_inline_form(cs)} |
65 ## diff block | 65 ## diff block |
66 <h3 style="border:none;padding-top:8px;">${'r%s:%s' % (cs.revision,h.short_id(cs.raw_id))}</h3> | 66 <h3 style="border:none;padding-top:8px;">${'r%s:%s' % (cs.revision,h.short_id(cs.raw_id))}</h3> |
67 ${diff_block.diff_block(c.changes[cs.raw_id])} | 67 ${diff_block.diff_block(c.changes[cs.raw_id])} |
68 ##${comment.comments(cs)} | 68 ##${comment.comments(cs)} |
69 | 69 |
70 %endfor | 70 %endfor |
71 <script type="text/javascript"> | 71 <script type="text/javascript"> |
72 | 72 |
73 YUE.onDOMReady(function(){ | 73 YUE.onDOMReady(function(){ |
74 | 74 |
75 YUE.on(YUQ('.diff-menu-activate'),'click',function(e){ | 75 YUE.on(YUQ('.diff-menu-activate'),'click',function(e){ |
76 var act = e.currentTarget.nextElementSibling; | 76 var act = e.currentTarget.nextElementSibling; |
77 | 77 |
78 if(YUD.hasClass(act,'active')){ | 78 if(YUD.hasClass(act,'active')){ |
79 YUD.removeClass(act,'active'); | 79 YUD.removeClass(act,'active'); |
80 YUD.setStyle(act,'display','none'); | 80 YUD.setStyle(act,'display','none'); |
81 }else{ | 81 }else{ |
82 YUD.addClass(act,'active'); | 82 YUD.addClass(act,'active'); |
83 YUD.setStyle(act,'display',''); | 83 YUD.setStyle(act,'display',''); |
84 } | 84 } |
85 }); | 85 }); |
86 }) | 86 }) |
87 </script> | 87 </script> |
88 </div> | 88 </div> |
89 </%def> | 89 </%def> |