Sha256: 241b81f8938858eb9a26e2a739b1b45199d052830f71a1362ae4b3cf8004cf4a

Contents?: true

Size: 1.9 KB

Versions: 28

Compression:

Stored size: 1.9 KB

Contents

<!-- Title System -->
<% phc_title "Articles Manager" %>
<% phc_title_tagline "Article Index" %>

<!-- Bread Crumb -->
<div class="page-bar">

	<ul class="page-breadcrumb">
		<li><%= link_to "Articles List", phcpresspro.articles_posts_path %><i class="fa fa-circle"></i></li>
		<li class="active"><%= yield(:phc_title_tagline) %></li>
	</ul>

</div>

<!-- Page Title -->
<h3 class="page-title">
	<%= yield(:phc_title) %> </br>
	<small><%= yield(:phc_title_tagline) %></small>
</h3>

<!-- Main Content -->
<div class="row">
	<div class="col-lg-12">

		<div class="portlet light">

			<div class="portlet-title">

				<div class="caption">
					<span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
				</div>
				<div class="actions">
					<%= link_to phcpresspro.new_articles_post_path, class: "btn blue-chambray" do %>
						<i class="fa fa-plus"></i> Post a New Article
					<% end %>
				</div>

			</div>

			<div class="portlet-body">
				<div class="table-responsive">
					<table class="table table-striped table-bordered table-hover table-header-fixed">

						<thead>
							<tr>
								<th>Title</th>
								<th>Text Preview</th>
								<th>Article Status</th>
								<th></th>
							</tr>
						</thead>

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

					</table>
				</div>
			</div>

		</div>

	</div>
</div>

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
phcpresspro-4.4.5 app/views/phcpresspro/articles/posts/index.html.erb
phcpresspro-4.4.1 app/views/phcpresspro/articles/posts/index.html.erb
phcpresspro-4.4.0 app/views/phcpresspro/articles/posts/index.html.erb
phcpresspro-4.3.2 app/views/phcpresspro/articles/posts/index.html.erb
phcpresspro-4.3.1 app/views/phcpresspro/articles/posts/index.html.erb
phcpresspro-4.3.0 app/views/phcpresspro/articles/posts/index.html.erb
phcpresspro-4.2.12 app/views/phcpresspro/articles/posts/index.html.erb
phcpresspro-4.2.11 app/views/phcpresspro/articles/posts/index.html.erb