Sha256: 2c5d34e443ee88569182a398e2b1b75e1a851df90cd0b3e0d6447aa5153256b2
Contents?: true
Size: 743 Bytes
Versions: 1
Compression:
Stored size: 743 Bytes
Contents
module FlyAdmin::Imbs::ApplicationHelper # If anonymous - link to landing page # If customer/admin/etc - link to item page (video#show, article#show etc) def item_link(*args) case FlyAdmin.paysite_type when "serials" serials_item_link(*args) when "articles" articles_item_link(*args) end end def serials_item_link(category, season, video) if user_signed_in? category_season_video_path(category, season, video) else category_season_video_start_path(category, season, video) end end def articles_item_link(category, article) if user_signed_in? category_article_path(category, article) else category_start_path(category, article) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fly_admin-0.0.6 | app/helpers/fly_admin/imbs/application_helper.rb |