Sha256: 87bf1e9a3c3e7b994763751249024543fe3c766246313175bce0a585296cff3e
Contents?: true
Size: 731 Bytes
Versions: 2
Compression:
Stored size: 731 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 "news" news_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 news_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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fly_admin-0.0.8 | app/helpers/fly_admin/imbs/application_helper.rb |
fly_admin-0.0.7 | app/helpers/fly_admin/imbs/application_helper.rb |