[Mpuls-commits] r5255 - in waska/trunk/waskaweb/templates: casemanagement info privacy

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Aug 22 16:20:12 CEST 2011


Author: torsten
Date: 2011-08-22 16:20:11 +0200 (Mon, 22 Aug 2011)
New Revision: 5255

Modified:
   waska/trunk/waskaweb/templates/casemanagement/aidplan.mako
   waska/trunk/waskaweb/templates/casemanagement/new.mako
   waska/trunk/waskaweb/templates/info/info.mako
   waska/trunk/waskaweb/templates/privacy/list_statements.mako
Log:
Austausch hardcodierter Links gegen url_for Aufrufe um waska auch in einem
subpfad betreiben zu k?\195?\182nnen.


Modified: waska/trunk/waskaweb/templates/casemanagement/aidplan.mako
===================================================================
--- waska/trunk/waskaweb/templates/casemanagement/aidplan.mako	2011-08-19 19:09:03 UTC (rev 5254)
+++ waska/trunk/waskaweb/templates/casemanagement/aidplan.mako	2011-08-22 14:20:11 UTC (rev 5255)
@@ -13,10 +13,10 @@
 <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8">
 <meta http-equiv="content-style-type" content="text/css">
 <meta http-equiv="expires" content="0">
-<link href="/styles/all.css" media="all" rel="stylesheet" type="text/css">
-<link href="/styles/print.css" media="screen" rel="stylesheet" type="text/css">
+<link href="${h.url_for('/styles/all.css')}" media="all" rel="stylesheet" type="text/css">
+<link href="${h.url_for('/styles/print.css')}" media="screen" rel="stylesheet" type="text/css">
 
-<link href="/styles/print.css" media="print" rel="stylesheet" type="text/css">
+<link href="${h.url_for('/styles/print.css')}" media="print" rel="stylesheet" type="text/css">
 <style type="text/css">
 .statement_content {
 	margin-bottom: 5em;

Modified: waska/trunk/waskaweb/templates/casemanagement/new.mako
===================================================================
--- waska/trunk/waskaweb/templates/casemanagement/new.mako	2011-08-19 19:09:03 UTC (rev 5254)
+++ waska/trunk/waskaweb/templates/casemanagement/new.mako	2011-08-22 14:20:11 UTC (rev 5255)
@@ -3,8 +3,8 @@
 
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/">${_('Case Management')}</a></li>
-  <li><a href="/case/new2">${_('Create new case')}</a></li>
+  <li><a href="${h.url_for('/case/')}">${_('Case Management')}</a></li>
+  <li><a href="${h.url_for('/case/new2')}">${_('Create new case')}</a></li>
 </%def>
 
 <div class="waska_form">
@@ -74,24 +74,24 @@
       <table>
         <tr>
           <td class="table_row_h">
-            Arabisch <a href="/documents/ee_ar.pdf">download</a>
+            Arabisch <a href="${h.url_for('/documents/ee_ar.pdf')}">download</a>
           </td>
           <td class="table_row_h">
-            Englisch <a href="/documents/ee_en.pdf">download</a>
+            Englisch <a href="${h.url_for('/documents/ee_en.pdf')}">download</a>
           </td>
         </tr>
         <tr>
-          <td>Polnisch <a href="/documents/ee_pl.pdf">download</a></td>
-          <td>Russisch <a href="/documents/ee_ru.pdf">download</a></td>
+          <td>Polnisch <a href="${h.url_for('/documents/ee_pl.pdf')}">download</a></td>
+          <td>Russisch <a href="${h.url_for('/documents/ee_ru.pdf')}">download</a></td>
         </tr>
         <tr>
           <td class="table_row_h">
-            Türkisch <a href="/documents/ee_tr.pdf">download</a>
+            Türkisch <a href="${h.url_for('/documents/ee_tr.pdf')}">download</a>
           </td>
           <td class="table_row_h">
             Deutsch
             (Einwilligungserklärung ohne Hinweise zu Teilnehmernachweisen)
-            <a href="/documents/ee_de_ohnetn.pdf">download</a>
+            <a href="${h.url_for('/documents/ee_de_ohnetn.pdf')}">download</a>
           </td>
         </tr>
       </table>

Modified: waska/trunk/waskaweb/templates/info/info.mako
===================================================================
--- waska/trunk/waskaweb/templates/info/info.mako	2011-08-19 19:09:03 UTC (rev 5254)
+++ waska/trunk/waskaweb/templates/info/info.mako	2011-08-22 14:20:11 UTC (rev 5255)
@@ -15,7 +15,7 @@
         Büro Stiftung SPI, Schicklerstr. 5-7, 10179 Berlin<br>
         Telefon: + 49 (0) 30 - 390 634 - 70<br>
         Telefax: + 49 (0) 30 - 390 634 - 80<br>
-        Email: <a href="mailto:jugendsozialarbeit at esf-regiestelle.eu">jugendsozialarbeit at esf-regiestelle.eu</a>
+        Email: <a href="${h.url_for('mailto:jugendsozialarbeit at esf-regiestelle.eu')}">jugendsozialarbeit at esf-regiestelle.eu</a>
       </p>
       <p>
         <h3>Finanztechnisches Fördermanagement:</h3>
@@ -23,7 +23,7 @@
         Oranienburger Straße 65, 10117 Berlin<br>
         Telefon: (030) 284 09 - 180<br>
         Telefax: (030) 284 09 - 210<br>
-        Email: <a href="mailto:jugendsozialarbeit at esf-regiestelle.eu">jugendsozialarbeit at esf-regiestelle.eu</a>
+        Email: <a href="${h.url_for('mailto:jugendsozialarbeit at esf-regiestelle.eu')}">jugendsozialarbeit at esf-regiestelle.eu</a>
       </p>
       <p>
         <h3>ARGE ESF - Regiestelle GbR</h3>

Modified: waska/trunk/waskaweb/templates/privacy/list_statements.mako
===================================================================
--- waska/trunk/waskaweb/templates/privacy/list_statements.mako	2011-08-19 19:09:03 UTC (rev 5254)
+++ waska/trunk/waskaweb/templates/privacy/list_statements.mako	2011-08-22 14:20:11 UTC (rev 5255)
@@ -3,8 +3,8 @@
 <%!  import mpulsweb.lib.helper.filters as F %>
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/select/${session.get('case').id}/1">${_('Selected case documents')}</a></li>
-  <li><a href="/privacy/listStatements">${_('List statements')}</a></li>
+  <li><a href="${h.url_for('/case/select/${session.get('case').id}/1')}">${_('Selected case documents')}</a></li>
+  <li><a href="${h.url_for('/privacy/listStatements')}">${_('List statements')}</a></li>
 </%def>
 <h1>${_('Avaliable statements')}</h1>
 <div class="widget container">
@@ -18,16 +18,16 @@
 ${_('PDF version statements for manual completion')}:
 <table>
   <tr>
-    <td class="table_row_h">${_('Arabic')} <a href="/documents/ee_ar.pdf">${_('download')}</a></td>
-    <td class="table_row_h">${_('English')} <a href="/documents/ee_en.pdf">${_('download')}</a></td>
+    <td class="table_row_h">${_('Arabic')} <a href="${h.url_for('/documents/ee_ar.pdf')}">${_('download')}</a></td>
+    <td class="table_row_h">${_('English')} <a href="${h.url_for('/documents/ee_en.pdf')}">${_('download')}</a></td>
   </tr>
   <tr>
-    <td>${_('Polish')} <a href="/documents/ee_pl.pdf">${_('download')}</a></td>
-    <td>${_('Russian')} <a href="/documents/ee_ru.pdf">${_('download')}</a></td>
+    <td>${_('Polish')} <a href="${h.url_for('/documents/ee_pl.pdf')}">${_('download')}</a></td>
+    <td>${_('Russian')} <a href="${h.url_for('/documents/ee_ru.pdf')}">${_('download')}</a></td>
   </tr>
   <tr>
-    <td class="table_row_h">${_('Turkish')} <a href="/documents/ee_tr.pdf">${_('download')}</a></td>
-    <td class="table_row_h">${_('German')} (${_('Written consent without details about participants')}) <a href="/documents/ee_de_ohnetn.pdf">${_('download')}</a></td>
+    <td class="table_row_h">${_('Turkish')} <a href="${h.url_for('/documents/ee_tr.pdf')}">${_('download')}</a></td>
+    <td class="table_row_h">${_('German')} (${_('Written consent without details about participants')}) <a href="${h.url_for('/documents/ee_de_ohnetn.pdf')}">${_('download')}</a></td>
   </tr>
 </table>
 </p>



More information about the Mpuls-commits mailing list