1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
|
<div
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
>
<form method="get" name="filter" id="filter_form"
style="padding-bottom: 0.5em"
tal:attributes="action context/view/form_action|context/request/URL">
<label for="field.lifecycle">
Branches with status:
</label>
<tal:lifecycle-selector replace="structure context/view/widgets/lifecycle"/>
<tal:sort-by replace="structure context/view/widgets/sort_by"
condition="context/view/widgets/sort_by|nothing"/>
<noscript>
<input type="submit" value="Filter"/>
</noscript>
</form>
<script type="text/javascript">
function submit_filter() {
getElement('filter_form').submit();
}
function hookUpFilterSubmission () {
connect('field.lifecycle', 'onchange', submit_filter);
if (getElement('field.sort_by')) {
connect('field.sort_by', 'onchange', submit_filter);
}
}
function show_commit(id) {
var div = document.getElementById('branch-log-' + id);
if (div) {
div.style.display = "block";
}
}
function hide_commit(id) {
var div = document.getElementById('branch-log-' + id);
if (div) {
div.style.display = "none";
}
}
registerLaunchpadFunction(hookUpFilterSubmission);
</script>
<tal:needs-batch condition="context/has_multiple_pages">
<div id="branch-batch-links">
<tal:navigation replace="structure context/@@+navigation-links-upper" />
</div>
</tal:needs-batch>
<table tal:attributes="class context/table_class" id="branchtable">
<thead>
<tr>
<th colspan="2">Name</th>
<th>Status</th>
<th tal:condition="context/show_column/date_created|nothing">
Registered
</th>
<th tal:condition="context/show_column/product|nothing">
Project
</th>
<th>Last Modified</th>
<th>Last Commit</th>
</tr>
</thead>
<tbody>
<tal:allow-setting-dev-focus condition="context/view/show_set_development_focus">
<tal:missing-dev-focus define="product context/view/context;
dev_focus context/view/has_development_focus_branch"
condition="not: dev_focus">
<tal:ignore condition="nothing">
Only show the warning and link if the user can actually set the development focus
</tal:ignore>
<tr tal:condition="product/required:launchpad.Edit"
tal:define="edit_link product/development_focus/fmt:url/+linkbranchtoseries">
<td colspan="5" class="branch-no-dev-focus">A development focus branch hasn't
been specified, <a tal:attributes="href edit_link">set it now</a>.</td>
</tr>
</tal:missing-dev-focus>
</tal:allow-setting-dev-focus>
<tr tal:repeat="branch context/branches">
<td>
<a tal:attributes="href branch/fmt:url"
tal:content="structure branch/bzr_identity/fmt:break-long-words"
class="sprite branch">Name
</a>
<tal:associated-series repeat="series branch/active_series"
condition="context/view/show_series_links">
<tal:first-series condition="repeat/series/start">
<br/><strong style="margin-left: 2.5em;">Series:</strong>
</tal:first-series>
<tal:comment condition="nothing">
The lack of whitespace in the following tal expression
is there to make sure the comma immediately follows the series
link rather than having a space after it.
</tal:comment>
<tal:series-link>
<a tal:attributes="href series/fmt:url:mainsite" tal:content="series/name">
trunk
</a></tal:series-link><tal:comma condition="not: repeat/series/end">,</tal:comma>
</tal:associated-series>
</td>
<td align="right" style="padding-right: 5px">
<tal:badges replace="structure branch/badges:small"/>
</td>
<td>
<span tal:condition="not:context/has_multiple_pages"
tal:content="branch/lifecycle_status/sortkey"
class="sortkey">23</span>
<span tal:content="branch/lifecycle_status/title"
tal:attributes="
class string:branchstatus${branch/lifecycle_status/name}">
Status</span>
</td>
<td tal:condition="context/show_column/date_created|nothing">
<span class="sortkey"
tal:content="branch/date_created/fmt:datetime">
2005-02-12 13:45 EST
</span>
<span tal:attributes="title branch/date_created/fmt:datetime"
tal:content="branch/since_created/fmt:approximateduration/use-digits">
sometime
</span> ago
</td>
<td tal:condition="context/show_column/product|nothing">
<a tal:condition="branch/product"
tal:attributes="href branch/product/fmt:url"
tal:content="branch/product/name">
Project
</a>
</td>
<td>
<span class="sortkey"
tal:content="branch/date_last_modified/fmt:datetime">
2005-02-12 13:45 EST
</span>
<span tal:attributes="title branch/date_last_modified/fmt:datetime"
tal:content="branch/since_updated/fmt:approximateduration/use-digits">
sometime
</span> ago
</td>
<tal:no_commit condition="not: branch/last_commit">
<td>
<em>
<metal:no-revision-message
use-macro="branch/@@+macros/no-revision-message" />
</em>
</td>
</tal:no_commit>
<tal:has_commit condition="branch/last_commit">
<td tal:attributes="onmouseover string:show_commit(${branch/id});
onmouseout string:hide_commit(${branch/id});">
<div class="lastCommit">
<a tal:attributes="href branch/revision_codebrowse_link"
tal:content="branch/revision_count">1234</a>.
<tal:revision-log replace="branch/revision_log/fmt:shorten/40"/>
</div>
<div class="popupTitle"
tal:attributes="id string:branch-log-${branch/id};
onmouseover string:hide_commit(${branch/id});">
<p>
<strong>Author:</strong>
<tal:author
replace="structure branch/revision_author/fmt:link" />
<br/>
<strong>Revision Date:</strong>
<tal:revision-date
replace="branch/revision_date/fmt:datetime"/>
</p>
<tal:commit-msg
replace="structure branch/revision_log/fmt:text-to-html"/>
</div>
</td>
</tal:has_commit>
</tr>
<tr tal:condition="not:context/batch/total">
<td tal:attributes="colspan context/column_count">
<div id="no-branch-message"
tal:content="structure context/view/no_branch_message" />
</td>
</tr>
</tbody>
</table>
<tal:navigation replace="structure context/@@+navigation-links-lower" />
</div>
|