app/views/phccodesnipperpro/script/snippets/index.html.erb in phccodesnipperpro-4.4.0 vs app/views/phccodesnipperpro/script/snippets/index.html.erb in phccodesnipperpro-5.0.0

- old
+ new

@@ -1,68 +1,68 @@ -<!-- Title System --> +<!-- -PHCDEV- Title Variables --> <% phc_title "Code Snippet Manager" %> <% phc_title_tagline "Code Snippet Index" %> <% phc_breadcrumb_one yield(:phc_title_tagline) %> <% phc_breadcrumb_two link_to "Code Snippet Index", phccodesnipperpro.script_snippets_path %> -<!-- Title System --> +<!-- -PHCDEV- Title Variables --> -<!-- Page Bradcrumbs --> -<ol class="breadcrumb pull-right"> - <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li> - <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li> +<!-- -PHCDEV- Bradcrumbs --> +<ol class="breadcrumb float-xl-end"> +<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li> +<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li> </ol> -<!-- Page Bradcrumbs --> +<!-- -PHCDEV- Bradcrumbs --> -<!-- Page Header --> +<!-- -PHCDEV- Header --> <h1 class="page-header"><%= yield(:phc_title) %></h1> -<!-- Page Header --> +<!-- -PHCDEV- Header --> -<!-- Page & Panel Content --> +<!-- -PHCDEV- Panel --> <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 Title</th> - <th>Snippet Summary</th> - <th></th> - </tr> - </thead> - <tbody> - <% @script_snippets.each do |script_snippet| %> - <tr> - <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> - </tr> - <% end %> - </tbody> - </table> - <%= link_to phccodesnipperpro.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 --> + + <!-- -PHCDEV- Panel - Heading --> + <div class="panel-heading"> + <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4> + </div> + <!-- -PHCDEV- Panel - Heading --> + + <!-- -PHCDEV- Panel - Body --> + <div class="panel-body"> + + <!-- -PHCDEV- Table - Snippet Index --> + <div class="table-responsive"> + <table class="table table-striped table-bordered"> + <thead> + <tr> + <th>Snippet Title</th> + <th>Snippet Summary</th> + <th></th> + </tr> + </thead> + <tbody> + <% @script_snippets.each do |script_snippet| %> + <tr> + <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> + </tr> + <% end %> + </tbody> + </table> + <%= link_to phccodesnipperpro.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> + <!-- -PHCDEV- Table - Snippet Index --> + + </div> + <!-- -PHCDEV- Panel - Body --> + </div> -<!-- Page & Panel Content --> +<!-- -PHCDEV- Panel -->