beef-articles 0.4.0 → 0.4.1

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.0
1
+ 0.4.1
@@ -28,14 +28,14 @@
28
28
  <td><%= content_status(article) %></td>
29
29
  <td><%= article.author %></td>
30
30
  <td><%= article.editor %></td>
31
- <td><%= article.updated_at.strftime('%d %b') %></td>
32
- <td><%= article.created_at.strftime('%d %b') %></td>
33
- <td><%= article.published_at.strftime('%d %b') unless article.published_at.nil? %></td>
34
- <td><%= article.published_to.strftime('%d %b') unless article.published_to.nil? %></td>
31
+ <td><%= article.updated_at.to_formatted_s(:short) %></td>
32
+ <td><%= article.created_at.to_formatted_s(:short) %></td>
33
+ <td><%= article.published_at.to_formatted_s(:short) unless article.published_at.nil? %></td>
34
+ <td><%= article.published_to.to_formatted_s(:short) unless article.published_to.nil? %></td>
35
35
  <td><%= link_to pluralize(article.comments.count, 'Comment'), admin_article_comments_path(article) %></td>
36
36
  <td><%= link_to 'Show', article_url(article), :class => 'show' if article.published? %></td>
37
37
  <td><%= link_to 'Edit', admin_article_path(article), :class => 'edit' %></td>
38
- <td><%= link_to 'Destroy', admin_article_path(article), :confirm => 'Are you sure?', :method => :delete, :class => 'delete' %></td>
38
+ <td><%= link_to 'Delete', admin_article_path(article), :confirm => 'Are you sure?', :method => :delete, :class => 'delete' %></td>
39
39
  </tr>
40
40
  <% end %>
41
41
  </tbody>
@@ -25,10 +25,12 @@
25
25
  <%= f.label :tag_list, 'Keywords (used by search engines) & Tags - comma separated*' %><br />
26
26
  <%= f.text_field :tag_list, :class => 'long' %>
27
27
  </p>
28
+ <% if Category.exists? %>
28
29
  <p>
29
30
  <%= f.label :category %>
30
31
  <%= f.collection_select :category_id, Category.all, :id, :title, :prompt => true %>
31
32
  </p>
33
+ <% end -%>
32
34
  <p>
33
35
  <%= f.label :allow_comments %><br />
34
36
  <%= f.check_box :allow_comments %>
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.0
4
+ version: 0.4.1
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-11-19 00:00:00 +00:00
12
+ date: 2009-12-22 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency