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 | portal_type context/portal_type; |
---|
14 | policy cstool/getDisplayPolicy; |
---|
15 | config python:modules['Products.CacheSetup.config']; |
---|
16 | plone25 python:config.PLONE25 or '';"> |
---|
17 | |
---|
18 | <div class="documentEditable" tal:attributes="id python:plone25 and 'content' or ''"> |
---|
19 | |
---|
20 | <ul metal:use-macro="here/cache_tool_config/macros/cache_tabs"></ul> |
---|
21 | |
---|
22 | <div metal:use-macro="here/global_contentviews/macros/content_actions"> |
---|
23 | The content bar |
---|
24 | </div> |
---|
25 | |
---|
26 | <div class="documentContent" tal:attributes="id python:plone25 and '' or 'content'"> |
---|
27 | <a name="documentContent"></a> |
---|
28 | |
---|
29 | <div class="configlet"> |
---|
30 | |
---|
31 | <div metal:use-macro="here/global_statusmessage/macros/portal_message" /> |
---|
32 | |
---|
33 | <tal:displayPolicy metal:define-macro="displaypolicy" |
---|
34 | define="display policy/getId; |
---|
35 | active cstool/getActivePolicyId; |
---|
36 | ruletypes python:(config.RULEFOLDER_TYPE,) + config.RULE_TYPES; |
---|
37 | isRuleType python:portal_type in ruletypes; |
---|
38 | policies cstool/getActivePolicyVocabulary;" |
---|
39 | condition="python:len(policies) > 1"> |
---|
40 | |
---|
41 | <tal:warning condition="python:display != active"> |
---|
42 | <tal:refreshcookie define="null python:cstool.setDisplayPolicy(display, redirect=False)" /> |
---|
43 | <div class="portalMessage" tal:condition="plone25"> |
---|
44 | You are currently editing an inactive cache policy. |
---|
45 | Changes will not be "live" until the active policy is changed on the "Main" tab. |
---|
46 | </div> |
---|
47 | <dl class="portalMessage" tal:condition="not:plone25"><dt>Inactive Policy</dt> |
---|
48 | <dd>You are currently editing an inactive cache policy. |
---|
49 | Changes will not be "live" until the active policy is changed on the "Main" tab. |
---|
50 | </dd> |
---|
51 | </dl> |
---|
52 | </tal:warning> |
---|
53 | |
---|
54 | <form method="get" action="" |
---|
55 | tal:define="camefrom python:isRuleType and 'rules' or 'headersets'; |
---|
56 | url string:${cstool/absolute_url}/cache_policy_redirect/$camefrom/;"> |
---|
57 | <label>Cache Policy</label> |
---|
58 | <div class="formHelp">Policy currently being displayed. Change selection to switch to another policy.</div> |
---|
59 | <select tal:attributes="onchange string:location.href='$url'+this.options[this.selectedIndex].value"> |
---|
60 | <tal:policies repeat="policy policies"> |
---|
61 | <option tal:define="id policy; |
---|
62 | title python:policies.getValue(policy); |
---|
63 | selected python:(id == display) and 'selected' or None; |
---|
64 | title python:(id == active) and '[active policy]: %s' %title or title;" |
---|
65 | tal:attributes="value id; |
---|
66 | selected selected;" |
---|
67 | tal:content="title" /> |
---|
68 | </tal:policies> |
---|
69 | </select> |
---|
70 | </form> |
---|
71 | <p> </p> |
---|
72 | |
---|
73 | </tal:displayPolicy> |
---|
74 | |
---|
75 | <tal:folders condition="python:portal_type in config.FOLDER_TYPES"> |
---|
76 | <tal:def define="folder_macros here/old_folder_contents/macros|here/folder_contents/macros; |
---|
77 | batch python:context.getUncataloguedFolderContents(batch=True); |
---|
78 | actions python:here.getFolderButtons(actions); |
---|
79 | full_view python:False;"> |
---|
80 | <div metal:use-macro="folder_macros/contents"> |
---|
81 | |
---|
82 | <metal:header_slot metal:fill-slot="listingheader"> |
---|
83 | <th class="nosort"> ID </th> |
---|
84 | <th class="nosort" |
---|
85 | > <tal:modified i18n:translate="listingheader_modified" |
---|
86 | >Modified</tal:modified> </th> |
---|
87 | <th class="nosort" |
---|
88 | > <tal:order i18n:translate="listingheader_order" |
---|
89 | >Order</tal:order> </th> |
---|
90 | </metal:header_slot> |
---|
91 | |
---|
92 | <metal:item_slot metal:fill-slot="item_display"> |
---|
93 | <td tal:content="item_id"></td> |
---|
94 | <td tal:content="python:toLocalizedTime(item_modified, long_format=1)" |
---|
95 | tal:attributes="class item_wf_state_class">08/19/2001 03:01 AM |
---|
96 | </td> |
---|
97 | <td tal:define="pps python:modules['Products.PythonScripts.standard']; |
---|
98 | quoted_item_id python:pps.url_quote(item_id)" |
---|
99 | tal:condition="python:isOrderable and canModifyFolderContent and not preSorted"> |
---|
100 | <a href="" |
---|
101 | title="Move item up" |
---|
102 | i18n:attributes="title title_move_item_up;" |
---|
103 | tal:attributes="href string:$here_url/cache_folder_position?position=up&id=$quoted_item_id&template_id=${template_id}"> |
---|
104 | <img tal:replace="structure arrowUp" /> |
---|
105 | </a> |
---|
106 | |
---|
107 | <a href="" |
---|
108 | title="Move item down" |
---|
109 | i18n:attributes="title title_move_item_down;" |
---|
110 | tal:attributes="href string:$here_url/cache_folder_position?position=down&id=$quoted_item_id&template_id=${template_id}"> |
---|
111 | <img tal:replace="structure arrowDown" /> |
---|
112 | </a> |
---|
113 | </td> |
---|
114 | </metal:item_slot> |
---|
115 | |
---|
116 | </div> |
---|
117 | |
---|
118 | </tal:def> |
---|
119 | </tal:folders> |
---|
120 | |
---|
121 | <tal:folderItems condition="python:portal_type in config.FOLDER_ITEM_TYPES"> |
---|
122 | <div metal:use-macro="here/cache_setup_items_config/macros/cache-items"></div> |
---|
123 | </tal:folderItems> |
---|
124 | |
---|
125 | </div> |
---|
126 | </div> |
---|
127 | </div> |
---|
128 | </div> |
---|
129 | </body> |
---|
130 | </html> |
---|