app/helpers/referrals_helper.rb
# returns the color in which the referral is presented in the references box
# (pink if the item belongs to a unpublished or locked medium, white otherwise)
returns the color in which the referral is presented in the references box
(pink if the item belongs to a unpublished or locked medium, white otherwise)
returns the color in which the referral is presented in the references box ( pink if the item belongs to a unpublished or locked medium white otherwise )
def item_status_color(referral)
    return '' if referral.item.sort == 'link'
    if !referral.item_published? || referral.item_locked? ||
         referral.item.quarantine
      return 'bg-post-it-pink'
    end
    ''
  end
def item_status_color ( referral ) return '' if referral . item . sort == 'link' if ! referral . item_published? || referral . item_locked? || referral . item . quarantine return 'bg-post-it-pink' end '' end
returns the color in which the referral is presented in the references box
(pink if the item belongs to a unpublished or locked medium, white otherwise)
returns the color in which the referral is presented in the references box ( pink if the item belongs to a unpublished or locked medium white otherwise )
referral
<not_specific>