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">
19
<tal:has-link condition="branch/branch_link">
20
<a tal:attributes="href branch/branch_link"
21
tal:content="branch/friendly_name">
25
<tal:no-link condition="not: branch/branch_link">
26
<tal:branch-name replace="branch/friendly_name" />
28
<span>: <tal:revno content="change/revno"></tal:revno>
27
29
<tal:compare-to condition="python:compare_revid is not None">
28
(compared to revision <tal:b content="python:history.get_revno(compare_revid)" />)
30
(compared to revision <tal:block content="python:history.get_revno(compare_revid)" />)
34
<li id="first"><a tal:attributes="href python:url(['/files', change.revno]);
35
title string:browse files at revision ${change/revno}"
36
tal:content="string:browse files at revision ${change/revno}"></a></li>
37
<li tal:condition="python:remember != change.revno">
38
<a tal:attributes="href python:url(['/revision', change.revno], remember=change.revno, compare_revid=None);
39
title string:Compare with another revision"
40
tal:content="string:Compare with another revision"></a></li>
41
<li tal:condition="python:(remember is not None) and (compare_revid is None) and (change.revno != remember)" >
42
<a tal:attributes="href python:url(['/revision', change.revno], compare_revid=history.get_revno(remember))">
43
compare with revision <tal:b content="python:history.get_revno(remember)" />
46
<li id="last"><a tal:attributes="href python:url(['/changes', change.revno]);
47
title string:view history from revision ${change/revno}"
48
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:(remember is not None) and (compare_revid is None) and remember != revid" >
48
<a tal:attributes="href python:url(['/revision', change.revno], compare_revid=history.get_revno(remember))">
49
compare with revision <tal:b content="python:history.get_revno(remember)" />
52
<div tal:condition="python:remember != revid">
54
<a tal:attributes="href python:url(['/revision', change.revno], remember=change.revno, compare_revid=None)">
55
compare with another revision
58
<tal:we-are-comparing condition="python:compare_revid is not None">
51
<tal:we-are-comparing condition="python:compare_revid is not None">
61
54
<a tal:attributes="href python:url([ '/revision', history.get_revno(compare_revid) ], remember=change.revno, compare_revid=change.revno)">
62
55
reverse the comparison (<tal:b content="change/revno" /> to <tal:b content="python:history.get_revno(compare_revid)" />)
67
59
<a tal:attributes="href python:url(['/revision', change.revno], remember=None, compare_revid=None)">
68
60
stop comparing with revision <tal:b content="python:history.get_revno(compare_revid)" />
71
</tal:we-are-comparing>
64
</tal:we-are-comparing>
74
66
<tal:revision-info replace="structure python:revisioninfo(url, branch, change, modified_file_link_rev)" />
76
<table class="diff-option-buttons">
79
<tal:b content="structure python:collapse_all_button('file', branch, normal='table-row')" />
83
<a href="javascript:show_sbs()"
84
class="hide-all collapse-style-sbs-show"
86
<img tal:attributes="src python:branch.static_url('/static/images/nav-small-out.gif')"
87
width="22" height="10" class="collapse-triangle" />
90
<a href="javascript:show_unified()"
91
class="hide-all collapse-style-unified-show"
93
<img tal:attributes="src python:branch.static_url('/static/images/nav-small-in.gif')"
94
width="22" height="10" class="collapse-triangle" />
99
<td class="diff-key-block diff-insert">
104
<td class="diff-key-block diff-delete">
67
<p class="expand" id="expand_all" style="display:none;"><a tal:attributes="href string:javascript:toggle_expand_all_revisionview('open')">
68
<img tal:attributes="src python:branch.static_url('/static/images/treeCollapsed.png')"
69
alt="expand all" /> expand all</a>
71
<p class="expand" id="collapse_all"><a tal:attributes="href string:javascript:toggle_expand_all_revisionview('close')">
72
<img tal:attributes="src python:branch.static_url('/static/images/treeExpanded.png')"
73
alt="collapse all" /> collapse all</a>
76
<p class="codin"><img tal:attributes="src python:branch.static_url('/static/images/newCode.gif')" alt="added" /> added</p>
77
<p class="codin"><img tal:attributes="src python:branch.static_url('/static/images/deleteCode.gif')" alt="removed" /> removed</p>
78
<div class="clear"><!-- --></div>
82
<div metal:fill-slot="content">
113
84
tal:condition="change/changes/modified"
114
85
tal:define="uniqs python:{}">
115
86
<!-- ! side-by-side diff -->
116
<table class="diff-block collapse-style-sbs-content">
117
<tal:block repeat="item change/changes/modified">
87
<tal:block repeat="item change/changes/modified">
118
89
<tal:u define="u python:util.uniq(uniqs, item.file_id)">
120
<th class="filename" colspan="4">
121
<tal:b content="structure python:collapse_button('file', u, branch, normal='table-row')" />
122
<a tal:attributes="href python:url(['/annotate', change.revno], file_id=item.file_id);
123
name string:${item/filename}-s;
124
title string:Annotate ${item/filename}"
125
tal:content="item/filename">
131
<tal:block repeat="chunk item/sbs_chunks">
132
<tr tal:attributes="class string:diff-chunk collapse-file-${u}-content">
144
<tr tal:repeat="line chunk/diff"
145
tal:attributes="class string:diff-chunk collapse-file-${u}-content">
90
<div class="diffBox"><img tal:attributes="src python:branch.static_url('/static/images/treeExpanded.png');
91
title python:branch.static_url('/static/images/treeCollapsed.png');
92
alt python:branch.static_url('/static/images/treeExpanded.png')"
93
class="expand_diff" />
94
<a tal:attributes="href python:url(['/annotate', change.revno], clear=1, file_id=item.file_id);
95
id string:${item/filename}-s;
96
title string:Annotate ${item/filename}"
97
tal:content="item/filename"></a></div>
98
<div id="psuedotable" class="diffinfo">
99
<tal:block repeat="chunk item/sbs_chunks">
101
<tal:block condition="not:repeat/chunk/start">
102
<div class="lineNumber separate"></div>
103
<div class="lineCode separate"></div>
104
<div class="lineNumber separate"></div>
105
<div class="lineCode separate"></div>
106
<div class="clear"><!-- --></div>
109
<tal:block repeat="line chunk/diff">
146
111
<tal:block condition="line/old_lineno">
148
tal:content="line/old_lineno">
151
<td tal:attributes="class string:diff-${line/old_type}"
152
tal:content="line/old_line">
112
<div class="lineNumber"><tal:block replace="structure python:util.fill_div(line.old_lineno)" /></div>
113
<div tal:attributes="class string:lineCode ${line/old_type}">
114
<tal:block replace="structure python:util.fill_div(line.old_line)" />
156
118
<tal:block condition="not:line/old_lineno">
157
<td class="lineno-skip"
158
tal:content="line/old_lineno">
161
<td tal:attributes="class string:diff-${line/old_type}-skip"
162
tal:content="line/old_line">
119
<div class="lineNumber"><tal:block replace="structure python:util.fill_div(line.old_lineno)" /></div>
120
<div tal:attributes="class string:lineCode ${line/old_type}">
121
<tal:block replace="structure python:util.fill_div(line.old_line)" />
166
125
<tal:block condition="line/new_lineno">
168
tal:content="line/new_lineno">
171
<td tal:attributes="class string:diff-${line/new_type}"
172
tal:content="line/new_line">
126
<div class="lineNumber"><tal:block replace="structure python:util.fill_div(line.new_lineno)" /></div>
127
<div tal:attributes="class string:lineCode ${line/new_type}">
128
<tal:block replace="structure python:util.fill_div(line.new_line)" />
176
132
<tal:block condition="not:line/new_lineno">
177
<td class="lineno-skip"
178
tal:content="line/new_lineno">
181
<td tal:attributes="class string:diff-${line/new_type}-skip"
182
tal:content="line/new_line">
133
<div class="lineNumber"><tal:block replace="structure python:util.fill_div(line.new_lineno)" /></div>
134
<div tal:attributes="class string:lineCode ${line/new_type}">
135
<tal:block replace="structure python:util.fill_div(line.new_line)" />
187
<tr tal:attributes="class string:diff-chunk-spacing collapse-file-${u}-content">
193
<tr class="diff-spacing">
202
<!-- ! unified diff -->
203
<table class="diff-block collapse-style-unified-content">
204
<tal:block repeat="item change/changes/modified">
205
<tal:u define="u python:util.uniq(uniqs, item.file_id)">
207
<th class="filename" colspan="4">
208
<tal:b content="structure python:collapse_button('file', u, branch, normal='table-row')" />
209
<a tal:attributes="href python:url(['/annotate', change.revno], file_id=item.file_id);
210
name string:${item/filename}-u;
211
title string:Annotate ${item/filename}"
212
tal:content="item/filename">
218
<tal:block repeat="chunk item/chunks">
219
<tr tal:attributes="class string:diff-chunk collapse-file-${u}-content">
231
<tr tal:repeat="line chunk/diff"
232
tal:attributes="class string:diff-chunk collapse-file-${u}-content">
234
tal:content="line/old_lineno">
238
tal:content="line/new_lineno">
241
<td tal:attributes="class string:diff-${line/type} text"
242
tal:content="line/line">
248
<tr tal:attributes="class string:diff-chunk-spacing collapse-file-${u}-content">
254
<tr class="diff-spacing">
264
<div tal:condition="python:navigation.prev_page_revid or navigation.next_page_revid"
269
<a tal:condition="navigation/prev_page_revid"
270
tal:attributes="href navigation/prev_page_url">
272
<tal:r content="python:history.get_revno(navigation.prev_page_revid)" />
275
<td class="rbuttons" align="right">
276
<a tal:condition="navigation/next_page_revid"
277
tal:attributes="href navigation/next_page_url">
279
<tal:r content="python:history.get_revno(navigation.next_page_revid)" />
138
<div class="clear"><!-- --></div>
147
<ul tal:condition="python:navigation.prev_page_revid or navigation.next_page_revid"
149
<li tal:condition="navigation/prev_page_revid"
151
<a tal:attributes="href navigation/prev_page_url">« Previous</a>
153
<!-- FIXME: Leaving this to eventually show page numbers. Can't show all of them,
154
so some magic has to be done to just show the previous and next N page numbers
156
<li class="active">1</li>
157
<tal:block tal:repeat="page_number python:range(navigation.page_count)">
159
tal:content="page_number"></a></li>
161
<li tal:condition="navigation/next_page_revid"
163
<a tal:attributes="href navigation/next_page_url">Next »</a>