[Mpuls-commits] r1865 - wasko/branches/2.0/mpulsweb/templates/casemanagement

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Mar 1 08:54:52 CET 2010


Author: torsten
Date: 2010-03-01 08:54:51 +0100 (Mon, 01 Mar 2010)
New Revision: 1865

Modified:
   wasko/branches/2.0/mpulsweb/templates/casemanagement/main.mako
Log:
* mpulsweb/templates/casemanagement/main.mako: Display link to
  casedocuments only if module is enabled. Formatting.



Modified: wasko/branches/2.0/mpulsweb/templates/casemanagement/main.mako
===================================================================
--- wasko/branches/2.0/mpulsweb/templates/casemanagement/main.mako	2010-03-01 07:47:43 UTC (rev 1864)
+++ wasko/branches/2.0/mpulsweb/templates/casemanagement/main.mako	2010-03-01 07:54:51 UTC (rev 1865)
@@ -85,16 +85,48 @@
     <h1>${_('cm_menu_header_seperator')}</h1>
     <div class="actions">
       <ul>
-        <li><a href="/case/digest/${session.get('case').id}" onclick="return checkModification();"> ${_('cm_menu_link_digest')}</a></li>
+        <li>
+          <a href="/case/digest/${session.get('case').id}" 
+             onclick="return checkModification();">
+              ${_('cm_menu_link_digest')}
+          </a>
+        </li>
         % if h.hasRole(['cm_ka', 'admin_ka']):
-        <li><a href="/phase/overview/${session.get('case').id}" onclick="return checkModification();"> ${_('case_cm_phase')}</a></li>
-        <li><a href="/case/organisation/${session.get('case').id}" onclick="return checkModification();"> ${_('cm_menu_link_organisation')}</a></li>
-        <li><a href="/caseappointment/index/${session.get('case').id}" onclick="return checkModification();"> ${_('cm_menu_link_appointment')}</a></li>
-        % if h.hasRole(['cm_ka']):
-          <li><a href="/logbook/index/${session.get('case').id}" onclick="return checkModification();"> Tagebuch</a></li>
+          <li>
+            <a href="/phase/overview/${session.get('case').id}"
+               onclick="return checkModification();">
+                ${_('case_cm_phase')}
+            </a>
+          </li>
+          <li>
+            <a href="/case/organisation/${session.get('case').id}" 
+               onclick="return checkModification();">
+                ${_('cm_menu_link_organisation')}
+            </a>
+          </li>
+          <li>
+            <a href="/caseappointment/index/${session.get('case').id}" 
+               onclick="return checkModification();">
+                ${_('cm_menu_link_appointment')}
+            </a>
+          </li>
+          % if h.hasRole(['cm_ka']):
+            <li>
+              <a href="/logbook/index/${session.get('case').id}" 
+                 onclick="return checkModification();">
+                  Tagebuch
+              </a>
+            </li>
+          % endif
+          % if g.mpuls_config.is_enabled('case-module', 'documents'):
+            <li>
+              <a href="/casedocument/index/${session.get('case').id}" 
+                 onclick="return checkModification();">
+                 ${_('cm_menu_link_documents')}
+              </a>
+            </li>
+          % endif
         % endif
-        <li><a href="/casedocument/index/${session.get('case').id}" onclick="return checkModification();"> ${_('cm_menu_link_documents')}</a></li>
-        % endif
       </ul>
     </div>
   </div>



More information about the Mpuls-commits mailing list