1 <tal:block i18n:domain="pyams_content" |
1 <tal:block i18n:domain="pyams_content" |
2 define="config tales:back_configuration"> |
2 define="config tales:back_configuration"> |
3 <tal:if condition="config.display_shared_tool_title"> |
3 <tal:if condition="config.display_shared_tool_title"> |
4 <h1 class="page-title margin-bottom-5" tal:define="back_url view.back_url"> |
4 <h1 class="page-title margin-bottom-5" |
5 <a class="font-xs hint" data-ams-target="#content" |
5 tal:define="back_url view.back_url"> |
|
6 <a class="font-xs hint" |
|
7 href="${back_url}" |
6 title="Back to previous page" i18n:attributes="title" |
8 title="Back to previous page" i18n:attributes="title" |
7 tal:attributes="href back_url; |
9 data-ams-target="${view.back_target}"> |
8 data-ams-target view.back_target;"> |
|
9 <i class="fa fa-chevron-left padding-right-10"></i> |
10 <i class="fa fa-chevron-left padding-right-10"></i> |
10 </a> |
11 </a> |
11 <tal:if condition="config.display_content_icon"> |
12 <tal:if condition="config.display_content_icon"> |
12 <i tal:attributes="class view.icon_class"></i> |
13 <i tal:attributes="class view.icon_class"></i> |
13 </tal:if> |
14 </tal:if> |
14 <tal:var content="view.title" /> |
15 ${view.title} |
15 </h1> |
16 </h1> |
16 </tal:if> |
17 </tal:if> |
17 <div tal:attributes="class 'margin-left-10 margin-bottom-5 padding-left-20' if config.display_shared_tool_title else 'margin-bottom-5 padding-left-10'"> |
18 <div class="${'margin-left-10 margin-bottom-5 padding-left-20' if config.display_shared_tool_title else 'margin-bottom-5 padding-left-10'}"> |
18 <span class="bold content-oid" tal:content="view.oid">OID</span> : |
19 <span class="bold content-oid">${view.oid}</span> : |
19 <span class="bold content-title" tal:content="i18n:context.title">Title</span> | |
20 <span class="bold content-title">${i18n:context.title}</span> | |
20 <span class="content-owner" i18n:translate="">by <i18n:var name="owner" tal:content="view.owner" /></span> |
21 <span class="content-owner" i18n:translate="">by <i18n:var name="owner">${view.owner}</i18n:var></span> |
21 <i data-ams-plugins="pyams_content" |
22 <i class="fa fa-star${'' if view.favorite_content else '-o'} txt-color-blue hint opaque align-middle padding-left-10 padding-bottom-5" |
|
23 data-ams-plugins="pyams_content" |
|
24 data-ams-plugin-pyams_content-src="${tales:resource_path('pyams_content.zmi:pyams_content')}" |
22 data-ams-click-handler="PyAMS_content.profile.switchFavorite" |
25 data-ams-click-handler="PyAMS_content.profile.switchFavorite" |
23 data-ams-hint-gravity="w" title="Add/remove from favorites" i18n:attributes="title" |
26 data-ams-hint-gravity="w" title="Add/remove from favorites" i18n:attributes="title" |
24 tal:attributes="class 'fa fa-star{0} txt-color-blue hint opaque align-middle padding-left-10 padding-bottom-5'.format('' if view.favorite_content else '-o'); |
27 data-sequence-oid="${view.hex_oid}"></i><br /> |
25 data-ams-plugin-pyams_content-src tales:resource_path('pyams_content.zmi:pyams_content'); |
28 <span class="content-version">V${view.version_id}</span> = |
26 data-sequence-oid view.hex_oid;"></i><br /> |
29 <span class="content-state">${structure:view.state}</span> | |
27 <span class="content-version" tal:content="string:V${view.version_id}">Version</span> = |
30 <span class="content-state-date">${view.state_date}</span> |
28 <span class="content-state" tal:content="structure view.state">state</span> | |
|
29 <span class="content-state-date" tal:content="view.state_date">state date</span> |
|
30 <tal:loop repeat="link view.versions_links">| |
31 <tal:loop repeat="link view.versions_links">| |
31 <a tal:attributes="class link['css_class']; |
32 <a class="${link['css_class']}" |
32 href link['href'];" |
33 href="${link['href']}">${link['title']}</a> |
33 tal:content="link['title']">link</a> |
|
34 </tal:loop> |
34 </tal:loop> |
35 </div> |
35 </div> |
36 </tal:block> |
36 </tal:block> |