5
5
<title metal:fill-slot="title"
6
6
tal:content="string:${branch/friendly_name} : revision ${change/revno}">
7
${branch.friendly_name} : revision ${change.revno}
10
9
<metal:block fill-slot="header_extras">
11
<script type="text/javascript"
12
tal:attributes="src python:branch.static_url('/static/javascript/collapse.js')">
10
<link rel="stylesheet" type="text/css" media="all"
11
tal:attributes="href python:branch.static_url('/static/css/diff.css')"/>
19
<h1 metal:fill-slot="heading">
20
<span class="branch-name" tal:content="branch/friendly_name">
21
${branch.friendly_name}
24
<tal:revno content="change/revno">
17
<tal:block metal:fill-slot="heading">
18
<h1><tal:block content="branch/friendly_name" /><span>: <tal:revno content="change/revno"></tal:revno>
27
19
<tal:compare-to condition="python:compare_revid is not None">
28
(compared to revision <tal:b content="python:history.get_revno(compare_revid)" />)
20
(compared to revision <tal:block content="python:history.get_revno(compare_revid)" />)
24
<li id="first"><a tal:attributes="href python:url(['/files', change.revno]);
25
title string:browse files at revision ${change/revno}"
26
tal:content="string:browse files at revision ${change/revno}"></a></li>
27
<li tal:condition="python:remember != change.revno">
28
<a tal:attributes="href python:url(['/revision', change.revno], remember=change.revno, compare_revid=None);
29
title string:Compare with another revision"
30
tal:content="string:Compare with another revision"></a></li>
31
<li tal:condition="python:(remember is not None) and (compare_revid is None) and (change.revno != remember)" >
32
<a tal:attributes="href python:url(['/revision', change.revno], compare_revid=history.get_revno(remember))">
33
compare with revision <tal:b content="python:history.get_revno(remember)" />
36
<li id="last"><a tal:attributes="href python:url(['/changes', change.revno]);
37
title string:view history from revision ${change/revno}"
38
tal:content="string:view history from revision ${change/revno}"></a></li>
32
<div metal:fill-slot="content">
36
<a tal:attributes="href python:url(['/files', change.revno])">
37
browse files at revision <tal:b content="change/revno" />
42
<a tal:attributes="href python:url(['/changes'], start_revid=change.revno)">
43
view history from revision <tal:b content="change/revno" />
46
<div tal:condition="python:compare_revid is not None" >
48
<a tal:attributes="href python:branch.url(['/bundle', change.revno, history.get_revno(compare_revid), 'bundle.txt'])">
49
download bundle from <tal:b content="python:history.get_revno(compare_revid)" /> to <tal:b content="change/revno" />
52
<div tal:condition="python:(remember is not None) and (compare_revid is None) and remember != revid" >
54
<a tal:attributes="href python:url(['/revision', change.revno], compare_revid=history.get_revno(remember))">
55
compare with revision <tal:b content="python:history.get_revno(remember)" />
58
<div tal:condition="python:remember != revid">
60
<a tal:attributes="href python:url(['/revision', change.revno], remember=change.revno, compare_revid=None)">
61
compare with another revision
64
<tal:we-are-comparing condition="python:compare_revid is not None">
41
<tal:we-are-comparing condition="python:compare_revid is not None">
67
44
<a tal:attributes="href python:url([ '/revision', history.get_revno(compare_revid) ], remember=change.revno, compare_revid=change.revno)">
68
45
reverse the comparison (<tal:b content="change/revno" /> to <tal:b content="python:history.get_revno(compare_revid)" />)
73
49
<a tal:attributes="href python:url(['/revision', change.revno], remember=None, compare_revid=None)">
74
50
stop comparing with revision <tal:b content="python:history.get_revno(compare_revid)" />
77
</tal:we-are-comparing>
54
</tal:we-are-comparing>
80
56
<tal:revision-info replace="structure python:revisioninfo(url, branch, change, modified_file_link_rev)" />
82
<table class="diff-option-buttons">
85
<tal:b content="structure python:collapse_all_button('file', branch, normal='table-row')" />
89
<a href="javascript:show_sbs()"
90
class="hide-all collapse-style-sbs-show"
92
<img tal:attributes="src python:branch.static_url('/static/images/nav-small-out.gif')"
93
width="22" height="10" class="collapse-triangle" />
96
<a href="javascript:show_unified()"
97
class="hide-all collapse-style-unified-show"
99
<img tal:attributes="src python:branch.static_url('/static/images/nav-small-in.gif')"
100
width="22" height="10" class="collapse-triangle" />
105
<td class="diff-key-block diff-insert">
110
<td class="diff-key-block diff-delete">
57
<p class="expand" id="expand_all" style="display:none;"><a tal:attributes="href string:javascript:toggle_expand_all_revisionview('open')">
58
<img tal:attributes="src python:branch.static_url('/static/images/treeCollapsed.png')"
59
alt="expand all" /> expand all</a>
61
<p class="expand" id="collapse_all"><a tal:attributes="href string:javascript:toggle_expand_all_revisionview('close')">
62
<img tal:attributes="src python:branch.static_url('/static/images/treeExpanded.png')"
63
alt="collapse all" /> collapse all</a>
66
<p class="codin"><img tal:attributes="src python:branch.static_url('/static/images/newCode.gif')" alt="added" /> added</p>
67
<p class="codin"><img tal:attributes="src python:branch.static_url('/static/images/deleteCode.gif')" alt="removed" /> removed</p>
68
<div class="clear"><!-- --></div>
72
<div metal:fill-slot="content">
119
74
tal:condition="change/changes/modified"
120
75
tal:define="uniqs python:{}">
121
76
<!-- ! side-by-side diff -->
122
<table class="diff-block collapse-style-sbs-content">
123
<tal:block repeat="item change/changes/modified">
77
<tal:block repeat="item change/changes/modified">
124
79
<tal:u define="u python:util.uniq(uniqs, item.file_id)">
126
<th class="filename" colspan="4">
127
<tal:b content="structure python:collapse_button('file', u, branch, normal='table-row')" />
128
<a tal:attributes="href python:url(['/annotate', change.revno], file_id=item.file_id);
129
name string:${item/filename}-s;
130
title string:Annotate ${item/filename}"
131
tal:content="item/filename">
137
<tal:block repeat="chunk item/sbs_chunks">
138
<tr tal:attributes="class string:diff-chunk collapse-file-${u}-content">
150
<tr tal:repeat="line chunk/diff"
151
tal:attributes="class string:diff-chunk collapse-file-${u}-content">
80
<div class="diffBox"><img tal:attributes="src python:branch.static_url('/static/images/treeExpanded.png');
81
title python:branch.static_url('/static/images/treeCollapsed.png');
82
alt python:branch.static_url('/static/images/treeExpanded.png')"
83
class="expand_diff" />
84
<a tal:attributes="href python:url(['/annotate', change.revno], clear=1, file_id=item.file_id);
85
id string:${item/filename}-s;
86
title string:Annotate ${item/filename}"
87
tal:content="item/filename"></a></div>
88
<div id="psuedotable" class="diffinfo">
89
<tal:block repeat="chunk item/sbs_chunks">
91
<tal:block condition="not:repeat/chunk/start">
92
<div class="lineNumber separate"></div>
93
<div class="lineCode separate"></div>
94
<div class="lineNumber separate"></div>
95
<div class="lineCode separate"></div>
96
<div class="clear"><!-- --></div>
99
<tal:block repeat="line chunk/diff">
152
101
<tal:block condition="line/old_lineno">
154
tal:content="line/old_lineno">
157
<td tal:attributes="class string:diff-${line/old_type}"
158
tal:content="line/old_line">
102
<div class="lineNumber"><tal:block replace="structure python:util.fill_div(line.old_lineno)" /></div>
103
<div tal:attributes="class string:lineCode ${line/old_type}">
104
<tal:block replace="structure python:util.fill_div(line.old_line)" />
162
108
<tal:block condition="not:line/old_lineno">
163
<td class="lineno-skip"
164
tal:content="line/old_lineno">
167
<td tal:attributes="class string:diff-${line/old_type}-skip"
168
tal:content="line/old_line">
109
<div class="lineNumber"><tal:block replace="structure python:util.fill_div(line.old_lineno)" /></div>
110
<div tal:attributes="class string:lineCode ${line/old_type}">
111
<tal:block replace="structure python:util.fill_div(line.old_line)" />
172
115
<tal:block condition="line/new_lineno">
174
tal:content="line/new_lineno">
177
<td tal:attributes="class string:diff-${line/new_type}"
178
tal:content="line/new_line">
116
<div class="lineNumber"><tal:block replace="structure python:util.fill_div(line.new_lineno)" /></div>
117
<div tal:attributes="class string:lineCode ${line/new_type}">
118
<tal:block replace="structure python:util.fill_div(line.new_line)" />
182
122
<tal:block condition="not:line/new_lineno">
183
<td class="lineno-skip"
184
tal:content="line/new_lineno">
187
<td tal:attributes="class string:diff-${line/new_type}-skip"
188
tal:content="line/new_line">
123
<div class="lineNumber"><tal:block replace="structure python:util.fill_div(line.new_lineno)" /></div>
124
<div tal:attributes="class string:lineCode ${line/new_type}">
125
<tal:block replace="structure python:util.fill_div(line.new_line)" />
193
<tr tal:attributes="class string:diff-chunk-spacing collapse-file-${u}-content">
199
<tr class="diff-spacing">
208
<!-- ! unified diff -->
209
<table class="diff-block collapse-style-unified-content">
210
<tal:block repeat="item change/changes/modified">
211
<tal:u define="u python:util.uniq(uniqs, item.file_id)">
213
<th class="filename" colspan="4">
214
<tal:b content="structure python:collapse_button('file', u, branch, normal='table-row')" />
215
<a tal:attributes="href python:url(['/annotate', change.revno], file_id=item.file_id);
216
name string:${item/filename}-u;
217
title string:Annotate ${item/filename}"
218
tal:content="item/filename">
224
<tal:block repeat="chunk item/chunks">
225
<tr tal:attributes="class string:diff-chunk collapse-file-${u}-content">
237
<tr tal:repeat="line chunk/diff"
238
tal:attributes="class string:diff-chunk collapse-file-${u}-content">
240
tal:content="line/old_lineno">
244
tal:content="line/new_lineno">
247
<td tal:attributes="class string:diff-${line/type} text"
248
tal:content="line/line">
254
<tr tal:attributes="class string:diff-chunk-spacing collapse-file-${u}-content">
260
<tr class="diff-spacing">
270
<div tal:condition="python:navigation.prev_page_revid or navigation.next_page_revid"
275
<a tal:condition="navigation/prev_page_revid"
276
tal:attributes="href navigation/prev_page_url">
278
<tal:r content="python:history.get_revno(navigation.prev_page_revid)" />
281
<td class="rbuttons" align="right">
282
<a tal:condition="navigation/next_page_revid"
283
tal:attributes="href navigation/next_page_url">
285
<tal:r content="python:history.get_revno(navigation.next_page_revid)" />
128
<div class="clear"><!-- --></div>
137
<ul tal:condition="python:navigation.prev_page_revid or navigation.next_page_revid"
139
<li tal:condition="navigation/prev_page_revid"
141
<a tal:attributes="href navigation/prev_page_url">« Previous</a>
143
<!-- FIXME: Leaving this to eventually show page numbers. Can't show all of them,
144
so some magic has to be done to just show the previous and next N page numbers
146
<li class="active">1</li>
147
<tal:block tal:repeat="page_number python:range(navigation.page_count)">
149
tal:content="page_number"></a></li>
151
<li tal:condition="navigation/next_page_revid"
153
<a tal:attributes="href navigation/next_page_url">Next »</a>