app/helpers/referrals_helper.rb
# returns the referrable's medium's/item's teachable scope (if present)
# in the form required by the teachable selector in the referral form,
# e.g. as 'Lecture-42', 'Course-5' etc.
returns the referrable's medium's/item's teachable scope (if present)
in the form required by the teachable selector in the referral form,
e.g.
returns the referrable ' s medium ' s / item ' s teachable scope ( if present ) in the form required by the teachable selector in the referral form e . g .
def item_status_color_value(referral)
    return 'white' if referral.item.sort == 'link'
    return '#fad1df' if !referral.item_published? || referral.item_locked?
    'white'
  end
def item_status_color_value ( referral ) return 'white' if referral . item . sort == 'link' return '#fad1df' if ! referral . item_published? || referral . item_locked? 'white' end
returns the referrable's medium's/item's teachable scope (if present)
in the form required by the teachable selector in the referral form,
e.g.
returns the referrable ' s medium ' s / item ' s teachable scope ( if present ) in the form required by the teachable selector in the referral form e . g .
referral
<not_specific>