1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<tal:block define="onload string:load()">
3
<html xmlns="http://www.w3.org/1999/xhtml" metal:use-macro="macros/main">
5
<title metal:fill-slot="title"
6
tal:content="string:${branch/friendly_name} : revision ${change/revno}">
9
<metal:block fill-slot="header_extras">
10
<link rel="stylesheet" type="text/css" media="all"
11
tal:attributes="href python:branch.static_url('/static/css/diff.css')"/>
12
<script type="text/javascript"
13
tal:attributes="src python:branch.static_url('/static/javascript/diff.js')"></script>
14
<script type="text/javascript">
15
var link_data = <tal:b content="link_data" />;
16
var specific_path = <tal:b content="json_specific_path" />;
17
var path_to_id = <tal:b content="path_to_id" />;
23
<tal:block metal:fill-slot="backlink">
24
<tal:has-link condition="branch/branch_link">
25
<div class="black-link">
26
<a tal:attributes="href branch/branch_link">
27
← Back to branch summary
32
<tal:block metal:fill-slot="branchname" tal:content="string:${branch/friendly_name}" />
33
<tal:block metal:fill-slot="heading">
34
<div id="breadcrumbs">
35
<tal:has-link condition="branch/branch_link">
36
<a tal:attributes="href branch/branch_link"
37
tal:content="branch/friendly_name">
41
<tal:no-link condition="not: branch/branch_link">
42
<span metal:use-macro="breadcrumbs/directory"></span>
44
<span class="breadcrumb">» Revision
45
<tal:revno condition="not:specific_path" content="change/revno"></tal:revno>
46
<a tal:condition="specific_path" tal:content="change/revno"
47
tal:attributes="href python:url(['/revision', change.revno])"
48
title="View changes to all files"></a>
49
<tal:compare-to condition="python:compare_revid is not None">
50
(compared to revision <tal:block content="python:history.get_revno(compare_revid)" />)
53
<span class="breadcrumb" tal:condition="specific_path">
54
: <tal:annotate content="structure python:view_link(url, change.revno, specific_path)" />
57
<tal:branch-info replace="structure python:branchinfo(branch)" />
58
<h1 tal:condition="not:specific_path">
59
Viewing all changes in revision <tal:revno content="change/revno" />.
61
<p tal:condition="specific_path">
62
<a tal:attributes="href python:url(['/revision', change.revno])">
63
« back to all changes in this revision
66
<p tal:condition="specific_path">
67
Viewing changes to <tal:annotate content="structure python:view_link(url, change.revno, specific_path)" />
70
<li id="first"><a tal:attributes="href python:url(['/files', change.revno]);
71
title string:browse files at revision ${change/revno}"
72
tal:content="string:browse files at revision ${change/revno}"></a></li>
73
<li tal:condition="python:remember != change.revno">
74
<a tal:attributes="href python:url(['/revision', change.revno], remember=change.revno, compare_revid=None);
75
title string:compare with another revision"
76
tal:content="string:compare with another revision"></a></li>
77
<li tal:condition="python:(remember is not None) and (compare_revid is None) and (change.revno != remember)" >
78
<a tal:attributes="href python:url(['/revision', change.revno], compare_revid=history.get_revno(remember))">
79
compare with revision <tal:b content="python:history.get_revno(remember)" />
83
<a tal:condition="python:compare_revid is None"
84
tal:attributes="href python:url(['/diff', change.revno], clear=1)">download diff</a>
85
<a tal:condition="python:compare_revid is not None"
86
tal:attributes="href python:url(['/diff', change.revno, history.get_revno(compare_revid)], clear=1)">download diff</a>
88
<li tal:condition="python:can_export">
89
<a tal:attributes="href python:url(['/tarball', change.revno])">download tarball</a>
91
<li id="last"><a tal:attributes="href python:url(['/changes', change.revno]);
92
title string:view history from revision ${change/revno}"
93
tal:content="string:view history from revision ${change/revno}"></a></li>
96
<tal:we-are-comparing condition="python:compare_revid is not None">
99
<a tal:attributes="href python:url([ '/revision', history.get_revno(compare_revid) ], remember=change.revno, compare_revid=change.revno)">
100
reverse the comparison (<tal:b content="change/revno" /> to <tal:b content="python:history.get_revno(compare_revid)" />)
104
<a tal:attributes="href python:url(['/revision', change.revno], remember=None, compare_revid=None)">
105
stop comparing with revision <tal:b content="python:history.get_revno(compare_revid)" />
109
</tal:we-are-comparing>
111
<tal:revision-info replace="structure python:revisioninfo(url, branch, change, file_changes, specific_path, merged_in)" />
112
<tal:specific-path condition="not:specific_path">
113
<p class="expand show_if_js" id="expand_all"><a href="#">
114
<img tal:attributes="src python:branch.static_url('/static/images/treeCollapsed.png')"
115
alt="expand all" /> expand all</a>
117
<p class="expand" id="collapse_all" style="display:none;"><a href="#">
118
<img tal:attributes="src python:branch.static_url('/static/images/treeExpanded.png')"
119
alt="collapse all" /> collapse all</a>
123
<p class="expand show_if_js"><a id="toggle_unified_sbs" href="#">Show diffs side-by-side</a></p>
124
<p class="codin"><img tal:attributes="src python:branch.static_url('/static/images/newCode.gif')" alt="added" /> added</p>
125
<p class="codin"><img tal:attributes="src python:branch.static_url('/static/images/deleteCode.gif')" alt="removed" /> removed</p>
126
<div class="clear"><!-- --></div>
130
<div metal:fill-slot="content">
131
<tal:block condition="specific_path">
134
<div class="diffBox">
135
<a tal:attributes="href python:url(['/revision', change.revno, specific_path], clear=1);
136
id string:${specific_path};
137
title string:View changes to ${specific_path} only"
139
<img tal:attributes="src python:branch.static_url('/static/images/treeExpanded.png')"
140
class="expand_diff"/>
141
<tal:b content="specific_path" />
144
<div style="overflow: hidden">
145
<div class="container">
146
<div class="loading" style="display:none">
147
<img tal:attributes="src python:branch.static_url('/static/images/spinner.gif')" />
149
<div class="diffinfo">
150
<div class="pseudotable unified"
151
tal:repeat="chunk diff_chunks">
153
<tal:block condition="not:repeat/chunk/start">
154
<div class="pseudorow context-row">
155
<div class="lineNumber separate"></div>
156
<div class="lineNumber second separate"></div>
157
<div class="code separate"></div>
158
<div class="clear"><!-- --></div>
162
<div tal:repeat="line chunk/diff"
163
tal:attributes="class string:pseudorow ${line/type}-row">
164
<div class="lineNumber first"
165
tal:content="structure python:util.fill_div(line.old_lineno)"></div>
166
<div class="lineNumber second"
167
tal:content="structure python:util.fill_div(line.new_lineno)"></div>
168
<div tal:attributes="class string:code ${line/type}"
169
tal:content="structure python:util.fill_div(util.html_clean(line.line))"></div>
170
<div class="clear"><!-- --></div>
179
<tal:block condition="not:specific_path">
181
tal:repeat="item file_changes/text_changes" tal:attributes="id string:diff-${item/index}">
183
<div class="diffBox">
184
<a tal:attributes="href python:url(['/revision', change.revno, item.filename], clear=1);
185
id string:${item/filename};
186
title string:View changes to ${item/filename} only"
188
<img tal:attributes="src python:branch.static_url('/static/images/treeCollapsed.png')"
189
class="expand_diff" />
190
<tal:b content="item/filename" />
193
<div class="diffinfo" style="display:none">
194
<div class="loading">
195
<img tal:attributes="src python:branch.static_url('/static/images/spinner.gif')" />
201
<ul tal:condition="python:navigation.prev_page_revid or navigation.next_page_revid"
203
<li tal:condition="navigation/prev_page_revid"
205
<a tal:attributes="href navigation/prev_page_url">« Newer</a>
207
<!-- FIXME: Leaving this to eventually show page numbers. Can't show all of them,
208
so some magic has to be done to just show the previous and next N page numbers
210
<li class="active">1</li>
211
<tal:block tal:repeat="page_number python:range(navigation.page_count)">
213
tal:content="page_number"></a></li>
215
<li tal:condition="navigation/next_page_revid"
217
<a tal:attributes="href navigation/next_page_url">Older »</a>