[Mpuls-commits] r2866 - base/trunk/mpulsweb/templates/casemanagement
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Jun 3 11:41:51 CEST 2010
Author: torsten
Date: 2010-06-03 11:41:49 +0200 (Thu, 03 Jun 2010)
New Revision: 2866
Modified:
base/trunk/mpulsweb/templates/casemanagement/caselist.mako
Log:
Use url_for function to build images urls
Modified: base/trunk/mpulsweb/templates/casemanagement/caselist.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/caselist.mako 2010-06-03 09:34:13 UTC (rev 2865)
+++ base/trunk/mpulsweb/templates/casemanagement/caselist.mako 2010-06-03 09:41:49 UTC (rev 2866)
@@ -98,6 +98,7 @@
% endfor
<td>
${get_state_icon(case)}
+ ${get_validity_icon(case)}
${get_phase_icon(case)}
</td>
<td>
@@ -108,7 +109,7 @@
<%def name="get_validity_icon(case)">
% for validity in g.mpuls_config.get('validities', 'enabled'):
% if validity['id'] == case.getValidity():
- <img src="/images/icons/${validity['icon']}" alt="${validity['name']}" title="${validity['name']} ">
+ <img src="${h.url_for('/images/icons/%s' % validity['icon'])}" alt="${validity['name']}" title="${validity['name']} ">
% endif
% endfor
</%def>
@@ -116,7 +117,6 @@
<%def name="get_phase_icon(case)">
<% phase = case.getState().getPhase() %>
<% running = not phase%2 %>
- ${self.get_validity_icon(case)}
% if phase == -1:
${g.mpuls_config.get('phases', 'shortdescription')[0]['-1']}
% else:
@@ -124,11 +124,11 @@
% if str(phase) in p:
% if running:
<span title="${g.mpuls_config.get('phases', 'description')[0][k]}">
- <img src="/images/icons/validity-background.png" alt="">
+ <img src="${h.url_for('/images/icons/validity-background.png')}" alt="">
</span>
<span style="margin-left:-16px;" title="${g.mpuls_config.get('phases', 'description')[0][k]}">
- <img src="/images/icons/phase-running-22.png" alt="">
+ <img src="${h.url_for('/images/icons/phase-running-22.png')}" alt="">
</span>
<span style="color:#2e3436;font-size:large;margin-left:-27px;padding-right:9px;" title="${g.mpuls_config.get('phases', 'description')[0][k]}">
@@ -136,11 +136,11 @@
</span>
% else:
<span title="${g.mpuls_config.get('phases', 'description')[0][k]}">
- <img src="/images/icons/validity-background.png" alt="">
+ <img src="${h.url_for('/images/icons/validity-background.png')}" alt="">
</span>
<span style="margin-left:-16px;" title="${g.mpuls_config.get('phases', 'description')[0][k]}">
- <img src="/images/icons/phase-stop-22.png" alt="">
+ <img src="${h.url_for('/images/icons/phase-stop-22.png')}" alt="">
</span>
<span style="color:#2e3436;font-size:large;margin-left:-27px;padding-right:9px;" title="${g.mpuls_config.get('phases', 'description')[0][k]}">
More information about the Mpuls-commits
mailing list