app/views/phcpresspro/modules/connections/index.html.erb in phcpresspro-4.2.8 vs app/views/phcpresspro/modules/connections/index.html.erb in phcpresspro-4.2.9

- old
+ new

@@ -1,37 +1,68 @@ -<!-- Main Content --> -<div class="wrapper wrapper-content"> - <div class="panel panel-primary"> +<!-- Title System --> +<% phc_title "PHCPress - Articles" %> +<% phc_title_tagline "Article Index" %> - <div class="panel-heading"> - <i class="fa fa-list-ul"></i> Connections List - </div> +<!-- Bread Crumb --> +<div class="page-bar"> - <div class="panel-body"> + <ul class="page-breadcrumb"> + <li><%= link_to "Articles List", phcpresspro.modules_connections_path %><i class="fa fa-circle"></i></li> + <li class="active"><%= yield(:phc_title_tagline) %></li> + </ul> - <table class="table table-bordered table-striped table-hover"> - <thead> - <tr> - <th>Category</th> - <th>Posts</th> - <th colspan="3"></th> - </tr> - </thead> +</div> - <tbody> - <% @modules_connections.each do |modules_connection| %> - <tr> - <td><%= modules_connection.category.catname %></td> - <td><%= modules_connection.post.psttitle %></td> - <td><%= link_to 'Show', modules_connection, class: "btn btn-primary btn-xs" %></td> - <td><%= link_to 'Edit', edit_modules_connection_path(modules_connection), class: "btn btn-primary btn-xs" %></td> - <td><%= link_to 'Destroy', modules_connection, class: "btn btn-primary btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %></td> - </tr> +<!-- 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_modules_connection_path, class: "btn blue-chambray" do %> + <i class="fa fa-plus"></i> Create a New Connection <% end %> - </tbody> - </table> + </div> - <%= link_to 'New Connection', new_modules_connection_path, class: "btn btn-primary" %> + </div> + + <div class="portlet-body"> + <div class="table-responsive"> + <table class="table table-striped table-bordered table-hover table-header-fixed"> + + <thead> + <tr> + <th>Item</th> + <th>Article</th> + <th></th> + </tr> + </thead> + + <tbody> + <% @modules_connections.each do |modules_connection| %> + <tr> + <td><%= link_to modules_connection.category.catname, modules_connection %></td> + <td><%= link_to modules_connection.post.psttitle, modules_connection %></td> + <td><%= link_to 'Delete', modules_connection, class: "btn btn-primary btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %></td> + </tr> + <% end %> + </tbody> + + </table> + </div> + </div> </div> </div> </div>