diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index f3aebcf..58f5a85 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -186,4 +186,12 @@ module ApplicationHelper end end + def category_color + if @category.nil? + "" + else + @category.top_ancestor.display_color + end + end + end diff --git a/app/views/layouts/application.rhtml b/app/views/layouts/application.rhtml index f6f5d4c..df5cf9e 100644 --- a/app/views/layouts/application.rhtml +++ b/app/views/layouts/application.rhtml @@ -26,8 +26,8 @@ <%= image_tag 'loading.gif', :id => 'spinner', :style => "display:none; float:right;", :alt => _('Image for Loading...') %> -