Show More
@@ -1,89 +1,90 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | <%inherit file="/base/base.html"/> |
|
3 | 3 | |
|
4 | 4 | <%def name="title()"> |
|
5 | 5 | ${_('%s Changesets') % c.repo_name} - 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} |
|
6 | 6 | </%def> |
|
7 | 7 | |
|
8 | 8 | <%def name="breadcrumbs_links()"> |
|
9 | 9 | ${h.link_to(u'Home',h.url('/'))} |
|
10 | 10 | » |
|
11 | 11 | ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))} |
|
12 | 12 | » |
|
13 | 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 | 14 | </%def> |
|
15 | 15 | |
|
16 | 16 | <%def name="page_nav()"> |
|
17 | 17 | ${self.menu('changelog')} |
|
18 | 18 | </%def> |
|
19 | 19 | |
|
20 | 20 | <%def name="main()"> |
|
21 | 21 | <div class="box"> |
|
22 | 22 | <!-- box / title --> |
|
23 | 23 | <div class="title"> |
|
24 | 24 | ${self.breadcrumbs()} |
|
25 | 25 | </div> |
|
26 | 26 | <div class="table"> |
|
27 | 27 | <div id="body" class="diffblock"> |
|
28 | 28 | <div class="code-header cv"> |
|
29 | 29 | <h3 class="code-header-title">${_('Compare View')}</h3> |
|
30 | 30 | <div> |
|
31 | 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 | 32 | </div> |
|
33 | 33 | </div> |
|
34 | 34 | </div> |
|
35 | 35 | <div id="changeset_compare_view_content"> |
|
36 | 36 | <div class="container"> |
|
37 | 37 | <table class="compare_view_commits noborder"> |
|
38 | 38 | %for cs in c.cs_ranges: |
|
39 | 39 | <tr> |
|
40 | 40 | <td><div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(h.email(cs.author),14)}"/></div></td> |
|
41 | 41 | <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> |
|
42 | 42 | <td><div class="author">${h.person(cs.author)}</div></td> |
|
43 | 43 | <td><span class="tooltip" title="${h.tooltip(h.age(cs.date))}">${h.fmt_date(cs.date)}</span></td> |
|
44 | 44 | <td><div class="message">${h.urlify_commit(cs.message, c.repo_name)}</div></td> |
|
45 | 45 | </tr> |
|
46 | 46 | %endfor |
|
47 | 47 | </table> |
|
48 | 48 | </div> |
|
49 | 49 | <div style="font-size:1.1em;font-weight: bold;clear:both;padding-top:10px">${_('Files affected')}</div> |
|
50 | 50 | <div class="cs_files"> |
|
51 | 51 | %for cs in c.cs_ranges: |
|
52 | <div class="cur_cs">r${cs}</div> | |
|
52 | <div class="cur_cs">${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))}</div> | |
|
53 | 53 | %for change,filenode,diff,cs1,cs2,st in c.changes[cs.raw_id]: |
|
54 | 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 | 55 | %endfor |
|
56 | 56 | %endfor |
|
57 | 57 | </div> |
|
58 | 58 | </div> |
|
59 | 59 | |
|
60 | 60 | </div> |
|
61 | 61 | <%namespace name="comment" file="/changeset/changeset_file_comment.html"/> |
|
62 | 62 | <%namespace name="diff_block" file="/changeset/diff_block.html"/> |
|
63 | 63 | %for cs in c.cs_ranges: |
|
64 | 64 | ##${comment.comment_inline_form(cs)} |
|
65 | 65 | ## diff block |
|
66 |
<h3 style=" |
|
|
66 | <h3 style="padding-top:8px;">${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))}</h3> | |
|
67 | ||
|
67 | 68 | ${diff_block.diff_block(c.changes[cs.raw_id])} |
|
68 | 69 | ##${comment.comments(cs)} |
|
69 | 70 | |
|
70 | 71 | %endfor |
|
71 | 72 | <script type="text/javascript"> |
|
72 | 73 | |
|
73 | 74 | YUE.onDOMReady(function(){ |
|
74 | 75 | |
|
75 | 76 | YUE.on(YUQ('.diff-menu-activate'),'click',function(e){ |
|
76 | 77 | var act = e.currentTarget.nextElementSibling; |
|
77 | 78 | |
|
78 | 79 | if(YUD.hasClass(act,'active')){ |
|
79 | 80 | YUD.removeClass(act,'active'); |
|
80 | 81 | YUD.setStyle(act,'display','none'); |
|
81 | 82 | }else{ |
|
82 | 83 | YUD.addClass(act,'active'); |
|
83 | 84 | YUD.setStyle(act,'display',''); |
|
84 | 85 | } |
|
85 | 86 | }); |
|
86 | 87 | }) |
|
87 | 88 | </script> |
|
88 | 89 | </div> |
|
89 | 90 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now