Show More
@@ -1,120 +1,125 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 | ${_('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)} |
|
10 | 10 | </%def> |
|
11 | 11 | |
|
12 | 12 | <%def name="page_nav()"> |
|
13 | 13 | ${self.menu('repositories')} |
|
14 | 14 | </%def> |
|
15 | 15 | |
|
16 | 16 | <%def name="main()"> |
|
17 | 17 | ${self.context_bar('changelog')} |
|
18 | 18 | <div class="box"> |
|
19 | 19 | <!-- box / title --> |
|
20 | 20 | <div class="title"> |
|
21 | 21 | ${self.breadcrumbs()} |
|
22 | 22 | </div> |
|
23 | 23 | <div class="table"> |
|
24 | 24 | <div id="body" class="diffblock"> |
|
25 | 25 | <div class="code-header"> |
|
26 | 26 | <div> |
|
27 | 27 | ${h.link_to('r%s:%s -> r%s:%s' % (c.cs_ranges[0].revision, h.short_id(c.cs_ranges[0].raw_id), c.cs_ranges[-1].revision, h.short_id(c.cs_ranges[-1].raw_id)), |
|
28 | 28 | h.url('compare_url',repo_name=c.repo_name,org_ref_type='rev',org_ref=getattr(c.cs_ranges[0].parents[0] if c.cs_ranges[0].parents else h.EmptyChangeset(),'raw_id'),other_ref_type='rev',other_ref=c.cs_ranges[-1].raw_id) |
|
29 | 29 | )} |
|
30 | 30 | </div> |
|
31 | 31 | </div> |
|
32 | 32 | </div> |
|
33 | 33 | <div id="changeset_compare_view_content"> |
|
34 | 34 | <div class="container"> |
|
35 | 35 | <table class="compare_view_commits noborder"> |
|
36 | 36 | %for cnt,cs in enumerate(c.cs_ranges): |
|
37 | 37 | <tr> |
|
38 | 38 | <td><div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(h.email_or_none(cs.author),14)}"/></div></td> |
|
39 | 39 | <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> |
|
40 | 40 | <td><div class="author">${h.person(cs.author)}</div></td> |
|
41 | 41 | <td><span class="tooltip" title="${h.age(cs.date)}">${cs.date}</span></td> |
|
42 | 42 | <td> |
|
43 | 43 | %if c.statuses: |
|
44 | 44 | <div title="${h.tooltip(_('Changeset status'))}" class="changeset-status-ico"><img src="${h.url('/images/icons/flag_status_%s.png' % c.statuses[cnt])}" /></div> |
|
45 | 45 | %endif |
|
46 | 46 | </td> |
|
47 | 47 | <td><div class="message">${h.urlify_commit(h.wrap_paragraphs(cs.message),c.repo_name)}</div></td> |
|
48 | 48 | </tr> |
|
49 | 49 | %endfor |
|
50 | 50 | </table> |
|
51 | 51 | </div> |
|
52 | 52 | <div style="font-size:1.1em;font-weight: bold;clear:both;padding-top:10px">${_('Files affected')}</div> |
|
53 | 53 | <div class="cs_files"> |
|
54 | 54 | %for cs in c.cs_ranges: |
|
55 | 55 | <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> |
|
56 | 56 | %for FID, (cs1, cs2, change, path, diff, stats) in c.changes[cs.raw_id].iteritems(): |
|
57 | <div class="cs_${change}">${h.link_to(h.safe_unicode(path),h.url.current(anchor=FID))}</div> | |
|
57 | <div class="cs_${change}"> | |
|
58 | <div class="node"> | |
|
59 | ${h.link_to(h.safe_unicode(path),h.url.current(anchor=FID))} | |
|
60 | </div> | |
|
61 | <div class="changes">${h.fancy_file_stats(stats)}</div> | |
|
62 | </div> | |
|
58 | 63 | %endfor |
|
59 | 64 | %endfor |
|
60 | 65 | </div> |
|
61 | 66 | </div> |
|
62 | 67 | |
|
63 | 68 | </div> |
|
64 | 69 | <%namespace name="comment" file="/changeset/changeset_file_comment.html"/> |
|
65 | 70 | <%namespace name="diff_block" file="/changeset/diff_block.html"/> |
|
66 | 71 | %for cs in c.cs_ranges: |
|
67 | 72 | ##${comment.comment_inline_form(cs)} |
|
68 | 73 | ## diff block |
|
69 | 74 | <div class="h3"> |
|
70 | 75 | <a class="tooltip" title="${h.tooltip(cs.message)}" href="${h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id)}">${'r%s:%s' % (cs.revision,h.short_id(cs.raw_id))}</a> |
|
71 | 76 | <div class="gravatar"> |
|
72 | 77 | <img alt="gravatar" src="${h.gravatar_url(h.email_or_none(cs.author),20)}"/> |
|
73 | 78 | </div> |
|
74 | 79 | <div class="right"> |
|
75 | 80 | <span class="logtags"> |
|
76 | 81 | %if len(cs.parents)>1: |
|
77 | 82 | <span class="merge">${_('merge')}</span> |
|
78 | 83 | %endif |
|
79 | 84 | %if h.is_hg(c.rhodecode_repo): |
|
80 | 85 | %for book in cs.bookmarks: |
|
81 | 86 | <span class="booktag" title="${_('Bookmark %s') % book}"> |
|
82 | 87 | ${h.link_to(h.shorter(book),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))} |
|
83 | 88 | </span> |
|
84 | 89 | %endfor |
|
85 | 90 | %endif |
|
86 | 91 | %for tag in cs.tags: |
|
87 | 92 | <span class="tagtag" title="${_('Tag %s') % tag}"> |
|
88 | 93 | ${h.link_to(h.shorter(tag),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}</span> |
|
89 | 94 | %endfor |
|
90 | 95 | %if cs.branch: |
|
91 | 96 | <span class="branchtag" title="${_('Branch %s') % cs.branch}"> |
|
92 | 97 | ${h.link_to(h.shorter(cs.branch),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))} |
|
93 | 98 | </span> |
|
94 | 99 | %endif |
|
95 | 100 | </span> |
|
96 | 101 | </div> |
|
97 | 102 | </div> |
|
98 | 103 | ${diff_block.diff_block(c.changes[cs.raw_id])} |
|
99 | 104 | ##${comment.comments(cs)} |
|
100 | 105 | |
|
101 | 106 | %endfor |
|
102 | 107 | <script type="text/javascript"> |
|
103 | 108 | |
|
104 | 109 | YUE.onDOMReady(function(){ |
|
105 | 110 | |
|
106 | 111 | YUE.on(YUQ('.diff-menu-activate'),'click',function(e){ |
|
107 | 112 | var act = e.currentTarget.nextElementSibling; |
|
108 | 113 | |
|
109 | 114 | if(YUD.hasClass(act,'active')){ |
|
110 | 115 | YUD.removeClass(act,'active'); |
|
111 | 116 | YUD.setStyle(act,'display','none'); |
|
112 | 117 | }else{ |
|
113 | 118 | YUD.addClass(act,'active'); |
|
114 | 119 | YUD.setStyle(act,'display',''); |
|
115 | 120 | } |
|
116 | 121 | }); |
|
117 | 122 | }) |
|
118 | 123 | </script> |
|
119 | 124 | </div> |
|
120 | 125 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now