Sha256: 94e68ab6cb6bf7d12e753965c5640383c216423be1ad0db87b3aa9d51b102420

Contents?: true

Size: 896 Bytes

Versions: 15

Compression:

Stored size: 896 Bytes

Contents

<%= content_for :data_controls do %>
	<%= link_to "New Post Category", new_spud_admin_post_category_path, :class => "button", :title => "New Post Category" %>
<% end %>

<%=content_for :detail do %>
	<table class="admin-table">
		<thead>
			<tr>
        <th>Name</th>
        <th># Occurances</th>
				<th>&nbsp;</th>
			</tr>			
		</thead>
		<tbody>
			<% @post_categories.each do |category| %>
				<tr>
					<td><%= link_to category.name, edit_spud_admin_post_category_path(category) %></td>
					<td><%= category.posts.size %></td>
					<td align="right">
						<%= link_to 'Delete', spud_admin_post_category_path(category), :method => :delete, :confirm => 'Are you sure you want to delete this category?', :class => 'spud_admin_button_delete' %>
					</td>
				</tr>
			<%end%>
		</tbody>
	</table>
	<div class="spud_admin_pagination">
		<%= will_paginate @post_categories %>
	</div>
<%end%>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
spud_blog-0.7.5 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.7.4 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.7.2 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.7.0 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.6.3 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.6.0 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.5.1 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.5.0 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.4.0 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.2.2 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.2.1 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.1.3 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.1.2 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.1.1 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.1.0 app/views/spud/admin/post_categories/index.html.erb