Sha256: 82aff62fb7f5d6ef419f7b08864b75b02790659d4354ba60cb2fec154bc1a1a8

Contents?: true

Size: 720 Bytes

Versions: 2

Compression:

Stored size: 720 Bytes

Contents

class SpreeReviewsHooks < Spree::ThemeSupport::HookListener
  insert_after :product_properties, 'shared/reviews'
  insert_after :inside_head do
    %( <%= stylesheet_link_tag('reviews.css') %> )
  end
  
  insert_after :footer_right do
    %(
    <%= javascript_include_tag("jquery.rating.js") %>
    <%= javascript_tag("$(document).ready(function(){$('.stars').rating({required:true});});") %>
    )
  end

  insert_after :admin_product_sub_tabs do
    %(
       <%= tab(:reviews, :label => 'review_management') %>
     )
  end

  insert_after :admin_configurations_menu do
    %(<%= configurations_menu_item(t('reviews.review_settings'), admin_review_settings_path, t('reviews.manage_review_settings')) %>)
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_reviews-0.50.1 lib/spree_reviews_hook.rb
spree_reviews-0.50.0 lib/spree_reviews_hook.rb