beef-articles 0.3.13 → 0.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/app/views/admin/articles/index.html.erb +3 -0
- data/app/views/admin/comments/index.html.erb +4 -1
- data/articles.gemspec +2 -2
- data/config/routes.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.14
|
@@ -17,6 +17,7 @@
|
|
17
17
|
<%= sortable_table_header :name => "Created", :sort => "created_at" %>
|
18
18
|
<%= sortable_table_header :name => "Published At", :sort => "published_at" %>
|
19
19
|
<%= sortable_table_header :name => "Published To", :sort => "published_to" %>
|
20
|
+
<%= sortable_table_header :name => "Comments", :sort => "comments" %>
|
20
21
|
<th colspan="3">Actions</th>
|
21
22
|
</tr>
|
22
23
|
</thead>
|
@@ -31,6 +32,7 @@
|
|
31
32
|
<td><%= article.created_at.strftime('%d %b') %></td>
|
32
33
|
<td><%= article.published_at.strftime('%d %b') unless article.published_at.nil? %></td>
|
33
34
|
<td><%= article.published_to.strftime('%d %b') unless article.published_to.nil? %></td>
|
35
|
+
<td><%= link_to pluralize(article.comments.count, 'Comment'), admin_article_comments_path(article) %></td>
|
34
36
|
<td><%= link_to 'Show', article_url(article), :class => 'show' if article.published? %></td>
|
35
37
|
<td><%= link_to 'Edit', admin_article_path(article), :class => 'edit' %></td>
|
36
38
|
<td><%= link_to 'Destroy', admin_article_path(article), :confirm => 'Are you sure?', :method => :delete, :class => 'delete' %></td>
|
@@ -47,6 +49,7 @@
|
|
47
49
|
<%= sortable_table_header :name => "Created", :sort => "created_at" %>
|
48
50
|
<%= sortable_table_header :name => "Published At", :sort => "published_at" %>
|
49
51
|
<%= sortable_table_header :name => "Published To", :sort => "published_to" %>
|
52
|
+
<%= sortable_table_header :name => "Comments", :sort => "comments" %>
|
50
53
|
<th colspan="3">Actions</th>
|
51
54
|
</tr>
|
52
55
|
</tfoot>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<h1>Listing comments
|
1
|
+
<h1>Listing comments<%= " for \"#{@commentable.title}\"" if @commentable -%></h1>
|
2
2
|
|
3
3
|
<table>
|
4
4
|
<thead>
|
@@ -9,6 +9,7 @@
|
|
9
9
|
<%= sortable_table_header :name => "Name", :sort => "name" %>
|
10
10
|
<%= sortable_table_header :name => "Comment", :sort => "comment" %>
|
11
11
|
<%= sortable_table_header :name => "Created", :sort => "created_at" %>
|
12
|
+
<th>Actions</th>
|
12
13
|
</tr>
|
13
14
|
</thead>
|
14
15
|
<tbody>
|
@@ -28,6 +29,8 @@
|
|
28
29
|
<tr>
|
29
30
|
<%= sortable_table_header :name => "Name", :sort => "name" %>
|
30
31
|
<%= sortable_table_header :name => "Comment", :sort => "comment" %>
|
32
|
+
<%= sortable_table_header :name => "Created", :sort => "created_at" %>
|
33
|
+
<th>Actions</th>
|
31
34
|
</tr>
|
32
35
|
</tfoot>
|
33
36
|
</table>
|
data/articles.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{articles}
|
5
|
-
s.version = "0.3.
|
5
|
+
s.version = "0.3.14"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Steve England"]
|
9
|
-
s.date = %q{2009-09-
|
9
|
+
s.date = %q{2009-09-02}
|
10
10
|
s.email = %q{steve@wearebeef.co.uk}
|
11
11
|
s.extra_rdoc_files = [
|
12
12
|
"LICENSE",
|
data/config/routes.rb
CHANGED
@@ -21,7 +21,7 @@ ActionController::Routing::Routes.draw do |map|
|
|
21
21
|
|
22
22
|
map.namespace(:admin) do |admin|
|
23
23
|
admin.resources :categories
|
24
|
-
admin.resources :articles, :member => { :preview => :put }, :collection => { :preview => :post }
|
24
|
+
admin.resources :articles, :has_many => :comments, :member => { :preview => :put }, :collection => { :preview => :post }
|
25
25
|
admin.resources :comments, :only => [:index, :destroy]
|
26
26
|
end
|
27
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beef-articles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve England
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-09-
|
12
|
+
date: 2009-09-02 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|