app/helpers/cms/fortress/application_helper.rb in cms-fortress-1.1.5 vs app/helpers/cms/fortress/application_helper.rb in cms-fortress-1.1.6
- old
+ new
@@ -1,9 +1,14 @@
module Cms
module Fortress
module ApplicationHelper
+ def role_display(command)
+ res = command.split(".")
+ raw "#{content_tag(:strong, res.first.titleize) } / #{ res[1..-1].map {|r| r.titleize}.join(" - ") }"
+ end
+
def theme_name
Cms::Fortress.configuration.theme.to_s
end
def default_theme?