Sha256: 211bd30d26be3e8a5351b5d32bfeccba9cc9d2721851b829e164d6758daf4e1f

Contents?: true

Size: 1.1 KB

Versions: 44

Compression:

Stored size: 1.1 KB

Contents

<!-- Main Content -->
<div class="wrapper wrapper-content">
	<div class="panel panel-default">

		<div class="panel-heading">
			<i class="fa fa-pencil-square-o"></i> Blog Post List
		</div>

		<div class="panel-body">

			<table class="table table-bordered table-striped table-hover">

				<thead>
					<tr>
						<th>Blog Title</th>
						<th>Blog Text</th>
						<th>Post Status</th>
						<th></th>
					</tr>
				</thead>

				<tbody>
					<% @blog_posts.each do |blog_post| %>
						<tr>
							<td><%= blog_post.blogpsttitle %></td>
							<td><%= truncate(blog_post.blogpsttext, :length => 80) %></td>
							<td><%= blog_post.pststatus %></td>
							<td><div class="btn-group" role="group" aria-label="Blog Articles">
								<%= link_to 'Edit', edit_blog_post_path(blog_post), class: "btn btn-primary btn-xs" %>
								<%= link_to 'Trash', blog_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
							</div></td>
						</tr>
					<% end %>
				</tbody>

			</table>

			<%= link_to 'New Blog Post', new_blog_post_path, class: "btn btn-primary" %>
		</div>

	</div>
</div>

Version data entries

44 entries across 44 versions & 2 rubygems

Version Path
phcpress-0.9.7 app/views/phcpress/blog/posts/index.html.erb
phcpress-0.9.6 app/views/phcpress/blog/posts/index.html.erb
phcpress-0.7.11 app/views/phcpress/blog/posts/index.html.erb
phcpress-0.7.9 app/views/phcpress/blog/posts/index.html.erb