Skip to content

Commit

Permalink
Fixed #146 Font-awesome version 4.0.3 compatibility problem
Browse files Browse the repository at this point in the history
  • Loading branch information
sshwsfc committed Mar 19, 2014
1 parent ffcac4a commit 27c9187
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xadmin/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def admin_urlname(value, arg):

def boolean_icon(field_val):
return mark_safe(u'<i class="%s" alt="%s"></i>' % (
{True: 'icon-ok-sign text-success', False: 'icon-remove-sign text-error', None: 'icon-question-sign muted'}[field_val], field_val))
{True: 'fa fa-check-circle text-success', False: 'fa fa-times-circl text-error', None: 'fa fa-question-circle muted'}[field_val], field_val))


def display_for_field(value, field):
Expand Down

0 comments on commit 27c9187

Please sign in to comment.