app/views/phccodesnipper/script/snippets/index.html.erb in phccodesnipper-1.1.0 vs app/views/phccodesnipper/script/snippets/index.html.erb in phccodesnipper-3.0.0
- old
+ new
@@ -16,60 +16,53 @@
<h1 class="page-header"><%= yield(:phc_title) %></h1>
<!-- Page Header -->
<!-- Page & Panel Content -->
<div class="panel panel-inverse">
-
<!-- Panel Heading -->
<div class="panel-heading">
<div class="panel-heading-btn">
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
</div>
<h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
</div>
<!-- Panel Heading -->
-
<!-- Panel Body -->
<div class="panel-body">
-
<!-- Table - Snippet Index -->
<div class="table-responsive">
<table class="table table-striped table-bordered">
-
<thead>
<tr>
- <th>Snippet Tittle</th>
+ <th>Snippet Title</th>
<th>Snippet Summary</th>
- <th colspan="3"></th>
+ <th></th>
</tr>
</thead>
<tbody>
<% @script_snippets.each do |script_snippet| %>
<tr>
- <td><%= script_snippet.snippet_tittle %></td>
+ <td><%= script_snippet.snippet_title %></td>
<td><%= truncate(script_snippet.snippet_code, :length => 80) %></td>
- <td>
- <div class="btn-group d-flex" role="group">
- <%= link_to 'Details', script_snippet, class: "btn btn-purple btn-xs" %>
- <%= link_to 'Update', edit_script_snippet_path(script_snippet), class: "btn btn-primary btn-xs" %>
- <%= link_to 'Remmove', script_snippet, method: :delete, data: { confirm: 'Are you sure? This will aslo delte the snippet urls.' }, class: "btn btn-danger btn-xs" %>
- </div>
- </td>
+ <td>
+ <div class="btn-group d-flex" role="group">
+ <%= link_to 'Details', script_snippet, class: "btn btn-purple btn-xs" %>
+ <%= link_to 'Update', edit_script_snippet_path(script_snippet), class: "btn btn-primary btn-xs" %>
+ <%= link_to 'Remmove', script_snippet, method: :delete, data: { confirm: 'Are you sure? This will aslo delte the snippet urls.' }, class: "btn btn-danger btn-xs" %>
+ </div>
+ </td>
</tr>
<% end %>
</tbody>
-
</table>
- <%= link_to phccodesnipper.new_script_snippet_path, class: "btn btn-primary btn-sm" do %>
- <i class="fas fa-plus-circle"></i>
- Add a New Code Snippet
- <% end %>
+ <%= link_to phccodesnipper.new_script_snippet_path, class: "btn btn-primary btn-sm" do %>
+ <i class="fas fa-plus-circle"></i>
+ Add a New Code Snippet
+ <% end %>
</div>
<!-- Table - Snippet Index -->
-
</div>
<!-- Panel Body -->
-
</div>
<!-- Page & Panel Content -->