forked from spree-contrib/spree_comments
-
Notifications
You must be signed in to change notification settings - Fork 1
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
30 changed files
with
44 additions
and
38 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
class Spree::Admin::CommentTypesController < Spree::Admin::ResourceController | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class Spree::Admin::CommentsController < Spree::Admin::ResourceController | ||
private | ||
|
||
def location_after_save | ||
:back | ||
end | ||
end |
2 changes: 1 addition & 1 deletion
2
...lers/admin/orders_controller_decorator.rb → ...pree/admin/orders_controller_decorator.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
2 changes: 1 addition & 1 deletion
2
...s/admin/shipments_controller_decorator.rb → ...e/admin/shipments_controller_decorator.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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class Spree::CommentType < ActiveRecord::Base | ||
has_many :comments | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Spree::Order.class_eval do | ||
acts_as_commentable | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Spree::Shipment.class_eval do | ||
acts_as_commentable | ||
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
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 => "admin/shared/_order_tabs", | ||
Deface::Override.new(:virtual_path => "spree/admin/shared/_order_tabs", | ||
:name => "converted_admin_order_tabs_472794197", | ||
:insert_bottom => "[data-hook='admin_order_tabs'], #admin_order_tabs[data-hook]", | ||
:partial => "admin/orders/tab", | ||
:partial => "spree/admin/orders/tab", | ||
: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,5 +1,5 @@ | ||
Deface::Override.new(:virtual_path => "admin/shipments/edit", | ||
:name => "converted_admin_shipment_edit_buttons_233418828", | ||
:insert_after => "[data-hook='admin_shipment_edit_buttons'], #admin_shipment_edit_buttons[data-hook]", | ||
:partial => "admin/shipments/button", | ||
:partial => "spree/admin/shipments/button", | ||
:disabled => false) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
app/views/admin/comment_types/edit.html.erb → ...s/spree/admin/comment_types/edit.html.erb
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,16 +1,16 @@ | ||
<%= render :partial => 'admin/shared/configuration_menu' %> | ||
<%= render :partial => 'spree/admin/shared/configuration_menu' %> | ||
|
||
<%= hook :admin_comment_type_edit_form_header do %> | ||
<h1><%= t(:editing_comment_type) %></h1> | ||
<%= render 'shared/error_messages', :target => @comment_type %> | ||
<%= render 'spree/shared/error_messages', :target => @comment_type %> | ||
<% end %> | ||
|
||
<%= hook :admin_comment_type_edit_form do %> | ||
<%= form_for(@comment_type, :url => object_url, :html => { :method => :put }) do |f| %> | ||
<%= render :partial => 'form', :locals => { :f => f } %> | ||
|
||
<%= hook :admin_comment_type_edit_form_buttons do %> | ||
<%= render :partial => 'admin/shared/edit_resource_links' %> | ||
<%= render :partial => 'spree/admin/shared/edit_resource_links' %> | ||
<% end %> | ||
<% end %> | ||
<% end %> |
2 changes: 1 addition & 1 deletion
2
app/views/admin/comment_types/index.html.erb → .../spree/admin/comment_types/index.html.erb
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
6 changes: 3 additions & 3 deletions
6
app/views/admin/comment_types/new.html.erb → ...ws/spree/admin/comment_types/new.html.erb
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,17 +1,17 @@ | ||
<%= render :partial => 'admin/shared/configuration_menu' %> | ||
<%= render :partial => 'spree/admin/shared/configuration_menu' %> | ||
|
||
<%= hook :admin_comment_type_new_form_header do %> | ||
<h1><%= t(:new_comment_type) %></h1> | ||
|
||
<%= render 'shared/error_messages', :target => @comment_type %> | ||
<%= render 'spree/shared/error_messages', :target => @comment_type %> | ||
<% end %> | ||
|
||
<%= hook :admin_comment_type_new_form do %> | ||
<%= form_for(:comment_type, :url => collection_url) do |f| %> | ||
<%= render :partial => 'form', :locals => { :f => f } %> | ||
|
||
<%= hook :admin_comment_type_new_form_buttons do %> | ||
<%= render :partial => 'admin/shared/new_resource_links' %> | ||
<%= render :partial => 'spree/admin/shared/new_resource_links' %> | ||
<% end %> | ||
<% end %> | ||
<% end %> |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<%= render 'spree/admin/shared/order_tabs', :current => 'Comments' %> | ||
<%= render 'spree/admin/shared/comments', :commentable => @order %> |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
app/views/admin/shared/_comments.html.erb → ...ews/spree/admin/shared/_comments.html.erb
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<%= render 'spree/admin/shared/order_tabs', :current => 'Shipments' %> | ||
<%= render 'spree/admin/shared/comments', {:commentable => @shipment, :comments_for => "Shipment ##{@shipment.number}"} %> |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class PrefixTablesWithSpree < ActiveRecord::Migration | ||
def change | ||
rename_table :comments, :spree_comments | ||
rename_table :comment_types, :spree_comment_types | ||
end | ||
end |