forked from spree-contrib/spree_comments
-
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.
- Loading branch information
Trung Lê
committed
Aug 31, 2011
1 parent
b3659d2
commit 6af0359
Showing
19 changed files
with
65 additions
and
66 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
"0.11.x" => { :branch => "0-11-x" } | ||
"0.30.x" => { :branch => "0-30-x" } | ||
"0.60.x" => { :branch => "master" } | ||
"0.60.x" => { :branch => "0-60-x" } | ||
"0.70.x" => { :branch => "master" } |
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,2 +1,2 @@ | ||
class Admin::CommentTypesController < Admin::ResourceController | ||
end | ||
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ class Admin::CommentsController < Admin::ResourceController | |
def location_after_save | ||
:back | ||
end | ||
end | ||
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,6 @@ | ||
Admin::OrdersController.class_eval do | ||
def comments | ||
load_object | ||
@comment_types = CommentType.where(:applies_to => "Order") | ||
end | ||
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,6 @@ | ||
Admin::ShipmentsController.class_eval do | ||
def comments | ||
load_object | ||
@comment_types = CommentType.where(:applies_to => "Shipment") | ||
end | ||
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 @@ | ||
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 @@ | ||
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,16 +1,16 @@ | ||
<%= render :partial => '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 %> | ||
<h1><%= t(:editing_comment_type) %></h1> | ||
<%= render '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 } %> | ||
<%= render :partial => 'form', :locals => { :f => f } %> | ||
<%= hook :admin_comment_type_edit_form_buttons do %> | ||
<%= render :partial => "admin/shared/edit_resource_links" %> | ||
<%= render :partial => 'admin/shared/edit_resource_links' %> | ||
<% end %> | ||
<% end %> | ||
<% 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,17 +1,17 @@ | ||
<%= render :partial => 'admin/shared/configuration_menu' %> | ||
<%= hook :admin_comment_type_new_form_header do %> | ||
<h1><%= t("new_comment_type") %></h1> | ||
<h1><%= t(:new_comment_type) %></h1> | ||
|
||
<%= render "shared/error_messages", :target => @comment_type %> | ||
<%= render '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 } %> | ||
<%= render :partial => 'form', :locals => { :f => f } %> | ||
<%= hook :admin_comment_type_new_form_buttons do %> | ||
<%= render :partial => "admin/shared/new_resource_links" %> | ||
<%= render :partial => 'admin/shared/new_resource_links' %> | ||
<% end %> | ||
<% end %> | ||
<% 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<li <%= raw ' class="active"' if (defined? current and current == "Comments") %>> | ||
<%= link_to t("comments"), comments_admin_order_url(@order) %> | ||
<li <%= raw ' class="active"' if (defined? current and current == 'Comments') %>> | ||
<%= link_to t(:comments), comments_admin_order_url(@order) %> | ||
</li> |
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,2 +1,2 @@ | ||
<%= render "admin/shared/order_tabs", :current => "Comments" %> | ||
<%= render "admin/shared/comments", :commentable => @order %> | ||
<%= render 'admin/shared/order_tabs', :current => 'Comments' %> | ||
<%= render 'admin/shared/comments', :commentable => @order %> |
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,4 +1,4 @@ | ||
<li> | ||
<%= button_link_to(t("comments"), comments_admin_order_shipment_url(@order, @shipment)) %> | ||
<%= button_link_to(t(:comments), comments_admin_order_shipment_url(@order, @shipment)) %> | ||
</li> | ||
|
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,2 +1,2 @@ | ||
<%= render "admin/shared/order_tabs", :current => "Shipments" %> | ||
<%= render "admin/shared/comments", {:commentable => @shipment, :comments_for => "Shipment ##{@shipment.number}"} %> | ||
<%= render 'admin/shared/order_tabs', :current => 'Shipments' %> | ||
<%= render '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