diff options
author | elijah <elijah@riseup.net> | 2013-06-28 20:38:14 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-06-28 20:38:14 -0700 |
commit | 3dbf13f3c53a741341897aa2af36d6ef8dcead2c (patch) | |
tree | 0e239b7981165b2067755cdc1e0f18bf2067ee65 /app/helpers/application_helper.rb | |
parent | 8083bf9ab76e7f253b94979cd9102250d70350d0 (diff) |
new layout for the home buttons
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index a236a0a..1e79990 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -29,4 +29,12 @@ module ApplicationHelper "<i class=\"icon-#{name} #{color_class}\"></i> ".html_safe end + def big_icon(name, color=nil) + "<i class=\"big-icon-#{name}\"></i> ".html_safe + end + + def format_flash(msg) + html_escape(msg).gsub('[b]', '<b>').gsub('[/b]', '</b>').html_safe + end + end |