forked from spree-contrib/spree_email_to_friend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request spree-contrib#1 from r3ap3r2004/master
Modified to work with deface and multiple domains
- Loading branch information
Showing
5 changed files
with
16 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
class SpreeEmailToFriendHooks < Spree::ThemeSupport::HookListener | ||
insert_after :admin_configurations_menu do | ||
"<%= configurations_menu_item(I18n.t('captcha.captcha_settings'), admin_captcha_settings_path, I18n.t('captcha.manage_keys')) %>" | ||
end | ||
|
||
insert_after :product_description do | ||
%(<p class="email_to_friend"> | ||
<%= link_to(t('email_to_friend.send_to_friend'), email_to_friend_url('product', @product)) %> | ||
</p>) | ||
end | ||
Deface::Override.new(:virtual_path => "admin/configurations/index", | ||
:name => "converted_admin_configurations_menu_384123912", | ||
:insert_after => "[data-hook='admin_configurations_menu'], #admin_configurations_menu[data-hook]", | ||
:text => "<%= configurations_menu_item(I18n.t('captcha.captcha_settings'), admin_captcha_settings_path, I18n.t('captcha.manage_keys')) %>", | ||
:disabled => false) | ||
Deface::Override.new(:virtual_path => "products/show", | ||
:name => "converted_product_description_351026984", | ||
:insert_bottom => "[data-hook='product_description'], #product_description[data-hook]", | ||
:text => "<p class=\"email_to_friend\"> | ||
<%= link_to(t('email_to_friend.send_to_friend'), email_to_friend_url('product', @product)) %> | ||
</p>", | ||
:disabled => false) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters