Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add icons in table rendering

  • Loading branch information...
commit e78b0b641016a2bede31f2e62923de21a14e6f79 1 parent e0429e7
@cbonte authored
View
BIN  css/check.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  css/cross.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
10 templates/parser/table/row.tpl
@@ -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.
Something went wrong with that request. Please try again.