##// END OF EJS Templates
ui: fixed commit range page
dan -
r3759:d422b6a5 new-ui
parent child Browse files
Show More
@@ -326,6 +326,9 b''
326 326 .commit-date {
327 327 color: @grey4;
328 328 }
329 .fieldset-text-line {
330 line-height: 36px;
331 }
329 332 }
330 333
331 334 // expand commit message
@@ -12,13 +12,7 b''
12 12 %endif
13 13 </%def>
14 14
15 <%def name="breadcrumbs_links()">
16 ${_('Commits')} -
17 r${c.commit_ranges[0].idx}:${h.short_id(c.commit_ranges[0].raw_id)}
18 ...
19 r${c.commit_ranges[-1].idx}:${h.short_id(c.commit_ranges[-1].raw_id)}
20 ${_ungettext('(%s commit)','(%s commits)', len(c.commit_ranges)) % len(c.commit_ranges)}
21 </%def>
15 <%def name="breadcrumbs_links()"></%def>
22 16
23 17 <%def name="menu_bar_nav()">
24 18 ${self.menu_items(active='repositories')}
@@ -29,44 +23,65 b''
29 23 </%def>
30 24
31 25 <%def name="main()">
26 <div class="box">
27 <div class="summary changeset">
28 <div class="summary-detail">
29 <div class="summary-detail-header">
30 <span class="breadcrumbs files_location">
31 <h4>
32 ${_('Commit Range')}
33 </h4>
34 </span>
32 35
33 <div class="summary changeset">
34 <div class="summary-detail">
35 <div class="summary-detail-header">
36 <span class="breadcrumbs files_location">
37 <h4>
38 ${_('Commit Range')}
39 <code>
40 r${c.commit_ranges[0].idx}:${h.short_id(c.commit_ranges[0].raw_id)}...r${c.commit_ranges[-1].idx}:${h.short_id(c.commit_ranges[-1].raw_id)}
41 </code>
42 </h4>
43 </span>
44 </div>
36 <div class="clear-fix"></div>
37 </div>
45 38
46 <div class="fieldset">
47 <div class="left-label">
48 ${_('Diff option')}:
49 </div>
50 <div class="right-content">
51 <div class="btn btn-primary">
52 <a href="${h.route_path('repo_compare',
53 repo_name=c.repo_name,
54 source_ref_type='rev',
55 source_ref=getattr(c.commit_ranges[0].parents[0] if c.commit_ranges[0].parents else h.EmptyCommit(), 'raw_id'),
56 target_ref_type='rev',
57 target_ref=c.commit_ranges[-1].raw_id)}"
58 >
59 ${_('Show combined compare')}
60 </a>
39 <div class="fieldset">
40 <div class="left-label-summary">
41 <p class="spacing">${_('Range')}:</p>
42 <div class="right-label-summary">
43 <div class="code-header" >
44 <div class="compare_header">
45 <code class="fieldset-text-line">
46 r${c.commit_ranges[0].idx}:${h.short_id(c.commit_ranges[0].raw_id)}
47 ...
48 r${c.commit_ranges[-1].idx}:${h.short_id(c.commit_ranges[-1].raw_id)}
49 ${_ungettext('(%s commit)','(%s commits)', len(c.commit_ranges)) % len(c.commit_ranges)}
50 </code>
51 </div>
52 </div>
53 </div>
54 </div>
61 55 </div>
62 </div>
63 </div>
64 56
65 </div> <!-- end summary-detail -->
57 <div class="fieldset">
58 <div class="left-label-summary">
59 <p class="spacing">${_('Diff Option')}:</p>
60 <div class="right-label-summary">
61 <div class="code-header" >
62 <div class="compare_header">
63 <div class="btn btn-primary">
64 <a href="${h.route_path('repo_compare',
65 repo_name=c.repo_name,
66 source_ref_type='rev',
67 source_ref=getattr(c.commit_ranges[0].parents[0] if c.commit_ranges[0].parents else h.EmptyCommit(), 'raw_id'),
68 target_ref_type='rev',
69 target_ref=c.commit_ranges[-1].raw_id)}"
70 >
71 ${_('Show combined diff')}
72 </a>
73 </div>
74 </div>
75 </div>
76 </div>
77 </div>
78 </div>
66 79
67 </div> <!-- end summary -->
80 <div class="clear-fix"></div>
81 </div> <!-- end summary-detail -->
82 </div> <!-- end summary -->
68 83
69 <div id="changeset_compare_view_content">
84 <div id="changeset_compare_view_content">
70 85 <div class="pull-left">
71 86 <div class="btn-group">
72 87 <a
@@ -99,4 +114,6 b''
99 114 %endfor
100 115 </div>
101 116 </div>
117 </div>
118
102 119 </%def>
@@ -279,8 +279,6 b''
279 279
280 280 ## table diff data
281 281 <div class="table">
282
283
284 282 % if not c.compare_home:
285 283 <div id="changeset_compare_view_content">
286 284 <div class="pull-left">
General Comments 0
You need to be logged in to leave comments. Login now