Sha256: 57df4ba689de7d6625979cb40d0dea3d89399b1e7fc61a5aad06ca24e144367a

Contents?: true

Size: 1.1 KB

Versions: 36

Compression:

Stored size: 1.1 KB

Contents

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

		<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

36 entries across 36 versions & 2 rubygems

Version Path
phcpresspro-3.1.2 app/views/phcpresspro/blog/posts/index.html.erb
phcpresspro-3.1.1 app/views/phcpresspro/blog/posts/index.html.erb
phcpresspro-3.1.0 app/views/phcpresspro/blog/posts/index.html.erb
phcpresspro-3.0.9 app/views/phcpresspro/blog/posts/index.html.erb
phcpresspro-3.0.8 app/views/phcpresspro/blog/posts/index.html.erb
phcpresspro-3.0.7 app/views/phcpresspro/blog/posts/index.html.erb
phcpresspro-3.0.6 app/views/phcpresspro/blog/posts/index.html.erb
phcpresspro-3.0.5 app/views/phcpresspro/blog/posts/index.html.erb
phcpresspro-3.0.4 app/views/phcpresspro/blog/posts/index.html.erb
phcpresspro-3.0.3 app/views/phcpresspro/blog/posts/index.html.erb
phcpresspro-3.0.2 app/views/phcpresspro/blog/posts/index.html.erb
phcpresspro-3.0.1 app/views/phcpresspro/blog/posts/index.html.erb
phcpresspro-3.0.0 app/views/phcpresspro/blog/posts/index.html.erb
phcpress-4.0.0 app/views/phcpress/blog/posts/index.html.erb
phcpress-3.8.5 app/views/phcpress/blog/posts/index.html.erb
phcpresspro-2.2.5 app/views/phcpresspro/blog/posts/index.html.erb
phcpresspro-2.2.3 app/views/phcpresspro/blog/posts/index.html.erb
phcpresspro-2.2.2 app/views/phcpresspro/blog/posts/index.html.erb
phcpresspro-2.2.1 app/views/phcpresspro/blog/posts/index.html.erb
phcpresspro-2.2.0 app/views/phcpresspro/blog/posts/index.html.erb