Sha256: 179522cb0e67dcfb8bac43702f24366dd0799c0655c5af9dc97f030a4bdb584e

Contents?: true

Size: 1.09 KB

Versions: 80

Compression:

Stored size: 1.09 KB

Contents

<!-- Main Content -->
<div class="wrapper wrapper-content">
	<div class="panel panel-default">
		<div class="panel-heading">
			<i class="fa fa-newspaper-o"></i> News Post List
		</div>
		<div class="panel-body">
			<table class="table table-bordered table-striped table-hover">

				<thead>
					<tr>
						<th>Post Name</th>
						<th>Post Text</th>
						<th>Post Status</th>
						<th></th>
					</tr>
				</thead>

				<tbody>
					<% @news_posts.each do |news_post| %>
						<tr>
							<td><%= news_post.newspsttitle %></td>
							<td><%= truncate(news_post.newspsttext, :length => 80) %></td>
							<td><%= news_post.pststatus %></td>
							<td><div class="btn-group" role="group" aria-label="News Articles">
								<%= link_to 'Edit', edit_news_post_path(news_post), class: "btn btn-primary btn-xs" %>
								<%= link_to 'Destroy', news_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
							</div></td>
						</tr>
					<% end %>
				</tbody>

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

Version data entries

80 entries across 80 versions & 2 rubygems

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