Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

Commit f126166

Browse files
committed
Get rid of transparent.gif in favour of a <i>
1 parent 9b4d677 commit f126166

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed
-42 Bytes
Binary file not shown.

app/assets/stylesheets/active_admin/active_admin_globalize_flags.sass

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
// Override flag positions in your stylesheet if you want to change default flags
55
.flag
6+
display: inline-block
67
width: 16px
78
height: 11px
89
vertical-align: middle

lib/active_admin/view_helpers/flag_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module FlagHelper
66

77
# Return an image tag with background of given locale
88
def flag_icon(locale)
9-
image_tag('active_admin/transparent.gif', class: "flag flag-#{locale}")
9+
content_tag :i, '', class: "flag flag-#{locale}"
1010
end
1111

1212
end

0 commit comments

Comments
 (0)