[Mpuls-commits] r5852 - base/trunk/mpulsweb/templates/tags

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Mon Mar 5 12:50:11 CET 2012


Author: ludwig
Date: 2012-03-05 12:50:11 +0100 (Mon, 05 Mar 2012)
New Revision: 5852

Modified:
   base/trunk/mpulsweb/templates/tags/tags.mako
Log:
Issue2738: Replace url_for with url (tags.mako).


Modified: base/trunk/mpulsweb/templates/tags/tags.mako
===================================================================
--- base/trunk/mpulsweb/templates/tags/tags.mako	2012-03-05 10:17:33 UTC (rev 5851)
+++ base/trunk/mpulsweb/templates/tags/tags.mako	2012-03-05 11:50:11 UTC (rev 5852)
@@ -3,8 +3,8 @@
 <%!  import mpulsweb.lib.helper.filters as F %>
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('Selected case documents')}</a></li>
-  <li><a href="${h.url_for(controller='/tags', action='tags', id=session.get('case').id)}">${_('Tags')}</a></li>
+  <li><a href="${h.url(controller='case', action='select', id=session.get('case').id, confirmed=1)}">${_('Selected case documents')}</a></li>
+  <li><a href="${h.url(controller='tags', action='tags', id=session.get('case').id)}">${_('Tags')}</a></li>
 </%def>
 
 <div id="content_header_small">
@@ -25,12 +25,12 @@
       <tr class="${num%2 and 'hl' or ''}">
         <td width="25px" class="middle">
           % if id in c.tags:
-            <img src="${h.url_for('/images/icons/info/ok_22.png')}"
+            <img src="${h.url('/images/icons/info/ok_22.png')}"
                 alt="Ok"
                 width="22"
                 height="22">
           % else:
-            <img src="${h.url_for('/images/icons/info/failure_22.png')}"
+            <img src="${h.url('/images/icons/info/failure_22.png')}"
                 alt="Error"
                 width="22"
                 height="22">
@@ -51,12 +51,12 @@
       <tr class="${num%2 and 'hl' or ''}">
         <td width="25px" class="middle">
           % if id in c.tags:
-            <img src="${h.url_for('/images/icons/info/ok_22.png')}"
+            <img src="${h.url('/images/icons/info/ok_22.png')}"
                 alt="Ok"
                 width="22"
                 height="22">
           % else:
-            <img src="${h.url_for('/images/icons/info/failure_22.png')}"
+            <img src="${h.url('/images/icons/info/failure_22.png')}"
                 alt="Error"
                 width="22"
                 height="22">
@@ -77,7 +77,7 @@
       % for num, id in enumerate(errors):
       <tr class="${num%2 and 'hl' or ''}">
         <td width="25px" class="middle">
-            <img src="${h.url_for('/images/icons/info/failure_22.png')}"
+            <img src="${h.url('/images/icons/info/failure_22.png')}"
                 alt="Error"
                 width="22"
                 height="22">
@@ -91,7 +91,7 @@
       % if len(errors) < 1:
       <tr class="">
         <td width="25px" class="middle">
-            <img src="${h.url_for('/images/icons/info/ok_22.png')}"
+            <img src="${h.url('/images/icons/info/ok_22.png')}"
                 alt="Ok"
                 width="22"
                 height="22">



More information about the Mpuls-commits mailing list