[Checkins]
SVN: zopeorg.theme/trunk/zopeorg/theme/browser/templates/
customized dashboard.pt and manage-dashboard.pt to play nice
in tableless context
Denis Mishunov
denis.mishunoff at gmail.com
Wed Feb 6 05:18:34 EST 2008
Log message for revision 83581:
customized dashboard.pt and manage-dashboard.pt to play nice in tableless context
Changed:
U zopeorg.theme/trunk/zopeorg/theme/browser/templates/dashboard.pt
U zopeorg.theme/trunk/zopeorg/theme/browser/templates/manage-dashboard.pt
-=-
Modified: zopeorg.theme/trunk/zopeorg/theme/browser/templates/dashboard.pt
===================================================================
--- zopeorg.theme/trunk/zopeorg/theme/browser/templates/dashboard.pt 2008-02-06 10:07:04 UTC (rev 83580)
+++ zopeorg.theme/trunk/zopeorg/theme/browser/templates/dashboard.pt 2008-02-06 10:18:33 UTC (rev 83581)
@@ -23,104 +23,126 @@
<metal:left fill-slot="column_one_slot" />
<metal:right fill-slot="column_two_slot" />
-<metal:main fill-slot="content">
- <tal:main-macro metal:define-macro="main"
- tal:define="memberinfo mtool/getMemberInfo;
- name python:memberinfo['fullname'] or member.getId() or member.getId()">
+<metal:block fill-slot="columns_wrapper">
+<div id="portal-columns" class="visualColumnHideOneTwo">
- <div class="documentEditable">
-
- <h5 class="hiddenStructure">Views</h5>
+<!-- <div id="content-column-background">
+ <div id="reset-column">
+ <div id="right-column-background"> -->
- <ul class="contentViews">
- <li class="selected">
- <a href=""
- tal:attributes="href string: ${portal_url}/dashboard"
- i18n:translate="label_view">Dashboard</a>
- </li>
- <li>
- <a href=""
- tal:attributes="href string:${portal_url}/@@manage-dashboard"
- i18n:translate="label_edit">Edit</a>
- </li>
- </ul>
+ <div class="content-column clearfix">
- <div class="contentActions">
-
- </div>
+ <tal:comment replace="nothing"> Start of main content block </tal:comment>
+ <div id="portal-column-content"
+ tal:define="tabindex python:Iterator(mainSlot=False)">
- <div class="documentContent" id="content">
+ <tal:main-macro metal:define-macro="main"
+ tal:define="memberinfo mtool/getMemberInfo;
+ name python:memberinfo['fullname'] or member.getId() or member.getId()">
- <a name="documentContent"></a>
-
- <div metal:use-macro="context/global_statusmessage/macros/portal_message">
- Portal status message
- </div>
+ <div class="documentEditable">
- <div id="dashboard-actions"
- tal:define="controlPanel python:modules['Products.CMFCore.utils'].getToolByName(here, 'portal_controlpanel');
- groups python:controlPanel.getGroups('member');
- getIconFor nocall:putils/getIconFor" >
- <ul>
- <li class="portalUser">
- <a href="personalize_form"
- tal:attributes="href string:${portal_url}/author/${member/getId}"
- i18n:translate="">Profile</a>
- </li>
- <tal:groups condition="groups">
- <tal:group repeat="group groups">
- <tal:configlets repeat="configlet python:controlPanel.enumConfiglets(group=group['id'])">
- <li tal:condition="configlet/visible">
- <a href=""
- tal:attributes="href configlet/url">
- <img src="" alt="" tal:attributes="src python:getIconFor('controlpanel',configlet['id']);
- alt configlet/title;"
- i18n:attributes="alt"
- tal:on-error="string:" />
- <tal:configletname tal:content="configlet/title"
- i18n:translate=""></tal:configletname>
- </a>
- </li>
- </tal:configlets>
- </tal:group>
- </tal:groups>
+ <h5 class="hiddenStructure">Views</h5>
+
+ <ul class="contentViews">
+ <li class="selected">
+ <a href=""
+ tal:attributes="href string: ${portal_url}/dashboard"
+ i18n:translate="label_view">Dashboard</a>
+ </li>
+ <li>
+ <a href=""
+ tal:attributes="href string:${portal_url}/@@manage-dashboard"
+ i18n:translate="label_edit">Edit</a>
+ </li>
</ul>
- </div>
-
- <h1 class="documentFirstHeading" i18n:translate="heading_dashboard">
- <span tal:replace="name" i18n:name="user_name" />'s dashboard
- </h1>
-
- <dl tal:condition="view/empty"
- class="portalMessage info visualClear" id="dashboard-info-message">
- <dt i18n:translate="">Info</dt>
- <dd i18n:translate="info_empty_dashboard">
- Your dashboard is currently empty. Click the
- <em>edit</em> tab to assign some personal
- portlets.
- </dd>
- </dl>
-
- <div id="dashboard">
-
- <div class="visualClear"><!-- --></div>
- <div id="dashboard-portlets1"
- tal:content="structure provider:plone.dashboard1" />
- <div id="dashboard-portlets2"
- tal:content="structure provider:plone.dashboard2" />
- <div id="dashboard-portlets3"
- tal:content="structure provider:plone.dashboard3" />
- <div id="dashboard-portlets4"
- tal:content="structure provider:plone.dashboard4" />
- </div>
- <div class="visualClear"><!-- --></div>
- </div>
- </div> <!-- end simulated tabs -->
+ <div class="contentActions">
+
+ </div>
- </tal:main-macro>
+ <div class="documentContent" id="content">
-</metal:main>
+ <a name="documentContent"></a>
+ <div metal:use-macro="context/global_statusmessage/macros/portal_message">
+ Portal status message
+ </div>
+
+ <div id="dashboard-actions"
+ tal:define="controlPanel python:modules['Products.CMFCore.utils'].getToolByName(here, 'portal_controlpanel');
+ groups python:controlPanel.getGroups('member');
+ getIconFor nocall:putils/getIconFor" >
+ <ul>
+ <li class="portalUser">
+ <a href="personalize_form"
+ tal:attributes="href string:${portal_url}/author/${member/getId}"
+ i18n:translate="">Profile</a>
+ </li>
+ <tal:groups condition="groups">
+ <tal:group repeat="group groups">
+ <tal:configlets repeat="configlet python:controlPanel.enumConfiglets(group=group['id'])">
+ <li tal:condition="configlet/visible">
+ <a href=""
+ tal:attributes="href configlet/url">
+ <img src="" alt="" tal:attributes="src python:getIconFor('controlpanel',configlet['id']);
+ alt configlet/title;"
+ i18n:attributes="alt"
+ tal:on-error="string:" />
+ <tal:configletname tal:content="configlet/title"
+ i18n:translate=""></tal:configletname>
+ </a>
+ </li>
+ </tal:configlets>
+ </tal:group>
+ </tal:groups>
+ </ul>
+ </div>
+
+ <h1 class="documentFirstHeading" i18n:translate="heading_dashboard">
+ <span tal:replace="name" i18n:name="user_name" />'s dashboard
+ </h1>
+
+ <dl tal:condition="view/empty"
+ class="portalMessage info visualClear" id="dashboard-info-message">
+ <dt i18n:translate="">Info</dt>
+ <dd i18n:translate="info_empty_dashboard">
+ Your dashboard is currently empty. Click the
+ <em>edit</em> tab to assign some personal
+ portlets.
+ </dd>
+ </dl>
+
+ <div id="dashboard">
+
+ <div class="visualClear"><!-- --></div>
+ <div id="dashboard-portlets1"
+ tal:content="structure provider:plone.dashboard1" />
+ <div id="dashboard-portlets2"
+ tal:content="structure provider:plone.dashboard2" />
+ <div id="dashboard-portlets3"
+ tal:content="structure provider:plone.dashboard3" />
+ <div id="dashboard-portlets4"
+ tal:content="structure provider:plone.dashboard4" />
+ </div>
+ <div class="visualClear"><!-- --></div>
+ </div>
+
+ </div> <!-- end simulated tabs -->
+
+ </tal:main-macro>
+
+ </div>
+ <tal:comment replace="nothing"> End of main content block </tal:comment>
+
+ </div>
+
+ <!-- </div>
+ </div>
+</div> -->
+
+</div>
+</metal:block>
+
</body>
</html>
Modified: zopeorg.theme/trunk/zopeorg/theme/browser/templates/manage-dashboard.pt
===================================================================
--- zopeorg.theme/trunk/zopeorg/theme/browser/templates/manage-dashboard.pt 2008-02-06 10:07:04 UTC (rev 83580)
+++ zopeorg.theme/trunk/zopeorg/theme/browser/templates/manage-dashboard.pt 2008-02-06 10:18:33 UTC (rev 83581)
@@ -24,62 +24,84 @@
<metal:left fill-slot="column_one_slot" />
<metal:right fill-slot="column_two_slot" />
-<metal:main fill-slot="content"
- tal:define="errors options/state/getErrors | nothing">
- <tal:main-macro metal:define-macro="main">
+<metal:block fill-slot="columns_wrapper">
+<div id="portal-columns" class="visualColumnHideOneTwo">
- <div class="documentEditable">
+<!-- <div id="content-column-background">
+ <div id="reset-column">
+ <div id="right-column-background"> -->
+
+ <div class="content-column clearfix">
- <h5 class="hiddenStructure"
- i18n:translate="heading_content_views">Content views</h5>
+ <tal:comment replace="nothing"> Start of main content block </tal:comment>
+ <div id="portal-column-content"
+ tal:define="tabindex python:Iterator(mainSlot=False)">
- <ul class="contentViews">
- <li>
- <a href=""
- tal:attributes="href string: ${portal_url}/dashboard"
- i18n:translate="label_dashboard">Dashboard</a>
- </li>
- <li class="selected">
- <a href=""
- tal:attributes="href string:${portal_url}/@@manage-dashboard"
- i18n:translate="label_edit">Edit</a>
- </li>
- </ul>
+ <tal:main-macro metal:define-macro="main"
+ tal:define="errors options/state/getErrors | nothing">
- <div class="contentActions">
-
- </div>
+ <div class="documentEditable">
- <div class="documentContent" id="content">
+ <h5 class="hiddenStructure"
+ i18n:translate="heading_content_views">Content views</h5>
- <a name="documentContent"></a>
-
- <div metal:use-macro="context/global_statusmessage/macros/portal_message">
- Portal status message
- </div>
+ <ul class="contentViews">
+ <li>
+ <a href=""
+ tal:attributes="href string: ${portal_url}/dashboard"
+ i18n:translate="label_dashboard">Dashboard</a>
+ </li>
+ <li class="selected">
+ <a href=""
+ tal:attributes="href string:${portal_url}/@@manage-dashboard"
+ i18n:translate="label_edit">Edit</a>
+ </li>
+ </ul>
- <h1 class="documentFirstHeading" i18n:translate="title_edit_dashboard">
- Edit your dashboard
- </h1>
+ <div class="contentActions">
+
+ </div>
- <div id="dashboard">
- <div id="dashboard-portlets1"
- tal:content="structure provider:plone.dashboard1" />
- <div id="dashboard-portlets2"
- tal:content="structure provider:plone.dashboard2" />
- <div id="dashboard-portlets3"
- tal:content="structure provider:plone.dashboard3" />
- <div id="dashboard-portlets4"
- tal:content="structure provider:plone.dashboard4" />
- </div>
+ <div class="documentContent" id="content">
- <div class="visualClear"><!-- --></div>
+ <a name="documentContent"></a>
- </div> <!-- end simulated tabs -->
+ <div metal:use-macro="context/global_statusmessage/macros/portal_message">
+ Portal status message
+ </div>
- </tal:main-macro>
+ <h1 class="documentFirstHeading" i18n:translate="title_edit_dashboard">
+ Edit your dashboard
+ </h1>
-</metal:main>
+ <div id="dashboard">
+ <div id="dashboard-portlets1"
+ tal:content="structure provider:plone.dashboard1" />
+ <div id="dashboard-portlets2"
+ tal:content="structure provider:plone.dashboard2" />
+ <div id="dashboard-portlets3"
+ tal:content="structure provider:plone.dashboard3" />
+ <div id="dashboard-portlets4"
+ tal:content="structure provider:plone.dashboard4" />
+ </div>
+ <div class="visualClear"><!-- --></div>
+
+ </div> <!-- end simulated tabs -->
+
+ </tal:main-macro>
+
+ </div>
+ <tal:comment replace="nothing"> End of main content block </tal:comment>
+
+ </div>
+
+ <!-- </div>
+ </div>
+</div> -->
+
+</div>
+</metal:block>
+
</body>
</html>
More information about the Checkins
mailing list