Sha256: 1e947fa975c8cede2652cf7b13fcdb60cd3ae256ba8db309cdf1b7821bdf4597

Contents?: true

Size: 1.03 KB

Versions: 9

Compression:

Stored size: 1.03 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)

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fat_free_crm-0.12.3 app/views/shared/_inline_styles.html.haml
fat_free_crm-0.12.2 app/views/shared/_inline_styles.html.haml
fat_free_crm-0.12.1 app/views/shared/_inline_styles.html.haml
fat_free_crm-0.12.0 app/views/shared/_inline_styles.html.haml
fat_free_crm-0.11.4 app/views/shared/_inline_styles.html.haml
fat_free_crm-0.11.3 app/views/shared/_inline_styles.html.haml
fat_free_crm-0.11.2 app/views/shared/_inline_styles.html.haml
fat_free_crm-0.11.1 app/views/shared/_inline_styles.html.haml
fat_free_crm-0.11.0 app/views/shared/_inline_styles.html.haml