Skip to content

Commit 08dcb57

Browse files
author
Richard Jones
committed
hide "(list)" popup links when issue is only viewable
1 parent 0c120d7 commit 08dcb57

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Feature:
1212
- add a default argument to the DateHTMLProperty.field method, and an
1313
optional Interval (string or object) to the DateHTMLProperty.now (patch
1414
from Vickenty Fesunov)
15+
- hide "(list)" popup links when issue is only viewable
1516

1617

1718
2004-??-?? 0.7.5

templates/classic/html/issue.item.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<th i18n:translate="">Superseder</th>
4646
<td>
4747
<span tal:replace="structure python:context.superseder.field(showid=1, size=20)" />
48-
<span tal:replace="structure python:db.issue.classhelp('id,title', property='superseder')" />
48+
<span tal:condition="context/is_edit_ok" tal:replace="structure python:db.issue.classhelp('id,title', property='superseder')" />
4949
<span tal:condition="context/superseder" tal:repeat="sup context/superseder">
5050
<br><span i18n:translate="">View: <a i18n:name="link" tal:content="sup/id"
5151
tal:attributes="href string:issue${sup/id}"></a></span>
@@ -54,7 +54,7 @@
5454
<th i18n:translate="">Nosy List</th>
5555
<td>
5656
<span tal:replace="structure context/nosy/field" />
57-
<span tal:replace="structure
57+
<span tal:condition="context/is_edit_ok" tal:replace="structure
5858
python:db.user.classhelp('username,realname,address', property='nosy', width='600')" /><br>
5959
</td>
6060
</tr>
@@ -65,7 +65,7 @@
6565
<th i18n:translate="">Topics</th>
6666
<td>
6767
<span tal:replace="structure context/topic/field" />
68-
<span tal:replace="structure python:db.keyword.classhelp(property='topic')" />
68+
<span tal:condition="context/is_edit_ok" tal:replace="structure python:db.keyword.classhelp(property='topic')" />
6969
</td>
7070
</tr>
7171

0 commit comments

Comments
 (0)