Sha256: c707977874c65c8e1233c1f428fdcc47c5d8a1578df4016d794a4525db9a8bb8

Contents?: true

Size: 949 Bytes

Versions: 9

Compression:

Stored size: 949 Bytes

Contents

<%= content_for :data_controls do %>
	<%= link_to "New Post", new_spud_admin_post_path, :class => "button", :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>Comments</th>
				<th>&nbsp;</th>
			</tr>			
		</thead>
		<tbody>
			<% @posts.each do |post| %>
				<tr>
					<td><%= link_to post.title, edit_spud_admin_post_path(post) %></td>
					<td><%= post.author.full_name %></td>
					<td><%= post.published_at.strftime('%m/%d/%Y') %></td>
					<td><%= post.comments.size %></td>
					<td align="right">
						<%= link_to 'Delete', spud_admin_post_path(post), :method => :delete, :confirm => 'Are you sure you want to delete this post?', :class => 'spud_admin_button_delete' %>
					</td>
				</tr>
			<%end%>
		</tbody>
	</table>
	<div class="spud_admin_pagination">
		<%= will_paginate @posts %>
	</div>
<%end%>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spud_blog-0.5.1 app/views/spud/admin/posts/index.html.erb
spud_blog-0.5.0 app/views/spud/admin/posts/index.html.erb
spud_blog-0.4.0 app/views/spud/admin/posts/index.html.erb
spud_blog-0.2.2 app/views/spud/admin/posts/index.html.erb
spud_blog-0.2.1 app/views/spud/admin/posts/index.html.erb
spud_blog-0.1.3 app/views/spud/admin/posts/index.html.erb
spud_blog-0.1.2 app/views/spud/admin/posts/index.html.erb
spud_blog-0.1.1 app/views/spud/admin/posts/index.html.erb
spud_blog-0.1.0 app/views/spud/admin/posts/index.html.erb