Sha256: cd868e61700760d8ed14f60f195090dff3fb9409edeec17f1aa86c23204d27b2

Contents?: true

Size: 940 Bytes

Versions: 8

Compression:

Stored size: 940 Bytes

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>&nbsp;</th>
			</tr>			
		</thead>
		<tbody>
			<% @posts.each do |post| %>
				<tr>
					<td><%= link_to post.title, edit_spud_admin_news_post_path(post) %></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

8 entries across 8 versions & 1 rubygems

Version Path
spud_blog-0.8.7 app/views/spud/admin/news_posts/index.html.erb
spud_blog-0.8.6 app/views/spud/admin/news_posts/index.html.erb
spud_blog-0.8.5 app/views/spud/admin/news_posts/index.html.erb
spud_blog-0.8.4 app/views/spud/admin/news_posts/index.html.erb
spud_blog-0.8.3 app/views/spud/admin/news_posts/index.html.erb
spud_blog-0.8.2 app/views/spud/admin/news_posts/index.html.erb
spud_blog-0.8.1 app/views/spud/admin/news_posts/index.html.erb
spud_blog-0.8.0 app/views/spud/admin/news_posts/index.html.erb