My favorites
▼
|
Sign in
substruct
Open-source Ruby on Rails E-Commerce
Project Home
Downloads
Wiki
Issues
Source
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
24
attachment: substruct_issues_14_19_20_21_22_23.patch
(5.1 KB)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
Index: /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/controllers/admin/products_controller.rb
===================================================================
--- /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/controllers/admin/products_controller.rb (revision 43)
+++ /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/controllers/admin/products_controller.rb (working copy)
@@ -1,4 +1,6 @@
class Admin::ProductsController < Admin::BaseController
+ include Pagination
+
before_filter :set_tags
def index
Index: /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/controllers/admin/tags_controller.rb
===================================================================
--- /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/controllers/admin/tags_controller.rb (revision 43)
+++ /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/controllers/admin/tags_controller.rb (working copy)
@@ -45,7 +45,7 @@
if @tag.save
render(:partial => 'tag_list_row', :locals => {:tag_list_row => @tag})
else
- render_text ""
+ render :text => ""
end
end
@@ -57,13 +57,14 @@
render(:update) do |page|
page.alert "Something went wrong saving your tag.\n\nRemember, tag names have to be unique."
end
- end
- render(:update) do |page|
- page.replace "tag_#{@tag.id}", :partial => 'tag_list_row', :locals => { :tag_list_row => @tag }
- page.sortable(
- 'tag_list',
- :url => { :action => 'update_tag_rank' }
- )
+ else
+ render(:update) do |page|
+ page.replace "tag_#{@tag.id}", :partial => 'tag_list_row', :locals => { :tag_list_row => @tag }
+ page.sortable(
+ 'tag_list',
+ :url => { :action => 'update_tag_rank' }
+ )
+ end
end
end
@@ -73,6 +74,6 @@
tag_id = @tag.id
@tag.destroy
# Render nothing to denote success
- render_text ""
+ render :text => ""
end
end
Index: /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/views/admin/products/_crud_right.rhtml
===================================================================
--- /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/views/admin/products/_crud_right.rhtml (revision 43)
+++ /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/views/admin/products/_crud_right.rhtml (working copy)
@@ -47,7 +47,7 @@
Tags will be assigned when you save this product.
</p>
<p class="info">
- (Button at the bottom of this page)</i>
+ <i>(Button at the bottom of this page)</i>
</p>
<!--
Index: /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/views/admin/products/edit.rhtml
===================================================================
--- /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/views/admin/products/edit.rhtml (revision 43)
+++ /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/views/admin/products/edit.rhtml (working copy)
@@ -1,3 +1,4 @@
+<%= form_tag({:action => 'save', :id => @product}, :multipart => true) %>
<div id="left">
<h1><%= @title %></h1>
<ul class="navigation secondary">
@@ -4,8 +5,6 @@
<li><a href="/admin/products/list/">Back to Product List</a></li>
</ul>
-<%= form_tag({:action => 'save', :id => @product}, :multipart => true) %>
-
<%= render :partial => 'form' %>
<div style="float:right;">
<%= link_to 'Delete This Product', {:action => 'destroy', :id => @product}, :confirm => 'Are you sure?', :class => 'action' %>
Index: /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/views/layouts/admin.rhtml
===================================================================
--- /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/views/layouts/admin.rhtml (revision 43)
+++ /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/views/layouts/admin.rhtml (working copy)
@@ -23,7 +23,7 @@
<%= flash[:notice] %>
</p>
<p>
- <a href="#" class="action" onmousedown="new Effect.BlindUp($('flash'))" />Close</a>
+ <a href="#" class="action" onmousedown="new Effect.BlindUp($('flash'))">Close</a>
</p>
</div>
<script type="text/javascript">
Index: /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/views/layouts/main.rhtml
===================================================================
--- /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/views/layouts/main.rhtml (revision 43)
+++ /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/views/layouts/main.rhtml (working copy)
@@ -115,7 +115,7 @@
<%= get_markdown(flash[:notice]) %>
</div>
<p>
- <a href="#" class="button" style="width:80px;" onmousedown="new Effect.BlindUp($('flash'))" />Close</a>
+ <a href="#" class="button" style="width:80px;" onmousedown="new Effect.BlindUp($('flash'))">Close</a>
</p>
</div>
<script type="text/javascript">
Powered by
Google Project Hosting