-# Generate dynamic styles that get embedded on the page. - content_for :styles do - if models.include?(:account) - Setting.account_category_color.each do |key, value| li.account .#{key} { background:#{value}; } - if models.include?(:campaign) - Setting.campaign_status_color.each do |key, value| li.campaign .#{key} { background:#{value}; } - if models.include?(:lead) - Setting.lead_status_color.each do |key, value| li.lead .#{key} { background:#{value}; } - if models.include?(:opportunity) - Setting.opportunity_stage_color.each do |key, value| li.opportunity .#{key} { background:#{value}; } - if models.include?(:task) - Setting.task_category_color.each do |key, value| li.task .#{key} { background:#{value}; } - if models.include?(:user) li.user .admin { background: lightblue; } li.user .suspended { background: gainsboro; } li.user .active { background: lightgreen; } li.user .signed_up { background: lightsalmon; } = hook(:inline_styles, self, local_assigns)