[2893] | 1 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" |
---|
| 2 | xmlns:tal="http://xml.zope.org/namespaces/tal" |
---|
| 3 | xmlns:metal="http://xml.zope.org/namespaces/metal" |
---|
| 4 | xmlns:i18n="http://xml.zope.org/namespaces/i18n" |
---|
| 5 | lang="en" |
---|
| 6 | metal:use-macro="context/prefs_main_template/macros/master"> |
---|
| 7 | |
---|
| 8 | <metal:main metal:fill-slot="prefs_configlet_main" i18n:domain="quintagroup.analytics" |
---|
| 9 | tal:define="infos view/getPortlets"> |
---|
| 10 | <body> |
---|
| 11 | <div id="wrapper"> |
---|
| 12 | <h1>Legacy portlets</h1> |
---|
| 13 | <ul class="formTabs" id="navigation"> |
---|
[3023] | 14 | <li class="formTab"><a href="@@qa_overview">Overview</a></li> |
---|
[2893] | 15 | <li class="formTab"><a href="@@ownership_by_type">Ownership by type</a></li> |
---|
| 16 | <li class="formTab"><a href="@@ownership_by_state">Ownership by state</a></li> |
---|
| 17 | <li class="formTab"><a href="@@type_by_state">Types by state</a></li> |
---|
| 18 | <li class="formTab"><a class="selected" href="@@legacy_portlets">Legacy portlets</a></li> |
---|
| 19 | <li class="formTab"><a href="@@properties_stats">Properties stats</a></li> |
---|
| 20 | <li class="formTab"><a href="@@portlets_stats">Portlets stats</a></li> |
---|
| 21 | </ul> |
---|
[3030] | 22 | <p>The following list displays all site's legacy portlets, assigned as left and right slots in all site sections. |
---|
| 23 | Click on the porltet title to land on the porltet edit form.</p> |
---|
[2893] | 24 | <form action="" method="get"> |
---|
[3030] | 25 | Search depth (-1 means no limit, 1 means that objects in the site root only will be searched): |
---|
[2893] | 26 | <input type="text" name="level" size="5" value="1" tal:attributes="value request/level|python:1" /> |
---|
| 27 | CSV |
---|
| 28 | <input type="checkbox" name="csv" tal:attributes="checked request/csv|python:0" /> |
---|
[3032] | 29 | <input type="submit" name="submit" value="Search" /> |
---|
[2893] | 30 | </form> |
---|
| 31 | </div> |
---|
| 32 | <div tal:condition="request/csv|nothing"> |
---|
| 33 | <nobr>path,left_slots,right_slots</nobr><br> |
---|
| 34 | <nobr tal:repeat="info infos"> |
---|
| 35 | <span tal:content="info/path">path</span>, |
---|
| 36 | <span tal:condition="info/left_slots">" |
---|
| 37 | <span tal:repeat="slot info/left_slots"> |
---|
| 38 | <span tal:content="slot" />; |
---|
| 39 | </span>" |
---|
| 40 | </span> |
---|
| 41 | <span tal:condition="python:info['left_slots'] is None">None</span>, |
---|
| 42 | <span tal:condition="info/right_slots">" |
---|
| 43 | <span tal:repeat="slot info/right_slots"> |
---|
| 44 | <span tal:content="slot" />; |
---|
| 45 | </span>" |
---|
| 46 | </span> |
---|
| 47 | <span tal:condition="python:info['right_slots'] is None">None</span> |
---|
| 48 | <br> |
---|
| 49 | </nobr> |
---|
| 50 | </div> |
---|
| 51 | <table class="listing" |
---|
| 52 | tal:condition="not:request/csv|nothing"> |
---|
| 53 | <tr> |
---|
| 54 | <th></th> |
---|
| 55 | <th>left_slots</th> |
---|
| 56 | <th>right_slots</th> |
---|
| 57 | </tr> |
---|
| 58 | <tr tal:repeat="info infos"> |
---|
| 59 | <th><a href="#" tal:content="info/path" tal:attributes="href info/href">path</a></th> |
---|
| 60 | <td> |
---|
| 61 | <ul tal:condition="info/left_slots"> |
---|
| 62 | <li tal:repeat="slot info/left_slots" tal:content="slot">slot</li> |
---|
| 63 | </ul> |
---|
| 64 | <span tal:condition="python:info['left_slots'] is None">doesn't exist</span> |
---|
| 65 | </td> |
---|
| 66 | <td> |
---|
| 67 | <ul tal:condition="info/right_slots"> |
---|
| 68 | <li tal:repeat="slot info/right_slots" tal:content="slot">slot</li> |
---|
| 69 | </ul> |
---|
| 70 | <span tal:condition="python:info['right_slots'] is None">doesn't exist</span> |
---|
| 71 | </td> |
---|
| 72 | </tr> |
---|
| 73 | <tr> |
---|
| 74 | <th>Total</th> |
---|
| 75 | <td colspan="2" tal:content="view/getTotal">123</td> |
---|
| 76 | </tr> |
---|
| 77 | <tr> |
---|
| 78 | <th>Expressions</th> |
---|
| 79 | <td colspan="2"> |
---|
| 80 | <ul> |
---|
| 81 | <li tal:repeat="expr view/getAllPortletExpressions" tal:content="expr">expressions</li> |
---|
| 82 | </ul> |
---|
| 83 | </td> |
---|
| 84 | </tr> |
---|
| 85 | </table> |
---|
| 86 | </body> |
---|
| 87 | </metal:main> |
---|
| 88 | </html> |
---|