app/views/phcscriptcdnpro/scriptcdn/scripts/index.html.erb in phcscriptcdnpro-1.4.1 vs app/views/phcscriptcdnpro/scriptcdn/scripts/index.html.erb in phcscriptcdnpro-1.4.2
- old
+ new
@@ -1,37 +1,66 @@
-<!-- Main Content -->
-<div class="wrapper wrapper-content">
- <div class="panel panel-default">
- <div class="panel-heading">
- <i class="fa fa-code"></i> Script CDN List
- </div>
- <div class="panel-body">
- <table class="table table-bordered table-striped table-hover">
+<!-- Title System -->
+<% phc_title "Script" %>
+<% phc_title_tagline "Script CDN Index" %>
- <thead>
- <tr>
- <th>Script Name</th>
- <th></th>
- </tr>
- </thead>
+<!-- Bread Crumb -->
+<div class="page-bar">
- <tbody>
- <% @scriptcdn_scripts.each do |scriptcdn_script| %>
- <tr>
- <td><%= scriptcdn_script.scrptname %></td>
+ <ul class="page-breadcrumb">
+ <li><%= link_to "Script Versions", phcscriptcdnpro.scriptcdn_script_path %><i class="fa fa-circle"></i></li>
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
+ </ul>
- <td><div class="btn-group" role="group" aria-label="Script CDN">
- <% if current_user %>
- <%= link_to 'Show', scriptcdn_script, class: "btn btn-w-m btn-primary btn-xs btn-phc-custom" %>
- <%= link_to 'Edit', edit_scriptcdn_script_path(scriptcdn_script), class: "btn btn-w-m btn-primary btn-xs btn-phc-custom" %>
- <%= link_to 'Destroy', scriptcdn_script, class: "btn btn-w-m btn-danger btn-xs btn-phc-custom", method: :delete, data: { confirm: 'Are you sure?' } %>
- <% end %>
- </div></td>
- </tr>
+</div>
+
+<!-- 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 new_scriptcdn_script_path, class: "btn blue-chambray" do %>
+ <i class="fa fa-plus"></i> Add a New Script for CDN
<% end %>
- </tbody>
+ </div>
+ </div>
- </table>
- <%= link_to 'New Script', new_scriptcdn_script_path, class: "btn btn-w-m btn-primary btn-phc-custom" %>
+ <div class="portlet-body">
+ <div class="table-responsive">
+ <table class="table table-striped table-bordered table-hover table-header-fixed">
+
+ <thead>
+ <tr>
+ <th>Script Name</th>
+ <th></th>
+ </tr>
+ </thead>
+
+ <tbody>
+ <% @scriptcdn_scripts.each do |scriptcdn_script| %>
+ <tr>
+ <td><%= scriptcdn_script.scrptname %></td>
+
+ <td><div class="btn-group" role="group" aria-label="Script CDN">
+ <% if current_user %>
+ <%= link_to 'Show', scriptcdn_script, class: "btn btn-w-m btn-primary btn-xs btn-phc-custom" %>
+ <%= link_to 'Edit', edit_scriptcdn_script_path(scriptcdn_script), class: "btn btn-w-m btn-primary btn-xs btn-phc-custom" %>
+ <%= link_to 'Destroy', scriptcdn_script, class: "btn btn-w-m btn-danger btn-xs btn-phc-custom", method: :delete, data: { confirm: 'Are you sure?' } %>
+ <% end %>
+ </div></td>
+ </tr>
+ <% end %>
+ </tbody>
+
+ </table>
+ </div>
+ </div>
+
</div>
+
</div>
-</div>
+</div>
\ No newline at end of file