-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
43 additions
and
47 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,9 +1,9 @@ | ||
class Spree::CaptchaConfiguration < Spree::Preferences::Configuration | ||
THEMES = ['red', 'white', 'blackglass', 'clean', 'custom'] | ||
THEMES = %w(red white blackglass clean custom) | ||
|
||
# this keys works for localhost | ||
preference :private_key, :string, :default => '6LfIsgEAAAAAAGfB6Z0lEUtdL3GVuBkRa9cYlMZz' | ||
preference :public_key, :string, :default => '6LfIsgEAAAAAALpT20eiC3RslZQmmCbiNS-AUvSe' | ||
preference :theme, :string, :default => 'red' | ||
preference :use_captcha, :boolean, :default => true | ||
# These keys works for localhost. | ||
preference :private_key, :string, default: '6LfIsgEAAAAAAGfB6Z0lEUtdL3GVuBkRa9cYlMZz' | ||
preference :public_key, :string, default: '6LfIsgEAAAAAALpT20eiC3RslZQmmCbiNS-AUvSe' | ||
preference :theme, :string, default: 'red' | ||
preference :use_captcha, :boolean, default: true | ||
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
10 changes: 5 additions & 5 deletions
10
app/overrides/add_captcha_settings_to_admin_configurations_menu.rb
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,5 +1,5 @@ | ||
Deface::Override.new(:virtual_path => "spree/admin/shared/_configuration_menu", | ||
:name => "add_captcha_admin_option", | ||
:insert_bottom => "[data-hook='admin_configurations_sidebar_menu']", | ||
:text => "<%= configurations_sidebar_menu_item Spree.t('captcha.captcha_settings'), edit_admin_captcha_settings_path %>", | ||
:disabled => false) | ||
Deface::Override.new(virtual_path: "spree/admin/shared/_configuration_menu", | ||
name: "add_captcha_admin_option", | ||
insert_bottom: "[data-hook='admin_configurations_sidebar_menu']", | ||
text: "<%= configurations_sidebar_menu_item Spree.t('captcha.captcha_settings'), edit_admin_captcha_settings_path %>", | ||
disabled: false) |
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,8 +1,6 @@ | ||
Deface::Override.new(:virtual_path => "spree/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 Spree.t('email_to_friend.send_to_friend'), email_to_friend_url('product', @product) %> | ||
</p>", | ||
:disabled => false, | ||
:original => "23a81432df67f93cad7563f7b118d6f901b8e42b") | ||
Deface::Override.new(virtual_path: "spree/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 Spree.t('email_to_friend.send_to_friend'), email_to_friend_path('product', @product) %></p>", | ||
disabled: false, | ||
original: "23a81432df67f93cad7563f7b118d6f901b8e42b") |
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,3 +1,2 @@ | ||
<% object_sym = @object.class.name.tableize %> | ||
<%= render :partial => "#{object_sym}/mail_to_friend", | ||
:locals => {:object => @object, :mail => @mail} %> | ||
<%= render partial: "#{object_sym}/mail_to_friend", locals: { object: @object, mail: @mail } %> |
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