Sha256: d78e6bdafbfd10e4dfa2c667308fc00a434706f16f0cc575815b4e32f68a23e5
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
<%= content_for :data_controls do %> <%= link_to "New Post", new_spud_admin_news_post_path, :class => "btn btn-primary", :title => "New Post" %> <% end %> <%=content_for :detail do %> <table class="admin-table"> <thead> <tr> <th>Title</th> <th>Author</th> <th>Published At</th> <th> </th> </tr> </thead> <tbody> <% @posts.each do |post| %> <tr> <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> </tr> <%end%> </tbody> </table> <div class="spud_admin_pagination"> <%= will_paginate @posts %> </div> <%end%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spud_blog-0.8.8 | app/views/spud/admin/news_posts/index.html.erb |