[Mpuls-commits] r3984 - base/trunk/mpulsweb/templates/phase
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Oct 20 11:02:39 CEST 2010
Author: torsten
Date: 2010-10-20 11:02:38 +0200 (Wed, 20 Oct 2010)
New Revision: 3984
Modified:
base/trunk/mpulsweb/templates/phase/phase.mako
Log:
* mpulsweb/templates/phase/phase.mako: Issue939: Get url of images with "url_for". Loading images with "/images/..." fails because of special url routing in JMD.
Modified: base/trunk/mpulsweb/templates/phase/phase.mako
===================================================================
--- base/trunk/mpulsweb/templates/phase/phase.mako 2010-10-20 08:40:06 UTC (rev 3983)
+++ base/trunk/mpulsweb/templates/phase/phase.mako 2010-10-20 09:02:38 UTC (rev 3984)
@@ -60,9 +60,9 @@
</td>
<td class="middle">
% if p1.is_ok() and (c.phases.is_on_path(p1.id, current_phase,True) or c.phases.is_on_path(current_phase, p1.id, True)):
- <img src="/images/icons/info/ok_22.png" alt="Ok">
+ <img src="${h.url_for('/images/icons/info/ok_22.png')}" alt="Ok">
% else:
- <img src="/images/icons/info/failure_22.png" alt="Error">
+ <img src="${h.url_for('/images/icons/info/failure_22.png')}" alt="Error">
% endif
</td>
<td class="note" style="border-bottom: 1pt dotted; border-color: #000;">
@@ -96,9 +96,9 @@
<tr class="${(num%2) and 'hl' or ''}">
<td class="middle">
% if p2.is_ok() and (c.phases.is_on_path(p2.id, current_phase, True) or c.phases.is_on_path(current_phase, p2.id, True)):
- <img src="/images/icons/info/ok_22.png" alt="Ok">
+ <img src="${h.url_for('/images/icons/info/ok_22.png')}" alt="Ok">
% else:
- <img src="/images/icons/info/failure_22.png" alt="Error">
+ <img src="${h.url_for('/images/icons/info/failure_22.png')}" alt="Error">
% endif
</td>
<td class="note">
More information about the Mpuls-commits
mailing list