[Mpuls-commits] r4059 - base/trunk/mpulsweb/templates/tags
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Oct 28 10:36:09 CEST 2010
Author: torsten
Date: 2010-10-28 10:36:08 +0200 (Thu, 28 Oct 2010)
New Revision: 4059
Modified:
base/trunk/mpulsweb/templates/tags/tags.mako
Log:
* mpulsweb/templates/tags/tags.mako: In section for rule based checks: Only show errors and ignore succeeded checks.
Modified: base/trunk/mpulsweb/templates/tags/tags.mako
===================================================================
--- base/trunk/mpulsweb/templates/tags/tags.mako 2010-10-28 08:11:30 UTC (rev 4058)
+++ base/trunk/mpulsweb/templates/tags/tags.mako 2010-10-28 08:36:08 UTC (rev 4059)
@@ -55,14 +55,11 @@
</table>
<h2>${_('Rule-Check')}</h2>
<table>
- % for num, id in enumerate([tag_id for tag_id in tag_ids if tag_id >= 100 and tag_id < 10000]):
+ <% errors = [tag_id for tag_id in tag_ids if tag_id >= 100 and tag_id < 10000 and tag_id in c.tags] %>
+ % for num, id in enumerate(errors):
<tr class="${num%2 and 'hl' or ''}">
<td width="25px" class="middle">
- % if id not in c.tags:
- <img src="/images/icons/info/ok_22.png" alt="Ok">
- % else:
<img src="/images/icons/info/failure_22.png" alt="Error">
- % endif
</td>
<td class="note">
<strong>${g.taggingConf.get_name(id)}</strong> (id:${id})<br>
@@ -70,4 +67,15 @@
</td>
</tr>
% endfor
+ % if len(errors) < 1:
+ <tr class="">
+ <td width="25px" class="middle">
+ <img src="/images/icons/info/ok_22.png" alt="Error">
+ </td>
+ <td class="note">
+ <strong>${_('Data is consitent!')}</strong><br>
+ ${_('The rule based validation on the data was successfull. No errors found.')}
+ </td>
+ </tr>
+ % endif
</table>
More information about the Mpuls-commits
mailing list