[Mpuls-commits] r4972 - in base/trunk: . mpulsweb/templates/tags
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed May 18 09:49:10 CEST 2011
Author: torsten
Date: 2011-05-18 09:49:08 +0200 (Wed, 18 May 2011)
New Revision: 4972
Modified:
base/trunk/ChangeLog
base/trunk/mpulsweb/templates/tags/tags.mako
Log:
Fixed Rendering of tag icons in mpuls_s or JMD. use url_for method.
Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog 2011-05-18 06:58:09 UTC (rev 4971)
+++ base/trunk/ChangeLog 2011-05-18 07:49:08 UTC (rev 4972)
@@ -1,3 +1,11 @@
+2011-05-18 Torsten Irländer <torsten.irlaender at intevation.de>
+
+ * mpulsweb/lib/helpers.py: Added docstring to
+ get_sorted_db_from_selectionlist. Make filtering of selectionlist more
+ robust. Fixed handling of c.filter attribute.
+ * mpulsweb/templates/tags/tags.mako: Fixed Rendering of tag icons in
+ mpuls_s or JMD. use url_for method.
+
2011-05-16 Torsten Irländer <torsten.irlaender at intevation.de>
* mpulsweb/lib/helpers.py: Fixed spliting dbname when sorting dblist.
@@ -4,7 +12,7 @@
* mpulsweb/lib/helpers.py: Added filtering based on a regular
expression to the get_db_list.
* mpulsweb/templates/auth/login.mako: Call
- get_sorted_db_from_selectionlist with c.filter (default to None).
+ get_sorted_db_from_selectionlist with c.filter (default to "").
2011-05-12 Torsten Irländer <torsten.irlaender at intevation.de>
Modified: base/trunk/mpulsweb/templates/tags/tags.mako
===================================================================
--- base/trunk/mpulsweb/templates/tags/tags.mako 2011-05-18 06:58:09 UTC (rev 4971)
+++ base/trunk/mpulsweb/templates/tags/tags.mako 2011-05-18 07:49:08 UTC (rev 4972)
@@ -23,12 +23,12 @@
<tr class="${num%2 and 'hl' or ''}">
<td width="25px" class="middle">
% if id in c.tags:
- <img src="/images/icons/info/ok_22.png"
+ <img src="${h.url_for('/images/icons/info/ok_22.png')}"
alt="Ok"
width="22"
height="22">
% else:
- <img src="/images/icons/info/failure_22.png"
+ <img src="${h.url_for('/images/icons/info/failure_22.png')}"
alt="Error"
width="22"
height="22">
@@ -47,12 +47,12 @@
<tr class="${num%2 and 'hl' or ''}">
<td width="25px" class="middle">
% if id in c.tags:
- <img src="/images/icons/info/ok_22.png"
+ <img src="${h.url_for('/images/icons/info/ok_22.png')}"
alt="Ok"
width="22"
height="22">
% else:
- <img src="/images/icons/info/failure_22.png"
+ <img src="${h.url_for('/images/icons/info/failure_22.png')}"
alt="Error"
width="22"
height="22">
@@ -71,7 +71,7 @@
% for num, id in enumerate(errors):
<tr class="${num%2 and 'hl' or ''}">
<td width="25px" class="middle">
- <img src="/images/icons/info/failure_22.png"
+ <img src="${h.url_for('/images/icons/info/failure_22.png')}"
alt="Error"
width="22"
height="22">
@@ -85,8 +85,8 @@
% if len(errors) < 1:
<tr class="">
<td width="25px" class="middle">
- <img src="/images/icons/info/ok_22.png"
- alt="Error"
+ <img src="${h.url_for('/images/icons/info/ok_22.png')}"
+ alt="Ok"
width="22"
height="22">
</td>
More information about the Mpuls-commits
mailing list