diff options
author | elijah <elijah@riseup.net> | 2013-06-17 01:26:35 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-06-17 01:26:35 -0700 |
commit | 8b7621793fe5f8fa55c955045a71821c53d4759f (patch) | |
tree | 872071d4fd3510d319288b32aeb8cdcdcf741a22 /app/helpers/application_helper.rb | |
parent | 15d48c24e529e2f944b026749c5eb35eb4c5cfa7 (diff) |
start of new ui - css changes, layout changes, navigation changes.
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index de6be79..db70109 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,2 +1,19 @@ module ApplicationHelper + + # + # markup for bootstrap icon + # + # http://twitter.github.io/bootstrap/base-css.html#icons + # + def icon(name, color=nil) + if color.nil? + color_class = nil + elsif color == :black + color_class = 'icon-black' + elsif color == :white + color_class = 'icon-white' + end + "<i class=\"icon-#{name} #{color_class}\"></i> ".html_safe + end + end |