[Mpuls-commits] r1333 - wasko/branches/2.0/mpulsweb/templates

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Feb 8 17:06:43 CET 2010


Author: torsten
Date: 2010-02-08 17:06:41 +0100 (Mon, 08 Feb 2010)
New Revision: 1333

Modified:
   wasko/branches/2.0/mpulsweb/templates/main.mako
Log:
* mpulsweb/templates/main.mako: Load "/" instead of waska for links to
  blackboard. Set app title from config in navipath and menus. Make
  Casemanagement configurabel (endable/disable)


Modified: wasko/branches/2.0/mpulsweb/templates/main.mako
===================================================================
--- wasko/branches/2.0/mpulsweb/templates/main.mako	2010-02-08 16:03:57 UTC (rev 1332)
+++ wasko/branches/2.0/mpulsweb/templates/main.mako	2010-02-08 16:06:41 UTC (rev 1333)
@@ -15,7 +15,7 @@
   <div id="startmenu">
     <ul>
       <li>
-        <a href="${h.url_for(controller='/waska')}"
+        <a href="${h.url_for(controller='/')}"
            onclick="return checkModification();">
           ${_('sm_menu_link_home')}
         </a>
@@ -50,8 +50,8 @@
 </%def>
 
 <%def name="buildNavipath()">
-  <li><a href="${h.url_for(controller='/waska')}"
-         onclick="return checkModification();">${_('np_root')}</a></li>
+  <li><a href="${h.url_for(controller='/')}"
+         onclick="return checkModification();">${_('%s Start') % h.get_app_title()}</a></li>
 </%def>
 
 <%def name="buildInfofield()">
@@ -69,10 +69,10 @@
     % if h.hasRole(['cm_ka', 'admin_ka']):
       <div class="menu">
         <div class="actions">
-          <h1>${_('np_root')}</h1>
+          <h1>${_('%s Start') % h.get_app_title()}</h1>
           <ul>
             <li>
-              <a href="${h.url_for(controller='/waska')}">
+              <a href="${h.url_for(controller='/')}">
                 ${_('sm_menu_link_home')}
               </a>
             </li>
@@ -100,29 +100,31 @@
     % endif
     <div class="menu">
       <div class="actions">
-        <h1>${_('menu_header_cm')}</h1>
-        <ul>
-          <li>
-            <a href="${h.url_for(controller='/case_overview',
-                                 action='overview', reset=1)}">
-              ${_('menu_cm_link_overview')}
-            </a>
-          </li>
-          % if h.hasRole(['cm_ka']):
+        % if g.mpuls_config.is_enabled('module', 'casemanagement'):
+          <h1>${_('menu_header_cm')}</h1>
+          <ul>
             <li>
-              <a href="${h.url_for(controller='/case', action='new')}">
-                ${_('menu_cm_link_new')}
-              </a> 
+              <a href="${h.url_for(controller='/case_overview',
+                                   action='overview', reset=1)}">
+                ${_('menu_cm_link_overview')}
+              </a>
             </li>
-            % if g.mpuls_config.is_enabled('case-module', 'import'):
+            % if h.hasRole(['cm_ka']):
               <li>
-                <a href="${h.url_for(controller='/case', action='importCase')}">
-                  ${_('menu_cm_link_import')}
-                </a>
+                <a href="${h.url_for(controller='/case', action='new')}">
+                  ${_('menu_cm_link_new')}
+                </a> 
               </li>
+              % if g.mpuls_config.is_enabled('case-module', 'import'):
+                <li>
+                  <a href="${h.url_for(controller='/case', action='importCase')}">
+                    ${_('menu_cm_link_import')}
+                  </a>
+                </li>
+              % endif
             % endif
-          % endif
-        </ul>
+          </ul>
+        % endif
       </div>
     </div>
     % if g.mpuls_config.is_enabled('module', 'evaluation'):
@@ -231,7 +233,7 @@
 </span>
 <div id="header">
   <div class="left" id="logo">
-    <a href="${h.url_for(controller='/waska', action='start')}"
+    <a href="${h.url_for(controller='/', action='start')}"
        onclick="return checkModification();">
       <img src="${h.url_for('/images/logo_ka_75.png')}" 
            alt="Logo Einrichtung" border="0">



More information about the Mpuls-commits mailing list