[Mpuls-commits] r3915 - in base/trunk: . mpulsweb/public/images/icons/info mpulsweb/templates/tags

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Oct 7 10:44:03 CEST 2010


Author: torsten
Date: 2010-10-07 10:44:01 +0200 (Thu, 07 Oct 2010)
New Revision: 3915

Added:
   base/trunk/mpulsweb/public/images/icons/info/ok_22.png
Modified:
   base/trunk/ChangeLog
   base/trunk/mpulsweb/templates/tags/tags.mako
Log:
Use icons instead of colors to indicate missing tags in tag overview


Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog	2010-10-07 07:31:00 UTC (rev 3914)
+++ base/trunk/ChangeLog	2010-10-07 08:44:01 UTC (rev 3915)
@@ -1,5 +1,12 @@
 2010-10-07  Torsten Irlaender <torsten at intevation.de>
 
+	* mpulsweb/public/images/icons/info/ok_22.png: New icon for
+	"ok"-status.
+	* mpulsweb/templates/tags/tags.mako: Use icons instead of colors in
+	tag overview to indicte missing tags.
+
+2010-10-07  Torsten Irlaender <torsten at intevation.de>
+
 	* mpulsweb/templates/casemanagement/search.mako: Issue1260: Fixed
 	listing of phases in search.
 

Added: base/trunk/mpulsweb/public/images/icons/info/ok_22.png
===================================================================
(Binary files differ)


Property changes on: base/trunk/mpulsweb/public/images/icons/info/ok_22.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Modified: base/trunk/mpulsweb/templates/tags/tags.mako
===================================================================
--- base/trunk/mpulsweb/templates/tags/tags.mako	2010-10-07 07:31:00 UTC (rev 3914)
+++ base/trunk/mpulsweb/templates/tags/tags.mako	2010-10-07 08:44:01 UTC (rev 3915)
@@ -18,11 +18,15 @@
 %>
 ##<h2>${_('Internal Tags')}</h2>
 <h2>${_('Evaluation')}</h2>
-<table>
+<table id="tags">
   % for num, id in enumerate([tag_id for tag_id in tag_ids if tag_id > 0 and tag_id < 10]):
   <tr class="${num%2 and 'hl' or ''}">
-    <td width="15px" class="${id in c.tags and 'ok' or 'error'}">
-      &nbsp;
+    <td width="25px" class="middle">
+      % if id 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>
@@ -35,8 +39,12 @@
 <table>
   % for num, id in enumerate([tag_id for tag_id in tag_ids if tag_id >= 10 and tag_id < 100]):
   <tr class="${num%2 and 'hl' or ''}">
-    <td width="15px" class="${id in c.tags and 'ok' or 'error'}">
-      &nbsp;
+    <td width="25px" class="middle">
+      % if id 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>
@@ -49,8 +57,12 @@
 <table>
   % for num, id in enumerate([tag_id for tag_id in tag_ids if tag_id >= 100 and tag_id < 10000]):
   <tr class="${num%2 and 'hl' or ''}">
-    <td width="15px" class="${id not in c.tags and 'ok' or 'error'}">
-      &nbsp;
+    <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>



More information about the Mpuls-commits mailing list