1 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" |
---|
2 | lang="en" |
---|
3 | metal:use-macro="here/prefs_main_template/macros/master" |
---|
4 | i18n:domain="plone"> |
---|
5 | |
---|
6 | <metal:block fill-slot="top_slot" |
---|
7 | tal:define="dummy python:request.set('disable_border',1)" /> |
---|
8 | |
---|
9 | <body> |
---|
10 | |
---|
11 | <div metal:fill-slot="prefs_configlet_content" |
---|
12 | tal:define="cstool nocall:portal/portal_cache_settings; |
---|
13 | enabled python:cstool.getEnabled(); |
---|
14 | portal_type context/portal_type; |
---|
15 | policy cstool/getDisplayPolicy; |
---|
16 | config python:modules['Products.CacheSetup.config']; |
---|
17 | plone25 python:config.PLONE25 or '';"> |
---|
18 | |
---|
19 | <div class="documentEditable" tal:attributes="id python:plone25 and 'content' or ''"> |
---|
20 | |
---|
21 | <ul class="contentViews" metal:define-macro="cache_tabs" |
---|
22 | tal:define="folders python: [obj for obj in policy.objectValues() if obj.portal_type in config.FOLDER_TYPES]; |
---|
23 | actual_url context/REQUEST/ACTUAL_URL; |
---|
24 | isTool python:portal_type == config.TOOL_TYPE; |
---|
25 | isPolicy python:portal_type == config.POLICY_TYPE; |
---|
26 | isPolicies python:isTool and actual_url.endswith('cache_policy_config'); |
---|
27 | isPolicyItem python:(not isTool) and (not isPolicy); |
---|
28 | isPageCacheConfig python:isTool and actual_url.endswith('page_cache_config'); |
---|
29 | isTool python:isTool and (not isPolicies) and (not isPageCacheConfig);"> |
---|
30 | <li tal:attributes="class python:isTool and 'selected' or 'plain'"> |
---|
31 | <a tal:attributes="href string:${cstool/absolute_url}">Main</a> |
---|
32 | </li> |
---|
33 | <li tal:condition="python:len(cstool.getActivePolicyVocabulary()) > 1" |
---|
34 | tal:attributes="class python:(isPolicy or isPolicies) and 'selected' or 'plain'"> |
---|
35 | <a tal:attributes="href string:${cstool/absolute_url}/cache_policy_config">Policies</a> |
---|
36 | </li> |
---|
37 | <tal:loop repeat="item folders"> |
---|
38 | <li tal:define="folder_type item/portal_type; |
---|
39 | parent_type context/aq_parent/portal_type|nothing; |
---|
40 | selected python:portal_type == folder_type or parent_type == folder_type;" |
---|
41 | tal:attributes="class python:selected and 'selected' or 'plain'"> |
---|
42 | <a href="" |
---|
43 | tal:attributes="href string:${item/absolute_url}" |
---|
44 | tal:content="python: item.title_or_id()"></a> |
---|
45 | </li> |
---|
46 | </tal:loop> |
---|
47 | <li tal:attributes="class python:isPageCacheConfig and 'selected' or 'plain'"> |
---|
48 | <a tal:attributes="href string:${cstool/absolute_url}/page_cache_config">Memory</a> |
---|
49 | </li> |
---|
50 | </ul> |
---|
51 | |
---|
52 | <div metal:use-macro="here/global_contentviews/macros/content_actions"> |
---|
53 | The content bar |
---|
54 | </div> |
---|
55 | |
---|
56 | <div class="documentContent" tal:attributes="id python:plone25 and '' or 'content'"> |
---|
57 | <a name="documentContent"></a> |
---|
58 | |
---|
59 | <div class="configlet"> |
---|
60 | |
---|
61 | <div metal:use-macro="here/global_statusmessage/macros/portal_message"> |
---|
62 | Portal status message |
---|
63 | </div> |
---|
64 | |
---|
65 | <h1 class="documentFirstHeading"> |
---|
66 | <span tal:content="python:putils.pretty_title_or_id(here)" tal:omit-tag="" /> |
---|
67 | </h1> |
---|
68 | |
---|
69 | <a href="" |
---|
70 | class="link-parent" |
---|
71 | tal:attributes="href string: ${portal/absolute_url}/plone_control_panel">Up to Site Setup</a> |
---|
72 | |
---|
73 | <tal:toolConfig |
---|
74 | define="errors options/state/getErrors | nothing; |
---|
75 | Iterator python:modules['Products.Archetypes'].IndexIterator; |
---|
76 | schematas here/Schemata; |
---|
77 | allow_tabbing python:False; |
---|
78 | fieldsets python:[key for key in schematas.keys() if (key != 'metadata') and (schematas[key].editableFields(here, visible_only=True))]; |
---|
79 | default_fieldset python:(not schematas or schematas.has_key('default')) and 'default' or fieldsets[0]; |
---|
80 | fieldset request/fieldset|options/fieldset|default_fieldset; |
---|
81 | fields python:schematas[fieldset].editableFields(here);"> |
---|
82 | <div metal:use-macro="here/edit_macros/macros/body"></div> |
---|
83 | </tal:toolConfig> |
---|
84 | |
---|
85 | </div> |
---|
86 | </div> |
---|
87 | </div> |
---|
88 | </div> |
---|
89 | </body> |
---|
90 | </html> |
---|