Permalink
Browse files

Add icons in table rendering

  • Loading branch information...
1 parent e0429e7 commit e78b0b641016a2bede31f2e62923de21a14e6f79 @cbonte committed May 26, 2012
Showing with 9 additions and 1 deletion.
  1. BIN css/check.png
  2. BIN css/cross.png
  3. +9 −1 templates/parser/table/row.tpl
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -4,9 +4,17 @@
<%
if data in ['yes']:
style = "class=\"alert-success pagination-centered\""
+ data = 'yes<br /><img src="css/check.png" alt="yes" title="yes" />'
elif data in ['no']:
style = "class=\"alert-error pagination-centered\""
- elif data in ['X', '-', '*']:
+ data = 'no<br /><img src="css/cross.png" alt="no" title="no" />'
+ elif data in ['X']:
+ style = "class=\"pagination-centered\""
+ data = '<img src="css/check.png" alt="X" title="yes" />'
+ elif data in ['-']:
+ style = "class=\"pagination-centered\""
+ data = '&nbsp;'
+ elif data in ['*']:
style = "class=\"pagination-centered\""
else:
style = None

0 comments on commit e78b0b6

Please sign in to comment.