Sha256: 7689f739c03359abfff807127be1d3efdb41b7691870ddc4e7ab822067a8c03f

Contents?: true

Size: 895 Bytes

Versions: 17

Compression:

Stored size: 895 Bytes

Contents

<%= content_for :data_controls do %>
	<%= link_to "New Post Category", new_spud_admin_post_category_path, :class => "btn btn-primary", :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 => 'btn btn-danger' %>
					</td>
				</tr>
			<%end%>
		</tbody>
	</table>
	<div class="spud_admin_pagination">
		<%= will_paginate @post_categories %>
	</div>
<%end%>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
spud_blog-0.8.18 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.8.17 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.8.16 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.8.15 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.8.14 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.8.13 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.8.12 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.8.11 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.8.8 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.8.7 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.8.6 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.8.5 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.8.4 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.8.3 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.8.2 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.8.1 app/views/spud/admin/post_categories/index.html.erb
spud_blog-0.8.0 app/views/spud/admin/post_categories/index.html.erb