app/views/phcpress/modules/connections/index.html.erb in phcpress-5.0.0 vs app/views/phcpress/modules/connections/index.html.erb in phcpress-5.1.0

- old
+ new

@@ -1,29 +1,38 @@ -<p id="notice"><%= notice %></p> +<!-- Main Content --> +<div class="wrapper wrapper-content"> + <div class="panel panel-primary"> -<h1>Modules Connections</h1> + <div class="panel-heading"> + <i class="fa fa-list-ul"></i> Connections List + </div> -<table> - <thead> - <tr> - <th>Post</th> - <th>Category</th> - <th colspan="3"></th> - </tr> - </thead> + <div class="panel-body"> - <tbody> - <% @modules_connections.each do |modules_connection| %> - <tr> - <td><%= modules_connection.post %></td> - <td><%= modules_connection.category %></td> - <td><%= link_to 'Show', modules_connection %></td> - <td><%= link_to 'Edit', edit_modules_connection_path(modules_connection) %></td> - <td><%= link_to 'Destroy', modules_connection, method: :delete, data: { confirm: 'Are you sure?' } %></td> - </tr> - <% end %> - </tbody> -</table> + <table class="table table-bordered table-striped table-hover"> + <thead> + <tr> + <th>Category</th> + <th>Posts</th> + <th colspan="3"></th> + </tr> + </thead> -<br> + <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> + <% end %> + </tbody> + </table> -<%= link_to 'New Modules Connection', new_modules_connection_path %> + <%= link_to 'New Connection', new_modules_connection_path, class: "btn btn-primary" %> + + </div> + + </div> +</div>