-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathkeyword.index.html
More file actions
46 lines (40 loc) · 1.52 KB
/
keyword.index.html
File metadata and controls
46 lines (40 loc) · 1.52 KB
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
<tal:block metal:use-macro="templates/page/macros/icing">
<title metal:fill-slot="head_title" >
<span tal:omit-tag="true" i18n:translate="" >List of keywords</span>
<span tal:condition="request/dispname"
tal:replace="python:' - %s '%request.dispname"
/> - <span tal:replace="config/TRACKER_NAME" />
</title>
<span metal:fill-slot="body_title" tal:omit-tag="true">
<span tal:omit-tag="true" i18n:translate="" >List of keywords</span>
<span tal:condition="request/dispname"
tal:replace="python:' - %s' % request.dispname" />
</span>
<tal:block metal:fill-slot="content">
<p tal:condition="python:not (context.is_view_ok()
or request.user.hasRole('Anonymous'))" i18n:translate="">
You are not allowed to view this page.</p>
<p tal:condition="python:not context.is_view_ok()
and request.user.hasRole('Anonymous')" i18n:translate="">
Please login with your username and password.</p>
<table width="100%" tal:condition="context/is_view_ok" class="list">
<tr>
<th i18n:translate="">Keyword</th>
<th i18n:translate="">Description</th>
</tr>
<tal:block repeat="keyword context/list">
<tr tal:attributes="class python:['normal', 'alt'][repeat['keyword'].index%6//3]">
<td>
<a tal:attributes="href string:keyword${keyword/id}"
tal:content="keyword/name">keyword name</a>
</td>
<td tal:content="python:keyword.description.plain() or
default"> </td>
</tr>
</tal:block>
<tr tal:condition="context/is_edit_ok">
<td colspan="2"><a href="keyword?@template=item">New Keyword</a></td>
</tr>
</table>
</tal:block>
</tal:block>