Skip to content

Commit

Permalink
Better flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joost Hietbrink committed Jun 14, 2012
1 parent 89bf465 commit b930f45
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
9 changes: 8 additions & 1 deletion admin_interface.gemspec
Expand Up @@ -5,7 +5,7 @@

Gem::Specification.new do |s|
s.name = "admin_interface"
s.version = "2.1.13"
s.version = "2.1.14"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Joost Hietbrink"]
Expand Down Expand Up @@ -125,6 +125,7 @@ Gem::Specification.new do |s|
"vendor/assets/images/admin/files/xml.png",
"vendor/assets/images/admin/files/zip.png",
"vendor/assets/images/admin/flag_black.png",
"vendor/assets/images/admin/flag_green.png",
"vendor/assets/images/admin/flag_red.png",
"vendor/assets/images/admin/folder.png",
"vendor/assets/images/admin/folder_open.png",
Expand Down Expand Up @@ -255,6 +256,8 @@ Gem::Specification.new do |s|
s.add_development_dependency(%q<geminabox>, [">= 0"])
s.add_development_dependency(%q<jeweler>, [">= 0"])
s.add_development_dependency(%q<geminabox>, [">= 0"])
s.add_development_dependency(%q<jeweler>, [">= 0"])
s.add_development_dependency(%q<geminabox>, [">= 0"])
s.add_runtime_dependency(%q<kaminari>, [">= 0.12.4"])
s.add_runtime_dependency(%q<ransack>, [">= 0"])
s.add_runtime_dependency(%q<inherited_resources>, [">= 1.2.2"])
Expand Down Expand Up @@ -303,6 +306,8 @@ Gem::Specification.new do |s|
s.add_dependency(%q<geminabox>, [">= 0"])
s.add_dependency(%q<jeweler>, [">= 0"])
s.add_dependency(%q<geminabox>, [">= 0"])
s.add_dependency(%q<jeweler>, [">= 0"])
s.add_dependency(%q<geminabox>, [">= 0"])
s.add_dependency(%q<kaminari>, [">= 0.12.4"])
s.add_dependency(%q<ransack>, [">= 0"])
s.add_dependency(%q<inherited_resources>, [">= 1.2.2"])
Expand Down Expand Up @@ -352,6 +357,8 @@ Gem::Specification.new do |s|
s.add_dependency(%q<geminabox>, [">= 0"])
s.add_dependency(%q<jeweler>, [">= 0"])
s.add_dependency(%q<geminabox>, [">= 0"])
s.add_dependency(%q<jeweler>, [">= 0"])
s.add_dependency(%q<geminabox>, [">= 0"])
s.add_dependency(%q<kaminari>, [">= 0.12.4"])
s.add_dependency(%q<ransack>, [">= 0"])
s.add_dependency(%q<inherited_resources>, [">= 1.2.2"])
Expand Down
3 changes: 2 additions & 1 deletion app/helpers/admin/base_helper.rb
Expand Up @@ -32,8 +32,9 @@ def true_false_image(boolean)
end

def true_false_flag_class(boolean)
return 'icon-flag_black' if boolean.nil?
raise ArgumentError, "Expected a Boolean as argument!" unless boolean.is_a?(FalseClass) || boolean.is_a?(TrueClass)
boolean ? 'icon-flag_red' : 'icon-flag_black'
boolean ? 'icon-flag_green' : 'icon-flag_red'
end

# Overwrites l helper.
Expand Down
2 changes: 1 addition & 1 deletion lib/admin_interface/version.rb
Expand Up @@ -3,7 +3,7 @@ module AdminInterface
module Version
MAJOR = 2
MINOR = 1
PATCH = 13
PATCH = 14
BUILD = nil

STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
Expand Down
Binary file added vendor/assets/images/admin/flag_green.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions vendor/assets/stylesheets/admin_interface.css.scss
Expand Up @@ -29,6 +29,7 @@ div.input {
.icon-crop { background-image: image-url('admin/crop.png'); }
.icon-mail { background-image: image-url('admin/mail.png'); }
.icon-flag_red { background-image: image-url('admin/flag_red.png'); }
.icon-flag_green { background-image: image-url('admin/flag_green.png'); }
.icon-flag_black { background-image: image-url('admin/flag_black.png'); }

tfoot th {
Expand Down

0 comments on commit b930f45

Please sign in to comment.