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
|
<div
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
id="privacy"
tal:attributes="
class python: path('context/private') and 'first portlet private' or 'first portlet public'
"
tal:define="link context/menu:context/visibility"
>
<div tal:condition="not:context/private" id="privacy-text">
<a class="sprite edit" id="privacy-link"
tal:attributes="href link/path; title link/text"
tal:condition="link/enabled">This report is public</a>
<tal:unchangeable condition="not:link/enabled">
This report is public
</tal:unchangeable>
</div>
<div tal:condition="context/private" id="privacy-text">
<a class="sprite edit" id="privacy-link"
tal:attributes="href link/path; title link/text"
tal:condition="link/enabled">This report is <strong>private</strong></a>
<tal:unchangeable condition="not:link/enabled">
This report is private
</tal:unchangeable>
</div>
<div class="sprite security" id="security-message"
tal:condition="context/security_related">Security vulnerability</div>
</div>
|