Sha256: d8559d66efe4e345570714bf518f1aba556e2e01fc13dc608e90d6ff74174375
Contents?: true
Size: 1.04 KB
Versions: 29
Compression:
Stored size: 1.04 KB
Contents
-# 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)
Version data entries
29 entries across 29 versions & 2 rubygems