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
193
194
195
|
<tal:bugtask
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
define="expandable view/canSeeTaskDetails;
indent_task view/shouldIndentTask;
is_conjoined_slave view/is_conjoined_slave;
tasklink view/taskLink;
row_id string:tasksummary${context/id};
form_row_id string:task${context/id}">
<tr tal:define="editstatus_url string:${context/fmt:url}/+editstatus"
tal:attributes="class view/getTaskRowCSSClass; id row_id">
<td class="icon left right">
<metal:expander
metal:define-macro="expander"
tal:define="expander_link_text expander_link_text|nothing">
<a tal:condition="expandable"
tal:attributes="
href tasklink;
onclick string:return toggleFormVisibility('${form_row_id}')"
class="sprite bug-status-expand">
<tal:link_text tal:replace="expander_link_text" />
</a>
<tal:no_expander tal:condition="not: expandable"
tal:replace="expander_link_text" />
</metal:expander>
</td>
<td style="padding: 0.3em 0em 0.3em 1.5em"
tal:condition="indent_task"
tal:define="series_targetname view/getSeriesTargetName">
<span class="sprite milestone"></span>
<tal:not-conjoined-task condition="not: is_conjoined_slave">
<a
tal:attributes="href context/target/fmt:url"
tal:content="series_targetname"
/>
</tal:not-conjoined-task>
</td>
<td tal:condition="not:indent_task">
<span tal:attributes="id string:bugtarget-picker-${row_id}">
<span class="yui3-activator-data-box">
<span title="This project’s license has not been specified.">
<a tal:attributes="href context/target/fmt:url;
title view/target_link_title;
class context/target/image:sprite_css"
tal:content="context/bugtargetdisplayname" />
</span>
</span>
<button class="lazr-btn yui3-activator-act yui3-activator-hidden">
Edit
</button>
<div class="yui3-activator-message-box yui3-activator-hidden"></div>
</span>
</td>
<tal:conjoined-task condition="is_conjoined_slave">
<td colspan="5" style="vertical-align: middle">
<span class="discreet lesser" style="font-size: 100%">
Status tracked in
<tal:master tal:replace="view/getConjoinedMasterName">
Hoary
</tal:master>
</span>
</td>
</tal:conjoined-task>
<tal:not-conjoined-task condition="not:is_conjoined_slave">
<td style="width: 20%; vertical-align: middle">
<div class="status-content"
style="width: 100%; float: left">
<a href="+editstatus"
tal:attributes="class string:value status${context/status/name};
href editstatus_url"
style="float: left"
tal:content="context/status/title" />
<a href="+editstatus" style="margin-left: 3px"
tal:attributes="href editstatus_url">
<img class="editicon" src="/@@/edit" />
</a>
</div>
</td>
<td tal:condition="view/user_can_edit_importance"
style="width: 20%; vertical-align: middle">
<div class="importance-content"
style="width: 100%; float: left">
<a href="+editstatus"
tal:attributes="class string:value importance${context/importance/name};
href editstatus_url"
style="float: left"
tal:content="context/importance/title" />
<a href="+editstatus" style="margin-left: 3px"
tal:attributes="href editstatus_url">
<img class="editicon" src="/@@/edit" />
</a>
</div>
</td>
<td tal:condition="not: view/user_can_edit_importance"
style="width: 15em; vertical-align: middle">
<div class="importance-content"
style="width: 100%; float: left">
<span
tal:attributes="class string:value importance${context/importance/name}"
style="float: left"
tal:content="context/importance/title" />
</div>
</td>
<td style="width:20%; margin: 0; padding: 0;
vertical-align: middle; padding-left: 0.5em">
<tal:has_watch condition="context/bugwatch">
<div style="text-decoration: none; padding: 0.25em">
<tal:bugtracker-active
condition="context/bugwatch/bugtracker/active">
<span tal:condition="not:context/bugwatch/last_error_type"
class="sprite bug-remote"></span>
<a tal:condition="context/bugwatch/last_error_type"
tal:attributes="href view/bug_watch_error_message/help_url"
target="help"
class="icon help">
<span class="sprite warning-icon"
tal:attributes="title view/bug_watch_error_message/message"
id="bugwatch-error-sprite"></span>
</a>
</tal:bugtracker-active>
<span tal:condition="not:context/bugwatch/bugtracker/active"
class="sprite warning-icon"></span>
<a tal:replace="structure context/bugwatch/fmt:external-link" />
</div>
</tal:has_watch>
<tal:has_no_watch condition="not: context/bugwatch">
<span tal:attributes="id string:assignee-picker-${row_id}">
<span class="yui3-activator-data-box">
<a tal:condition="context/assignee"
tal:attributes="href context/assignee/fmt:url;
class context/assignee/image:sprite_css"
tal:content="context/assignee/fmt:displayname" />
<tal:unassigned condition="not: context/assignee">
Unassigned
</tal:unassigned>
</span>
<button class="lazr-btn yui3-activator-act yui3-activator-hidden">
Edit
</button>
<div class="yui3-activator-message-box yui3-activator-hidden"></div>
</span>
</tal:has_no_watch>
</td>
<td style="width: 20%; vertical-align: middle">
<div class="milestone-content"
tal:condition="view/target_has_milestones"
style="width: 100%; float: left">
<a tal:condition="view/user_can_edit_milestone"
class="nulltext addicon js-action sprite add"
tal:attributes="href editstatus_url;
style view/style_for_add_milestone">
Target to milestone
</a>
<a class="value"
tal:attributes="href context/milestone/fmt:url | nothing"
tal:content="context/milestone/title | nothing" />
<a tal:condition="view/user_can_edit_milestone"
tal:attributes="href editstatus_url"
><img class="editicon" src="/@@/edit"
tal:attributes="style view/style_for_edit_milestone"
/></a>
</div>
</td>
</tal:not-conjoined-task>
</tr>
<script type="text/javascript"
class="bugtasks-table-row-init-script"
tal:condition="not:view/many_bugtasks"
tal:content="string:
LPS.use('event', 'lp.bugs.bugtask_index', function(Y) {
Y.on('load',
function(e) {
Y.lp.bugs.bugtask_index.setup_bugtask_row(${view/js_config});
},
window);
});
"/>
<tal:form condition="view/displayEditForm">
<tr
tal:attributes="id form_row_id"
tal:condition="expandable"
style="display: none"
>
<td colspan="7" tal:content="structure view/edit_view" />
</tr>
</tal:form>
</tal:bugtask>
|