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-3.5.6 app/views/phcpress/blog/posts/index.html.erb
phcpress-3.5.5 app/views/phcpress/blog/posts/index.html.erb
phcpress-3.5.0 app/views/phcpress/blog/posts/index.html.erb
phcpress-3.0.1 app/views/phcpress/blog/posts/index.html.erb
phcpress-2.9.5 app/views/phcpress/blog/posts/index.html.erb
phcpress-2.9.1 app/views/phcpress/blog/posts/index.html.erb
phcpress-2.9.0 app/views/phcpress/blog/posts/index.html.erb
phcpress-2.8.13 app/views/phcpress/blog/posts/index.html.erb
phcpress-2.8.12 app/views/phcpress/blog/posts/index.html.erb
phcpress-2.8.11 app/views/phcpress/blog/posts/index.html.erb
phcpress-2.8.10 app/views/phcpress/blog/posts/index.html.erb
phcpress-2.8.9 app/views/phcpress/blog/posts/index.html.erb
phcpress-2.8.8 app/views/phcpress/blog/posts/index.html.erb
phcpress-2.8.7 app/views/phcpress/blog/posts/index.html.erb
phcpress-2.8.6 app/views/phcpress/blog/posts/index.html.erb
phcpress-2.8.5 app/views/phcpress/blog/posts/index.html.erb
phcpress-2.8.1 app/views/phcpress/blog/posts/index.html.erb
phcpress-2.8.0 app/views/phcpress/blog/posts/index.html.erb
phcpresspro-1.6.1 app/views/phcpresspro/blog/posts/index.html.erb
phcpresspro-1.6.0 app/views/phcpresspro/blog/posts/index.html.erb