beef-articles 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.4
1
+ 0.4.5
@@ -1,12 +1,14 @@
1
1
  <!-- so:post -->
2
2
  <dt>
3
- <%= link_to(image_tag(article.assets.images.first.public_filename(:medium)), article) unless article.assets.images.first.nil? %><br/><br/>
4
3
  <%= link_to h(article.title), article %>
5
4
  </dt>
6
5
  <dd>
7
- <p class="post-meta">
8
- <span class="date"><%= article.published_at.to_formatted_s(:short_dot) %></span> | posted by <%= link_to_unless article.created_by.nil?, article.author, articles_authored_path( (article.created_by.nil? ? '' : article.created_by.permalink) ) %>
9
- </p>
10
- <p><%=h article.description %></p>
6
+ <%= "#{link_to(image_tag(article.assets.images.first.public_filename(:thumb)), article)}" unless article.assets.images.first.nil? %>
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 } %>
11
13
  </dd>
12
14
  <!-- eo:post -->
@@ -0,0 +1,3 @@
1
+ <p class="post-meta">
2
+ Posted by <%= article.author %> on <%= article.published_at.to_formatted_s(:short_dot) %>
3
+ </p>
@@ -2,10 +2,12 @@
2
2
  <%= auto_discovery_link_tag :rss, {:tag => params[:tag], :page => nil, :format => 'rss'} unless params[:year] %>
3
3
  <% end %>
4
4
 
5
- <h1>Articles</h1>
6
-
7
- <%= link_to('RSS', {:tag => params[:tag], :page => nil, :format => 'rss'}, :class => 'rss') unless params[:year] %>
8
5
 
6
+ <div id="supporting-content">
7
+ <h2>Archive</h2>
8
+ <%= archive %>
9
+ <%= link_to ('RSS', {:tag => params[:tag], :page => nil, :format => 'rss'}, :class => 'rss') unless params[:year] %>
10
+ </div>
9
11
 
10
12
  <!-- so:main-content -->
11
13
  <div id="main-content">
@@ -14,28 +16,7 @@
14
16
  <%= render :partial => @articles %>
15
17
  </dl>
16
18
 
17
- <%= will_paginate %>
19
+ <%= will_paginate(:previous_label => 'previous', :next_label => 'next') %>
18
20
 
19
21
  </div>
20
22
  <!-- eo:main-content -->
21
-
22
- <!-- so:supporting-content -->
23
- <div id="sidebar">
24
- <%= article_categories %>
25
- <%= article_authors %>
26
-
27
- <h2>Archive</h2>
28
- <%= archive %>
29
-
30
- <h2>Latest Posts</h2>
31
- <%= recent_articles %>
32
-
33
- <h2>Tagcloud</h2>
34
- <ul class="tag-cloud">
35
- <% @tags.each do |tag| %>
36
- <li><%= link_to tag.name, articles_tagged_path( tag.name ), :class => "css-class-#{tag.count}" %></li>
37
- <% end %>
38
- </ul>
39
-
40
- </div>
41
- <!-- eo:supporting-content -->
@@ -1,22 +1,26 @@
1
1
  <% content_for 'header' do %>
2
2
  <%= auto_discovery_link_tag :rss, articles_path(:rss) %>
3
3
  <% end %>
4
- <h1><%=h @article.title %></h1>
5
- <%= link_to 'RSS', articles_path(:rss), :class => 'rss' %>
4
+
5
+ <div id="supporting-content">
6
+ <h2>Archive</h2>
7
+ <%= archive %>
8
+
9
+ <%= related_articles(@article) %>
10
+ </div>
11
+
6
12
 
7
13
  <div id="main-content">
8
- <p class="post-meta">
9
- on <span class="date"><%= @article.published_at.to_formatted_s(:short_dot) %></span> by <%= link_to @article.author, articles_authored_path(@article.created_by.permalink) %>
10
- </p>
14
+ <h1><%=h @article.title %></h1>
11
15
  <%= @article.body %>
12
16
 
13
- <h3>Gallery</h3>
17
+ <%= render :partial => 'meta', :locals => {:article => @article } %>
18
+
14
19
  <%= gallery @article.assets %>
15
20
 
16
- <h3>Documents</h3>
17
21
  <%= documents @article.assets %>
18
22
 
19
- <a href="#" id="share-title" title="Share This Article">Share This</a>
23
+ <h4 id="share-title" title="Share This Article">Share This</h4>
20
24
  <p class="share-links">
21
25
  <%= mail_link @article %> <%= digg_link @article %> <%= delicious_link @article %> <%= facebook_link @article %> <%= stumble_link @article %> <%= twitter_link @article %> <%= reddit_link @article %> <%= technorati_link @article %>
22
26
  </p>
@@ -33,7 +37,6 @@
33
37
 
34
38
  <% if @article.allow_comments? %>
35
39
  <h2 id="respond">Leave a Comment</h2>
36
- <p>*Required fields</p>
37
40
  <%= render :partial => 'comments/form', :locals => { :commentable => @article } %>
38
41
  <% end -%>
39
42
  </div><!-- eo:comments -->
@@ -41,17 +44,3 @@
41
44
 
42
45
  </div><!-- eo:main-content -->
43
46
 
44
- <div id="sidebar">
45
- <%= related_articles(@article) %>
46
-
47
- <h2>Latest Posts</h2>
48
- <%= recent_articles %>
49
-
50
- <%= article_categories %>
51
-
52
- <%= article_authors %>
53
-
54
- <h2>Archive</h2>
55
- <%= archive %>
56
-
57
- </div><!-- eo:sidebar -->
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.4
4
+ version: 0.4.5
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-02 00:00:00 +00:00
12
+ date: 2010-02-17 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -65,6 +65,7 @@ files:
65
65
  - app/views/admin/categories/show.html.erb
66
66
  - app/views/admin/comments/index.html.erb
67
67
  - app/views/articles/_article.html.erb
68
+ - app/views/articles/_meta.html.erb
68
69
  - app/views/articles/index.html.erb
69
70
  - app/views/articles/index.rss.builder
70
71
  - app/views/articles/show.html.erb