beef-articles 0.4.7 → 0.4.8

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 CHANGED
@@ -1 +1 @@
1
- 0.4.7
1
+ 0.4.8
@@ -85,7 +85,7 @@ class Admin::ArticlesController < Admin::BaseController
85
85
  end
86
86
 
87
87
  def preview
88
- preview_params = params[:news_article]
88
+ preview_params = params[:article]
89
89
  article = Article.find_by_id(params[:id])
90
90
  preview_params.reverse_merge!(article.attributes) if article
91
91
  session[:article_preview] = preview_params
@@ -5,10 +5,7 @@
5
5
  <dd>
6
6
  <%= "#{link_to(image_tag(article.assets.images.first.public_filename(:thumb)), article)}" unless article.assets.images.first.nil? %>
7
7
  <p class="description"><%=h truncate(article.description, :length => 250) %> <%= link_to "(more)", article_path(article) %></p>
8
- <% if article.allow_comments %>
9
- <p><%= article.comments.count %> <%= link_to 'Leave a comment', article_path(article, :anchor => 'respond') %></p>
10
- <% end %>
11
-
12
- <%= render :partial => 'meta', :locals => {:article => article } %>
8
+
9
+ <%= render :partial => 'meta', :locals => {:article => article } %>
13
10
  </dd>
14
11
  <!-- eo:post -->
@@ -1,3 +1,7 @@
1
1
  <p class="post-meta">
2
- Posted by <%= article.author %> on <%= article.published_at.to_formatted_s(:short_dot) %> by <%= link_to article.author, articles_authored_path(article.updated_by.permalink) %>
2
+ <% if article.comments.any? or article.allow_comments? %>
3
+ <span class="comment"><%= pluralize( article.comments.count, 'Comment' )%></span> |
4
+ <%= link_to 'Leave a comment', article_path(article, :anchor => 'respond') %> |
5
+ <% end -%>
6
+ Posted by <%= article.author %> on <span class="date"><%= article.published_at.to_formatted_s(:short_dot) %></span>
3
7
  </p>
@@ -2,24 +2,16 @@
2
2
  <%= auto_discovery_link_tag :rss, articles_path(:rss) %>
3
3
  <% end %>
4
4
 
5
- <div id="supporting-content">
6
- <h2>Archive</h2>
7
- <%= archive %>
8
-
9
- <%= related_articles(@article) %>
10
- </div>
11
-
12
-
13
5
  <div id="main-content">
14
6
  <h1><%=h @article.title %></h1>
15
- <%= @article.body %>
16
-
17
7
  <%= render :partial => 'meta', :locals => {:article => @article } %>
18
-
19
- <%= gallery @images %>
20
8
 
21
- <%= documents @documents %>
22
-
9
+ <%= @article.body %>
10
+
11
+ <%= gallery @article.assets %>
12
+
13
+ <%= documents @article.assets %>
14
+
23
15
  <h4 id="share-title" title="Share This Article">Share This</h4>
24
16
  <p class="share-links">
25
17
  <%= mail_link @article %> <%= digg_link @article %> <%= delicious_link @article %> <%= facebook_link @article %> <%= stumble_link @article %> <%= twitter_link @article %> <%= reddit_link @article %> <%= technorati_link @article %>
@@ -28,7 +20,7 @@
28
20
  <% if @article.allow_comments? or @article.comments.any? -%>
29
21
  <div id="comments">
30
22
  <h2>Comments</h2>
31
-
23
+
32
24
  <% if @article.comments.empty? -%>
33
25
  <p class="no-comments">There are currently no comments.</p>
34
26
  <% else -%>
@@ -44,3 +36,13 @@
44
36
 
45
37
  </div><!-- eo:main-content -->
46
38
 
39
+ <div id="supporting-content">
40
+ <h2>Archive</h2>
41
+ <%= archive %>
42
+
43
+ <%= related_articles(@article) %>
44
+ </div>
45
+
46
+
47
+
48
+
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{beef-articles}
8
- s.version = "0.4.7"
8
+ s.version = "0.4.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Steve England"]
12
- s.date = %q{2010-02-19}
12
+ s.date = %q{2010-02-24}
13
13
  s.email = %q{steve@wearebeef.co.uk}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
@@ -64,8 +64,8 @@ Gem::Specification.new do |s|
64
64
  s.summary = %q{Article/Blogging engine}
65
65
  s.test_files = [
66
66
  "test/articles_test.rb",
67
- "test/test_helper.rb",
68
- "test/schema.rb"
67
+ "test/schema.rb",
68
+ "test/test_helper.rb"
69
69
  ]
70
70
 
71
71
  if s.respond_to? :specification_version then
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.4.7
4
+ version: 0.4.8
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: 2010-02-19 00:00:00 +00:00
12
+ date: 2010-02-24 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -112,5 +112,5 @@ specification_version: 3
112
112
  summary: Article/Blogging engine
113
113
  test_files:
114
114
  - test/articles_test.rb
115
- - test/test_helper.rb
116
115
  - test/schema.rb
116
+ - test/test_helper.rb