[Mpuls-commits] r2883 - in wasko/branches/1.0: . waskaweb/lib waskaweb/templates/casemanagement
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Jun 4 12:59:10 CEST 2010
Author: roland
Date: 2010-06-04 12:59:08 +0200 (Fri, 04 Jun 2010)
New Revision: 2883
Modified:
wasko/branches/1.0/ChangeLog.txt
wasko/branches/1.0/waskaweb/lib/helpers.py
wasko/branches/1.0/waskaweb/templates/casemanagement/caselist.mako
Log:
show validity name as tooltip on case overview
Modified: wasko/branches/1.0/ChangeLog.txt
===================================================================
--- wasko/branches/1.0/ChangeLog.txt 2010-06-04 10:45:28 UTC (rev 2882)
+++ wasko/branches/1.0/ChangeLog.txt 2010-06-04 10:59:08 UTC (rev 2883)
@@ -1,3 +1,9 @@
+2010-06-04 Roland Geider <roland.geider at intevation.de>
+
+ * waskaweb/lib/helpers.py: new function get_validity_name
+ * waskaweb/templates/casemanagement/caselist.mako: show validity name as
+ tooltip
+
2010-06-03 Roland Geider <roland.geider at intevation.de>
* waskaweb/public/images/icons/status*.png:
Modified: wasko/branches/1.0/waskaweb/lib/helpers.py
===================================================================
--- wasko/branches/1.0/waskaweb/lib/helpers.py 2010-06-04 10:45:28 UTC (rev 2882)
+++ wasko/branches/1.0/waskaweb/lib/helpers.py 2010-06-04 10:59:08 UTC (rev 2883)
@@ -54,6 +54,11 @@
if 4 in tags: return 5 # ESF-Berichterstattung
if 3 in tags: return 4 # Grundsätzlich auswertbar
else: return 0 # nicht wirklich auswertbar
+
+def get_validity_name(tags):
+ if 4 in tags: return 'ESF-Berichterstattung'
+ if 3 in tags: return 'Grundsätzlich auswertbar'
+ else: return 'Nicht auswertbar'
def get_adele_name(id=None):
return EVAL_NAMES.get(str(id), 'Auswertung Nr: %s' % id)
Modified: wasko/branches/1.0/waskaweb/templates/casemanagement/caselist.mako
===================================================================
--- wasko/branches/1.0/waskaweb/templates/casemanagement/caselist.mako 2010-06-04 10:45:28 UTC (rev 2882)
+++ wasko/branches/1.0/waskaweb/templates/casemanagement/caselist.mako 2010-06-04 10:59:08 UTC (rev 2883)
@@ -172,5 +172,10 @@
<%def name="show_case_validity(tags)">
<% validity = h.get_validity(tags) %>
- <img src="/images/icons/validity-${validity}-22.png" border="0" alt="${_('Validity')}" title="${_('Validity')}">
+ <% validity_name = h.get_validity_name(tags) %>
+ <img
+ src = "/images/icons/validity-${validity}-22.png"
+ border = "0"
+ alt = "${_('Validity')}: ${validity_name}"
+ title = "${_('Validity')} : ${validity_name}">
</%def>
\ No newline at end of file
More information about the Mpuls-commits
mailing list