app/views/admin/articles/index.html.erb in beef-articles-0.4.15 vs app/views/admin/articles/index.html.erb in beef-articles-0.4.16

- old
+ new

@@ -23,11 +23,11 @@ </tr> </thead> <tbody> <% @articles.each do |article| %> <tr id="article-<%= article.id %>"> - <td><%= link_to h( article.title ), admin_article_path(article), :title => 'Edit this article' %></td> + <td><%= link_to h( article.title ), [:admin, article], :title => 'Edit this article' %></td> <td><%= content_status(article) %></td> <% if Category.all.any? -%> <td><%=h article.category.title unless article.category.nil? %></td> <% end -%> <td><%= article.author %></td> @@ -35,12 +35,12 @@ <td><%= article.updated_at.to_formatted_s(:short) %></td> <td><%= article.created_at.to_formatted_s(:short) %></td> <td><%= article.published_at.to_formatted_s(:short) unless article.published_at.nil? %></td> <td><%= article.published_to.to_formatted_s(:short) unless article.published_to.nil? %></td> <td><%= link_to pluralize(article.comments.count, 'Comment'), admin_article_comments_path(article), :title => 'Click to view any comments' %></td> - <td><%= link_to 'Show', article_url(article), :class => 'show', :title => 'View this article' if article.published? %></td> - <td><%= link_to 'Edit', admin_article_path(article), :class => 'edit', :title => 'Edit this article' %></td> - <td><%= link_to 'Delete', admin_article_path(article), :confirm => 'Are you sure?', :method => :delete, :class => 'delete', :title => 'Delete this article' %></td> + <td><%= link_to 'Show', article, :class => 'show', :title => 'View this article' if article.published? %></td> + <td><%= link_to 'Edit', [:admin, article], :class => 'edit', :title => 'Edit this article' %></td> + <td><%= link_to 'Delete', [:admin, article], :confirm => 'Are you sure?', :method => :delete, :class => 'delete', :title => 'Delete this article' %></td> </tr> <% end %> </tbody> <tfoot> <tr>