equal
deleted
inserted
replaced
1 <ul class="associations" |
1 <ul class="associations" |
2 tal:define="renderer_style view.description_format + chr(59) + 'glossary'"> |
2 tal:define="items view.attachments; |
|
3 (has_attachments, attachments) tales:boolean_iter(items); |
|
4 items view.links; |
|
5 (has_links, links) tales:boolean_iter(items); |
|
6 renderer_style view.description_format + chr(59) + 'glossary'" |
|
7 tal:condition="has_attachments or has_links"> |
3 <li tal:define="prefix view.attachments_title_prefix" |
8 <li tal:define="prefix view.attachments_title_prefix" |
4 tal:repeat="item view.attachments"> |
9 tal:repeat="item attachments"> |
5 <tal:var define="item_info view.get_link_info(item); |
10 <tal:var define="item_info view.get_link_info(item); |
6 description i18n:item.description; |
11 description i18n:item.description; |
7 data i18n:item.data"> |
12 data i18n:item.data"> |
8 <p> |
13 <p> |
9 <tal:if condition="description"> |
14 <tal:if condition="description"> |
15 ${prefix} ${item_info.user_title} |
20 ${prefix} ${item_info.user_title} |
16 </a> |
21 </a> |
17 </p> |
22 </p> |
18 </tal:var> |
23 </tal:var> |
19 </li> |
24 </li> |
20 <li tal:repeat="link view.links"> |
25 <li tal:repeat="link links"> |
21 <p tal:define="link_info view.get_link_info(link); |
26 <p tal:define="link_info view.get_link_info(link); |
22 description i18n:link.description;"> |
27 description i18n:link.description;"> |
23 <tal:if condition="description"> |
28 <tal:if condition="description"> |
24 ${structure:tales:html(description, renderer_style)} |
29 ${structure:tales:html(description, renderer_style)} |
25 <br tal:condition="view.description_format == 'text'" /> |
30 <br tal:condition="view.description_format == 'text'" /> |