app/views/phcpress/articles/posts/index.html.erb in phcpress-9.0.1 vs app/views/phcpress/articles/posts/index.html.erb in phcpress-9.1.0

- old
+ new

@@ -1,69 +1,69 @@ -<!-- Title System --> -<% phc_title "Article Manager" %> -<% phc_title_tagline "Article Index" %> -<% phc_breadcrumb_one link_to "Article Index", phcpress.articles_posts_path %> -<% phc_breadcrumb_two yield(:phc_title_tagline) %> -<!-- Title System --> - -<!-- Page Title Bar --> -<section class="content-header"> - <!-- Page Title and BreadCrumb --> - <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1> - <ol class="breadcrumb"> - <li><%= yield(:phc_breadcrumb_one) %></li> - <li class="active"><%= yield(:phc_breadcrumb_two) %></li> - </ol> - <!-- Page Title and BreadCrumb --> -</section> -<!-- Page Title Bar --> - -<!-- Main Content --> -<section class="content"> - <div class="row"> - <div class="col-lg-12"> - <div class="box"> - <div class="box-header with-border"> - <h3 class="box-title"><%= yield(:phc_title) %></h3> - </div> - <div class="box-body"> - - <!-- Index Table --> - <div class="table-responsive"> - <table class="table table-bordered table-striped table-hover"> - <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 'Delete', articles_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %> - </div></td> - </tr> - <% end %> - </tbody> - </table> - </div> - <!-- Index Table --> - - <!-- Panel Footer --> - <div class="box-footer clearfix"> - <%= link_to 'New Blog Post', new_articles_post_path, class: "btn btn-primary" %> - </div> - <!-- Panel Footer --> - - </div> - </div> - </div> - </div> -</section> -<!-- Main Content --> +<!-- Title System --> +<% phc_title "Article Manager" %> +<% phc_title_tagline "Article Index" %> +<% phc_breadcrumb_one link_to "Article Index", phcpress.articles_posts_path %> +<% phc_breadcrumb_two yield(:phc_title_tagline) %> +<!-- Title System --> + +<!-- Page Title Bar --> +<section class="content-header"> + <!-- Page Title and BreadCrumb --> + <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1> + <ol class="breadcrumb"> + <li><%= yield(:phc_breadcrumb_one) %></li> + <li class="active"><%= yield(:phc_breadcrumb_two) %></li> + </ol> + <!-- Page Title and BreadCrumb --> +</section> +<!-- Page Title Bar --> + +<!-- Main Content --> +<section class="content"> + <div class="row"> + <div class="col-lg-12"> + <div class="box"> + <div class="box-header with-border"> + <h3 class="box-title"><%= yield(:phc_title) %></h3> + </div> + <div class="box-body"> + + <!-- Index Table --> + <div class="table-responsive"> + <table class="table table-bordered table-striped table-hover"> + <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 'Delete', articles_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %> + </div></td> + </tr> + <% end %> + </tbody> + </table> + </div> + <!-- Index Table --> + + <!-- Panel Footer --> + <div class="box-footer clearfix"> + <%= link_to 'New Blog Post', new_articles_post_path, class: "btn btn-primary" %> + </div> + <!-- Panel Footer --> + + </div> + </div> + </div> + </div> +</section> +<!-- Main Content -->