9
9
<metal:block fill-slot="header_extras">
10
10
<link rel="stylesheet" type="text/css" media="all"
11
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" />;
24
17
<tal:block metal:fill-slot="heading">
26
<tal:has-link condition="branch/branch_link">
27
<a tal:attributes="href branch/branch_link"
28
tal:content="branch/friendly_name">
32
<tal:no-link condition="not: branch/branch_link">
33
<span metal:use-macro="breadcrumbs/directory"></span>
35
<span class="breadcrumb">:
36
<tal:revno condition="not:specific_path" content="change/revno"></tal:revno>
37
<a tal:condition="specific_path" tal:content="change/revno"
38
tal:attributes="href python:url(['/revision', change.revno])"
39
title="View changes to all files"></a>
40
<tal:compare-to condition="python:compare_revid is not None">
41
(compared to revision <tal:block content="python:history.get_revno(compare_revid)" />)
44
<span class="breadcrumb" tal:condition="specific_path">
45
: <tal:annotate content="structure python:annotate_link(url, change.revno, specific_path)" />
48
<tal:branch-info replace="structure python:branchinfo(branch)" />
49
<p tal:condition="not:specific_path">
50
Viewing all changes in revision <tal:revno content="change/revno" />.
52
<p tal:condition="specific_path">
53
<a tal:attributes="href python:url(['/revision', change.revno])">
54
« back to all changes in this revision
57
<p tal:condition="specific_path">
58
Viewing changes to <tal:annotate content="structure python:annotate_link(url, change.revno, specific_path)" />
18
<h1><tal:block content="branch/friendly_name" /><span>: <tal:revno content="change/revno"></tal:revno>
19
<tal:compare-to condition="python:compare_revid is not None">
20
(compared to revision <tal:block content="python:history.get_revno(compare_revid)" />)
60
23
<ul id="submenuTabs">
61
<li id="first"><a tal:attributes="href python:url(['/files', change.revno]);
62
title string:browse files at revision ${change/revno}"
63
tal:content="string:browse files at revision ${change/revno}"></a></li>
64
<li tal:condition="python:remember != change.revno">
65
<a tal:attributes="href python:url(['/revision', change.revno], remember=change.revno, compare_revid=None);
66
title string:compare with another revision"
67
tal:content="string:Compare with another revision"></a></li>
68
<li tal:condition="python:(remember is not None) and (compare_revid is None) and (change.revno != remember)" >
69
<a tal:attributes="href python:url(['/revision', change.revno], compare_revid=history.get_revno(remember))">
70
compare with revision <tal:b content="python:history.get_revno(remember)" />
74
<a tal:condition="python:len(change.parents) > 0 and compare_revid is None"
75
tal:attributes="href python:url(['/diff', change.revno], clear=1)">download diff</a>
76
<a tal:condition="python:compare_revid is not None"
77
tal:attributes="href python:url(['/diff', change.revno, history.get_revno(compare_revid)], clear=1)">download diff</a>
79
<li id="last"><a tal:attributes="href python:url(['/changes', change.revno]);
80
title string:view history from revision ${change/revno}"
81
tal:content="string:view history from revision ${change/revno}"></a></li>
24
<li id="inicio"><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="final"><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>
84
41
<tal:we-are-comparing condition="python:compare_revid is not None">
87
44
<a tal:attributes="href python:url([ '/revision', history.get_revno(compare_revid) ], remember=change.revno, compare_revid=change.revno)">
88
45
reverse the comparison (<tal:b content="change/revno" /> to <tal:b content="python:history.get_revno(compare_revid)" />)
92
49
<a tal:attributes="href python:url(['/revision', change.revno], remember=None, compare_revid=None)">
93
50
stop comparing with revision <tal:b content="python:history.get_revno(compare_revid)" />
97
54
</tal:we-are-comparing>
99
<tal:revision-info replace="structure python:revisioninfo(url, branch, change, file_changes, specific_path, merged_in)" />
100
<tal:specific-path condition="not:specific_path">
101
<p class="expand show_if_js" id="expand_all"><a href="#">
102
<img tal:attributes="src python:branch.static_url('/static/images/treeCollapsed.png')"
103
alt="expand all" /> expand all</a>
105
<p class="expand" id="collapse_all" style="display:none;"><a href="#">
106
<img tal:attributes="src python:branch.static_url('/static/images/treeExpanded.png')"
107
alt="collapse all" /> collapse all</a>
111
<p class="expand show_if_js"><a id="toggle_unified_sbs" href="#">Show diffs side-by-side</a></p>
56
<tal:revision-info replace="structure python:revisioninfo(url, branch, change, modified_file_link_rev)" />
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>
112
66
<p class="codin"><img tal:attributes="src python:branch.static_url('/static/images/newCode.gif')" alt="added" /> added</p>
113
67
<p class="codin"><img tal:attributes="src python:branch.static_url('/static/images/deleteCode.gif')" alt="removed" /> removed</p>
114
68
<div class="clear"><!-- --></div>
118
72
<div metal:fill-slot="content">
119
<tal:block condition="specific_path">
122
<div class="diffBox">
123
<a tal:attributes="href python:url(['/revision', change.revno, specific_path], clear=1);
124
id string:${specific_path};
125
title string:View changes to ${specific_path} only"
127
<img tal:attributes="src python:branch.static_url('/static/images/treeExpanded.png')"
128
class="expand_diff"/>
129
<tal:b content="specific_path" />
132
<div style="overflow: hidden">
133
<div class="container">
134
<div class="loading" style="display:none">
135
<img tal:attributes="src python:branch.static_url('/static/images/spinner.gif')" />
137
<div class="diffinfo">
138
<div class="pseudotable unified"
139
tal:repeat="chunk diff_chunks">
141
<tal:block condition="not:repeat/chunk/start">
142
<div class="pseudorow context-row">
143
<div class="lineNumber separate"></div>
144
<div class="lineNumber second separate"></div>
145
<div class="code separate"></div>
146
<div class="clear"><!-- --></div>
150
<div tal:repeat="line chunk/diff"
151
tal:attributes="class string:pseudorow ${line/type}-row">
152
<div class="lineNumber first"
153
tal:content="structure python:util.fill_div(line.old_lineno)"></div>
154
<div class="lineNumber second"
155
tal:content="structure python:util.fill_div(line.new_lineno)"></div>
156
<div tal:attributes="class string:code ${line/type}"
157
tal:content="structure python:util.fill_div(util.html_clean(line.line))"></div>
158
<div class="clear"><!-- --></div>
74
tal:condition="change/changes/modified"
75
tal:define="uniqs python:{}">
76
<!-- ! side-by-side diff -->
77
<tal:block repeat="item change/changes/modified">
79
<tal:u define="u python:util.uniq(uniqs, item.file_id)">
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">
90
<tal:block repeat="line chunk/diff">
92
<tal:block condition="line/old_lineno">
93
<div class="lineNumber"><tal:block replace="structure python:util.fill_div(line.old_lineno)" /></div>
94
<div tal:attributes="class string:lineCode ${line/old_type}">
95
<tal:block replace="structure python:util.fill_div(line.old_line)" />
99
<tal:block condition="not:line/old_lineno">
100
<div class="lineNumber"><tal:block replace="structure python:util.fill_div(line.old_lineno)" /></div>
101
<div tal:attributes="class string:lineCode ${line/old_type}">
102
<tal:block replace="structure python:util.fill_div(line.old_line)" />
106
<tal:block condition="line/new_lineno">
107
<div class="lineNumber"><tal:block replace="structure python:util.fill_div(line.new_lineno)" /></div>
108
<div tal:attributes="class string:lineCode ${line/new_type}">
109
<tal:block replace="structure python:util.fill_div(line.new_line)" />
113
<tal:block condition="not:line/new_lineno">
114
<div class="lineNumber"><tal:block replace="structure python:util.fill_div(line.new_lineno)" /></div>
115
<div tal:attributes="class string:lineCode ${line/new_type}">
116
<tal:block replace="structure python:util.fill_div(line.new_line)" />
119
<div class="clear"><!-- --></div>
167
<tal:block condition="not:specific_path">
169
tal:repeat="item file_changes/text_changes" tal:attributes="id string:diff-${item/index}">
171
<div class="diffBox">
172
<a tal:attributes="href python:url(['/revision', change.revno, item.filename], clear=1);
173
id string:${item/filename};
174
title string:View changes to ${item/filename} only"
176
<img tal:attributes="src python:branch.static_url('/static/images/treeCollapsed.png')"
177
class="expand_diff" />
178
<tal:b content="item/filename" />
181
<div class="diffinfo" style="display:none">
182
<div class="loading">
183
<img tal:attributes="src python:branch.static_url('/static/images/spinner.gif')" />
189
128
<ul tal:condition="python:navigation.prev_page_revid or navigation.next_page_revid"
191
<li tal:condition="navigation/prev_page_revid"
193
<a tal:attributes="href navigation/prev_page_url">« Newer</a>
195
<!-- FIXME: Leaving this to eventually show page numbers. Can't show all of them,
196
so some magic has to be done to just show the previous and next N page numbers
130
<li tal:condition="navigation/prev_page_revid"
132
<a tal:attributes="href navigation/prev_page_url">« Previous</a>
134
<!-- FIXME: Leaving this to eventually show page numbers. Can't show all of them,
135
so some magic has to be done to just show the previous and next N page numbers
198
<li class="active">1</li>
199
<tal:block tal:repeat="page_number python:range(navigation.page_count)">
201
tal:content="page_number"></a></li>
137
<li class="active">1</li>
138
<tal:block tal:repeat="page_number python:range(navigation.page_count)">
140
tal:content="page_number"></a></li>
203
<li tal:condition="navigation/next_page_revid"
205
<a tal:attributes="href navigation/next_page_url">Older »</a>
142
<li tal:condition="navigation/next_page_revid"
144
<a tal:attributes="href navigation/next_page_url">Next »</a>