[Mpuls-commits] r3941 - base/trunk/mpulsweb/templates/casemanagement

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Oct 8 16:47:18 CEST 2010


Author: torsten
Date: 2010-10-08 16:47:17 +0200 (Fri, 08 Oct 2010)
New Revision: 3941

Modified:
   base/trunk/mpulsweb/templates/casemanagement/caselist.mako
Log:
* mpulsweb/templates/casemanagement/caselist.mako: Issue1253: Fixed escaping in case-overview legend.


Modified: base/trunk/mpulsweb/templates/casemanagement/caselist.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/caselist.mako	2010-10-08 13:20:50 UTC (rev 3940)
+++ base/trunk/mpulsweb/templates/casemanagement/caselist.mako	2010-10-08 14:47:17 UTC (rev 3941)
@@ -171,11 +171,10 @@
 <% legend = [] %>
 <div class="container widget info">
   <strong>${_('Legend')}: </strong>
-  % for p in g.mpuls_config.get('phases', 'phases'):
-    ${legend.append("%s: %s" % (g.mpuls_config.get('phases', 'shortdescription')[0][p], g.mpuls_config.get('phases', 'description')[0][p]))}
+  % for p in c.phases:
+    ${legend.append("%s: %s" % (g.mpuls_config.get('phases', 'shortdescription')[0][p.id], p.getDescription()))}
   % endfor
-  ${legend.append("%s: %s" % ( _('Unknown')[0], _('Unknown') ))}
-  ${", ".join(legend)}
+  ${h.literal(", ".join(legend))}
   | <span style="background-image:url('${h.url_for("/images/icons/phase-running-22.png")}'); background-repeat:no-repeat; background-position:1px -2px">
       (&nbsp;&nbsp;&nbsp;)
     </span>: ${_("Running")}, 



More information about the Mpuls-commits mailing list