Sha256: 665679ba13e597ed21241b63b91ac2bc7805a1b2eb9dfe31877e2ffbcc71f76f

Contents?: true

Size: 1.17 KB

Versions: 3

Compression:

Stored size: 1.17 KB

Contents

<p id="notice"><%= notice %></p>

<!-- 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><%= news_post.newspsttext %></td>
							<td><%= news_post.pststatus %></td>
							<td><div class="btn-group" role="group" aria-label="News Articles">
								<%= link_to 'Show', news_post, class: "btn btn-primary btn-xs" %>
								<%= 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-default" %>
		</div>
	</div>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
phcpress-0.2.1b app/views/phcpress/news/posts/index.html.erb
phcpress-0.1.9b app/views/phcpress/news/posts/index.html.erb
phcpress-0.1.5b app/views/phcpress/news/posts/index.html.erb