app/views/spud/admin/news_posts/index.html.erb in spud_blog-0.8.7 vs app/views/spud/admin/news_posts/index.html.erb in spud_blog-0.8.8

- old
+ new

@@ -13,10 +13,18 @@ </tr> </thead> <tbody> <% @posts.each do |post| %> <tr> - <td><%= link_to post.title, edit_spud_admin_news_post_path(post) %></td> + + <td> + <%= link_to edit_spud_admin_news_path(post) do %> + <%=post.title%> + <%if !post.visible%> + <span class="badge">Draft</span> + <%end%> + <%end%> + </td> <td><%= post.author.full_name %></td> <td><%= link_to(post.published_at.strftime('%m/%d/%Y'), news_post_path(post.url_name)) %></td> <td align="right"> <%= link_to 'Delete', spud_admin_news_post_path(post), :method => :delete, :confirm => 'Are you sure you want to delete this post?', :class => 'btn btn-danger' %> </td> \ No newline at end of file