[Mpuls-commits] r5869 - base/trunk/mpulsweb/templates/dialogs

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Wed Mar 7 15:41:51 CET 2012


Author: ludwig
Date: 2012-03-07 15:41:51 +0100 (Wed, 07 Mar 2012)
New Revision: 5869

Modified:
   base/trunk/mpulsweb/templates/dialogs/confirm.mako
   base/trunk/mpulsweb/templates/dialogs/confirm_case.mako
   base/trunk/mpulsweb/templates/dialogs/confirm_main.mako
   base/trunk/mpulsweb/templates/dialogs/error_case.mako
   base/trunk/mpulsweb/templates/dialogs/error_main.mako
   base/trunk/mpulsweb/templates/dialogs/failed.mako
   base/trunk/mpulsweb/templates/dialogs/notification.mako
   base/trunk/mpulsweb/templates/dialogs/success.mako
   base/trunk/mpulsweb/templates/dialogs/success_case.mako
   base/trunk/mpulsweb/templates/dialogs/success_main.mako
Log:
Issue 2738: Replace url_for with url (templates/dialogs)


Modified: base/trunk/mpulsweb/templates/dialogs/confirm.mako
===================================================================
--- base/trunk/mpulsweb/templates/dialogs/confirm.mako	2012-03-07 14:00:58 UTC (rev 5868)
+++ base/trunk/mpulsweb/templates/dialogs/confirm.mako	2012-03-07 14:41:51 UTC (rev 5869)
@@ -1,7 +1,7 @@
 ## -*- coding: utf-8 -*-
 <%!  import mpulsweb.lib.helper.filters as F %>
 <div class="dialog">
-<h1><img src="${h.url_for('/images/icons/info/question.png')}" alt="${_('attention')}" width="48" height="48">${c.dialog_title or c.confirm_for}</h1>
+<h1><img src="${h.url('/images/icons/info/question.png')}" alt="${_('attention')}" width="48" height="48">${c.dialog_title or c.confirm_for}</h1>
 <p>${h.literal(c.dialog_text or c.question)}</p>
 <a class="button" href="${c.url_yes}">${_('Yes')}</a>
 <a class="button" href="${c.url_no}">${_('No')}</a>

Modified: base/trunk/mpulsweb/templates/dialogs/confirm_case.mako
===================================================================
--- base/trunk/mpulsweb/templates/dialogs/confirm_case.mako	2012-03-07 14:00:58 UTC (rev 5868)
+++ base/trunk/mpulsweb/templates/dialogs/confirm_case.mako	2012-03-07 14:41:51 UTC (rev 5869)
@@ -2,7 +2,7 @@
 <%inherit file="../casemanagement/main.mako" />
 <%!  import mpulsweb.lib.helper.filters as F %>
 <div class="dialog">
-<h1><img src="${h.url_for('/images/icons/info/question.png')}" alt="${_('attention')}" width="48" height="48">${c.dialog_title or c.confirm_for}</h1>
+<h1><img src="${h.url('/images/icons/info/question.png')}" alt="${_('attention')}" width="48" height="48">${c.dialog_title or c.confirm_for}</h1>
 <p>${h.literal(c.dialog_text or c.question)}</p>
 <a class="button" href="${c.url_ok}">${_('Yes')}</a>
 <a class="button" href="${c.url_abort}">${_('No')}</a>

Modified: base/trunk/mpulsweb/templates/dialogs/confirm_main.mako
===================================================================
--- base/trunk/mpulsweb/templates/dialogs/confirm_main.mako	2012-03-07 14:00:58 UTC (rev 5868)
+++ base/trunk/mpulsweb/templates/dialogs/confirm_main.mako	2012-03-07 14:41:51 UTC (rev 5869)
@@ -2,7 +2,7 @@
 <%inherit file="../main.mako" />
 <%!  import mpulsweb.lib.helper.filters as F %>
 <div class="dialog">
-<h1><img src="${h.url_for('/images/icons/info/question.png')}" alt="${_('attention')}" width="48" height="48">${c.dialog_title or c.confirm_for}</h1>
+<h1><img src="${h.url('/images/icons/info/question.png')}" alt="${_('attention')}" width="48" height="48">${c.dialog_title or c.confirm_for}</h1>
 <p>${h.literal(c.dialog_text or c.question)}</p>
 <a class="button" href="${c.url_ok}">${_('Yes')}</a>
 <a class="button" href="${c.url_abort}">${_('No')}</a>

Modified: base/trunk/mpulsweb/templates/dialogs/error_case.mako
===================================================================
--- base/trunk/mpulsweb/templates/dialogs/error_case.mako	2012-03-07 14:00:58 UTC (rev 5868)
+++ base/trunk/mpulsweb/templates/dialogs/error_case.mako	2012-03-07 14:41:51 UTC (rev 5869)
@@ -2,7 +2,7 @@
 <%inherit file="../casemanagement/main.mako" />
 <%!  import mpulsweb.lib.helper.filters as F %>
 <div class="dialog">
-<h1><img src="${h.url_for('/images/icons/info/failure.png')}" alt="${_('Error')}" width="48" height="48">${c.dialog_title or c.confirm_for}</h1>
+<h1><img src="${h.url('/images/icons/info/failure.png')}" alt="${_('Error')}" width="48" height="48">${c.dialog_title or c.confirm_for}</h1>
 <p>${h.literal(c.dialog_text or c.question)}</p>
 <a class="button" href="${c.url_ok}">${_('Ok')}</a>
 </div>

Modified: base/trunk/mpulsweb/templates/dialogs/error_main.mako
===================================================================
--- base/trunk/mpulsweb/templates/dialogs/error_main.mako	2012-03-07 14:00:58 UTC (rev 5868)
+++ base/trunk/mpulsweb/templates/dialogs/error_main.mako	2012-03-07 14:41:51 UTC (rev 5869)
@@ -2,7 +2,7 @@
 <%inherit file="../main.mako" />
 <%!  import mpulsweb.lib.helper.filters as F %>
 <div class="dialog">
-<h1><img src="${h.url_for('/images/icons/info/failure.png')}" alt="${_('Error')}" width="48" height="48">${c.dialog_title or c.confirm_for}</h1>
+<h1><img src="${h.url('/images/icons/info/failure.png')}" alt="${_('Error')}" width="48" height="48">${c.dialog_title or c.confirm_for}</h1>
 <p>${h.literal(c.dialog_text or c.question)}</p>
 <a class="button" href="${c.url_ok}">${_('Ok')}</a>
 </div>

Modified: base/trunk/mpulsweb/templates/dialogs/failed.mako
===================================================================
--- base/trunk/mpulsweb/templates/dialogs/failed.mako	2012-03-07 14:00:58 UTC (rev 5868)
+++ base/trunk/mpulsweb/templates/dialogs/failed.mako	2012-03-07 14:41:51 UTC (rev 5869)
@@ -1,7 +1,7 @@
 ## -*- coding: utf-8 -*-
 <%!  import mpulsweb.lib.helper.filters as F %>
 <div class="dialog" />
-<h1><img src="${h.url_for('/images/icons/info/failure.png')}" alt="${_('Error')}" width="48" height="48"/>${c.dialog_title | F.NA}</h1>
+<h1><img src="${h.url('/images/icons/info/failure.png')}" alt="${_('Error')}" width="48" height="48"/>${c.dialog_title | F.NA}</h1>
 <p>${h.literal(c.dialog_text) | F.NA}</p>
 <a class="button" href="${c.url_ok}">${_('OK')}</a>
 </div>

Modified: base/trunk/mpulsweb/templates/dialogs/notification.mako
===================================================================
--- base/trunk/mpulsweb/templates/dialogs/notification.mako	2012-03-07 14:00:58 UTC (rev 5868)
+++ base/trunk/mpulsweb/templates/dialogs/notification.mako	2012-03-07 14:41:51 UTC (rev 5869)
@@ -1,7 +1,7 @@
 ## -*- coding: utf-8 -*-
 <%!  import mpulsweb.lib.helper.filters as F %>
 <div class="dialog" />
-<h1><img src="${h.url_for('/images/icons/info/alert.png')}" alt="${_('attention')}"/>${c.dialog_title}</h1>
+<h1><img src="${h.url('/images/icons/info/alert.png')}" alt="${_('attention')}"/>${c.dialog_title}</h1>
 <p>${c.dialog_text}</p>
 <a class="button" href="${c.url_ok}">${_('OK')}</a>
 </div>

Modified: base/trunk/mpulsweb/templates/dialogs/success.mako
===================================================================
--- base/trunk/mpulsweb/templates/dialogs/success.mako	2012-03-07 14:00:58 UTC (rev 5868)
+++ base/trunk/mpulsweb/templates/dialogs/success.mako	2012-03-07 14:41:51 UTC (rev 5869)
@@ -1,7 +1,7 @@
 ## -*- coding: utf-8 -*-
 <%!  import mpulsweb.lib.helper.filters as F %>
 <div class="dialog">
-<h1><img src="${h.url_for('/images/icons/info/confirmation.png')}" alt="${_('Resolved')}"
+<h1><img src="${h.url('/images/icons/info/confirmation.png')}" alt="${_('Resolved')}"
     width="48"
     height="48">${c.dialog_title or c.success_for | F.NA}</h1>
 <p>${c.dialog_text or c.success_text | F.NA}</p>

Modified: base/trunk/mpulsweb/templates/dialogs/success_case.mako
===================================================================
--- base/trunk/mpulsweb/templates/dialogs/success_case.mako	2012-03-07 14:00:58 UTC (rev 5868)
+++ base/trunk/mpulsweb/templates/dialogs/success_case.mako	2012-03-07 14:41:51 UTC (rev 5869)
@@ -2,7 +2,7 @@
 <%inherit file="../casemanagement/main.mako" />
 <%!  import mpulsweb.lib.helper.filters as F %>
 <div class="dialog">
-<h1><img src="${h.url_for('/images/icons/info/confirmation.png')}" alt="${_('Confirmation')}" width="48" height="48">${c.dialog_title or c.confirm_for}</h1>
+<h1><img src="${h.url('/images/icons/info/confirmation.png')}" alt="${_('Confirmation')}" width="48" height="48">${c.dialog_title or c.confirm_for}</h1>
 <p>${h.literal(c.dialog_text or c.question)}</p>
 <a class="button" href="${c.url_ok}">${_('Ok')}</a>
 </div>

Modified: base/trunk/mpulsweb/templates/dialogs/success_main.mako
===================================================================
--- base/trunk/mpulsweb/templates/dialogs/success_main.mako	2012-03-07 14:00:58 UTC (rev 5868)
+++ base/trunk/mpulsweb/templates/dialogs/success_main.mako	2012-03-07 14:41:51 UTC (rev 5869)
@@ -2,7 +2,7 @@
 <%inherit file="../main.mako" />
 <%!  import mpulsweb.lib.helper.filters as F %>
 <div class="dialog">
-<h1><img src="${h.url_for('/images/icons/info/confirmation.png')}" alt="${_('Confirmation')}" width="48" height="48">${c.dialog_title or c.confirm_for}</h1>
+<h1><img src="${h.url('/images/icons/info/confirmation.png')}" alt="${_('Confirmation')}" width="48" height="48">${c.dialog_title or c.confirm_for}</h1>
 <p>${h.literal(c.dialog_text or c.question)}</p>
 <a class="button" href="${c.url_ok}">${_('Ok')}</a>
 </div>



More information about the Mpuls-commits mailing list