phcscriptcdn 51.0.0 → 52.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/app/assets/javascripts/phcscriptcdn/application.js +1 -1
  4. data/app/controllers/phcscriptcdn/application_controller.rb +15 -20
  5. data/app/controllers/phcscriptcdn/script/authors_controller.rb +13 -13
  6. data/app/controllers/phcscriptcdn/script/extensions_controller.rb +15 -15
  7. data/app/controllers/phcscriptcdn/script/licences_controller.rb +13 -13
  8. data/app/controllers/phcscriptcdn/script/listings_controller.rb +11 -11
  9. data/app/controllers/phcscriptcdn/script/urls_controller.rb +14 -14
  10. data/app/controllers/phcscriptcdn/script/versions_controller.rb +15 -15
  11. data/app/models/phcscriptcdn/application_record.rb +0 -2
  12. data/app/models/phcscriptcdn/script.rb +0 -2
  13. data/app/models/phcscriptcdn/script/author.rb +16 -7
  14. data/app/models/phcscriptcdn/script/extension.rb +5 -8
  15. data/app/models/phcscriptcdn/script/licence.rb +5 -8
  16. data/app/models/phcscriptcdn/script/listing.rb +12 -17
  17. data/app/models/phcscriptcdn/script/url.rb +4 -16
  18. data/app/models/phcscriptcdn/script/version.rb +6 -9
  19. data/app/views/layouts/phcscriptcdn/application.html.erb +6 -5
  20. data/app/views/layouts/phcscriptcdn/components/backend/footer/_footer.html.erb +5 -5
  21. data/app/views/layouts/phcscriptcdn/components/backend/sidebars/_side_menu.html.erb +60 -25
  22. data/app/views/phcscriptcdn/script/authors/_form.html.erb +6 -5
  23. data/app/views/phcscriptcdn/script/authors/edit.html.erb +4 -4
  24. data/app/views/phcscriptcdn/script/authors/index.html.erb +19 -15
  25. data/app/views/phcscriptcdn/script/authors/new.html.erb +4 -4
  26. data/app/views/phcscriptcdn/script/authors/show.html.erb +1 -4
  27. data/app/views/phcscriptcdn/script/extensions/_form.html.erb +5 -4
  28. data/app/views/phcscriptcdn/script/extensions/edit.html.erb +4 -7
  29. data/app/views/phcscriptcdn/script/extensions/index.html.erb +19 -15
  30. data/app/views/phcscriptcdn/script/extensions/new.html.erb +4 -6
  31. data/app/views/phcscriptcdn/script/extensions/show.html.erb +1 -4
  32. data/app/views/phcscriptcdn/script/licences/_form.html.erb +10 -9
  33. data/app/views/phcscriptcdn/script/licences/edit.html.erb +4 -6
  34. data/app/views/phcscriptcdn/script/licences/index.html.erb +19 -15
  35. data/app/views/phcscriptcdn/script/licences/new.html.erb +4 -6
  36. data/app/views/phcscriptcdn/script/licences/show.html.erb +1 -4
  37. data/app/views/phcscriptcdn/script/listings/_form.html.erb +21 -17
  38. data/app/views/phcscriptcdn/script/listings/edit.html.erb +4 -4
  39. data/app/views/phcscriptcdn/script/listings/index.html.erb +24 -19
  40. data/app/views/phcscriptcdn/script/listings/new.html.erb +6 -5
  41. data/app/views/phcscriptcdn/script/listings/show.html.erb +3 -5
  42. data/app/views/phcscriptcdn/script/urls/_form.html.erb +7 -6
  43. data/app/views/phcscriptcdn/script/urls/edit.html.erb +15 -5
  44. data/app/views/phcscriptcdn/script/urls/index.html.erb +19 -15
  45. data/app/views/phcscriptcdn/script/urls/new.html.erb +4 -6
  46. data/app/views/phcscriptcdn/script/urls/show.html.erb +1 -4
  47. data/app/views/phcscriptcdn/script/versions/_form.html.erb +3 -2
  48. data/app/views/phcscriptcdn/script/versions/edit.html.erb +4 -6
  49. data/app/views/phcscriptcdn/script/versions/index.html.erb +19 -15
  50. data/app/views/phcscriptcdn/script/versions/new.html.erb +4 -6
  51. data/app/views/phcscriptcdn/script/versions/show.html.erb +1 -4
  52. data/config/routes.rb +19 -20
  53. data/db/migrate/20160821183652_create_phcscriptcdn_script_listings.rb +1 -1
  54. data/lib/phcscriptcdn/engine.rb +16 -15
  55. data/lib/phcscriptcdn/version.rb +1 -1
  56. metadata +8 -8
@@ -17,7 +17,7 @@
17
17
  <!-- Page Header -->
18
18
  <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
19
  <!-- Page Header -->
20
-
20
+
21
21
  <!-- Page Content -->
22
22
  <div class="panel panel-inverse">
23
23
  <div class="panel-heading">
@@ -26,12 +26,12 @@
26
26
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
27
27
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
28
28
  </div>
29
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
30
30
  </div>
31
31
  <div class="panel-body">
32
- <!-- Form for Script Author Edit -->
32
+ <!-- Form to Edit Author -->
33
33
  <%= render 'form', script_author: @script_author %>
34
- <!-- Form for Script Author Edit -->
34
+ <!-- Form to Edit Author -->
35
35
  </div>
36
36
  </div>
37
37
  <!-- Page Content -->
@@ -7,27 +7,30 @@
7
7
 
8
8
  <!-- Page Bradcrumbs -->
9
9
  <ol class="breadcrumb pull-right">
10
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
10
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
12
  </ol>
13
13
  <!-- Page Bradcrumbs -->
14
14
 
15
15
  <!-- Page Header -->
16
16
  <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
17
  <!-- Page Header -->
18
-
19
- <!-- Page Content -->
18
+
19
+ <!-- Page & Panel Content -->
20
20
  <div class="panel panel-inverse">
21
- <div class="panel-heading">
22
- <div class="panel-heading-btn">
23
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
24
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
25
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
26
- </div>
27
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
28
- </div>
29
- <div class="panel-body">
30
- <!-- Table - Article Index -->
21
+ <!-- Panel Heading -->
22
+ <div class="panel-heading">
23
+ <div class="panel-heading-btn">
24
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
25
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
26
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
27
+ </div>
28
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
+ </div>
30
+ <!-- Panel Heading -->
31
+ <!-- Panel Body -->
32
+ <div class="panel-body">
33
+ <!-- Table - Author Index -->
31
34
  <div class="table-responsive">
32
35
  <table class="table table-striped table-bordered">
33
36
  <thead>
@@ -51,9 +54,10 @@
51
54
  </table>
52
55
  <%= link_to phcscriptcdn.new_script_author_path, class: "btn btn-primary btn-sm" do %>
53
56
  <i class="fas fa-plus-circle"></i>
54
- <%= "Add a New Script Author" %>
57
+ Add a New Script Author
55
58
  <% end %>
56
59
  </div>
60
+ <!-- Table - Author Index -->
57
61
  </div>
58
62
  </div>
59
63
  <!-- Page Content -->
@@ -17,7 +17,7 @@
17
17
  <!-- Page Header -->
18
18
  <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
19
  <!-- Page Header -->
20
-
20
+
21
21
  <!-- Page Content -->
22
22
  <div class="panel panel-inverse">
23
23
  <div class="panel-heading">
@@ -26,12 +26,12 @@
26
26
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
27
27
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
28
28
  </div>
29
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
30
30
  </div>
31
31
  <div class="panel-body">
32
- <!-- Form for Script Author New -->
32
+ <!-- Form for New Author -->
33
33
  <%= render 'form', script_author: @script_author %>
34
- <!-- Form for Script Author New -->
34
+ <!-- Form for New Author -->
35
35
  </div>
36
36
  </div>
37
37
  <!-- Page Content -->
@@ -30,12 +30,10 @@
30
30
  </div>
31
31
  </div>
32
32
  <div class="panel-body">
33
-
34
33
  <div class="btn-group d-flex" role="group">
35
34
  <%= link_to 'Update', phcscriptcdn.edit_script_author_path, class: "btn btn-primary" %>
36
35
  <%= link_to 'Remove', phcscriptcdn.script_author_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
37
- </div>
38
-
36
+ </div>
39
37
  </div>
40
38
  </div>
41
39
 
@@ -44,7 +42,6 @@
44
42
 
45
43
  <!-- Main Panel -->
46
44
  <div class="col-lg-8">
47
-
48
45
  </div>
49
46
  <!-- Main Panel -->
50
47
 
@@ -1,18 +1,19 @@
1
1
  <%= form_with(model: script_extension, local: true) do |form| %>
2
2
 
3
3
  <!-- PHCNotifi Render Validation -->
4
- <%= render 'phcnotifi/validations', :object => @script_extension %>
4
+ <%= render 'phcnotifi/default/validations', :object => @script_extension %>
5
+ <!-- PHCNotifi Render Validation -->
5
6
 
6
7
  <!-- Form Input Fields -->
7
- <div class="form-group field_with_error">
8
+ <div class="form-group field_with_errors">
8
9
  <%= form.label :script_extension_name, "Extension Name" %>
9
10
  <%= form.text_field :script_extension_name, placeholder: "Extension Name", class: "form-control" %>
10
11
  </div>
11
- <div class="form-group field_with_error">
12
+ <div class="form-group field_with_errors">
12
13
  <%= form.label :script_extension_description, "Extension Description" %>
13
14
  <%= form.text_area :script_extension_description, placeholder: "Extension Description", class: "form-control" %>
14
15
  </div>
15
- <div class="form-group field_with_error">
16
+ <div class="form-group field_with_errors">
16
17
  <%= form.label :script_extension, "Script Extension" %>
17
18
  <%= form.text_field :script_extension, placeholder: "Script Extension (.js/.css)", class: "form-control" %>
18
19
  </div>
@@ -17,7 +17,7 @@
17
17
  <!-- Page Header -->
18
18
  <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
19
  <!-- Page Header -->
20
-
20
+
21
21
  <!-- Page Content -->
22
22
  <div class="panel panel-inverse">
23
23
  <div class="panel-heading">
@@ -26,15 +26,12 @@
26
26
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
27
27
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
28
28
  </div>
29
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
30
30
  </div>
31
31
  <div class="panel-body">
32
-
33
- <!-- -->
32
+ <!-- Form to Edit Extension -->
34
33
  <%= render 'form', script_extension: @script_extension %>
35
- <!-- -->
36
-
34
+ <!-- Form to Edit Extension -->
37
35
  </div>
38
36
  </div>
39
37
  <!-- Page Content -->
40
-
@@ -7,27 +7,30 @@
7
7
 
8
8
  <!-- Page Bradcrumbs -->
9
9
  <ol class="breadcrumb pull-right">
10
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
10
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
12
  </ol>
13
13
  <!-- Page Bradcrumbs -->
14
14
 
15
15
  <!-- Page Header -->
16
16
  <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
17
  <!-- Page Header -->
18
-
19
- <!-- Page Content -->
18
+
19
+ <!-- Page & Panel Content -->
20
20
  <div class="panel panel-inverse">
21
- <div class="panel-heading">
22
- <div class="panel-heading-btn">
23
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
24
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
25
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
26
- </div>
27
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
28
- </div>
29
- <div class="panel-body">
30
- <!-- Table - Article Index -->
21
+ <!-- Panel Heading -->
22
+ <div class="panel-heading">
23
+ <div class="panel-heading-btn">
24
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
25
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
26
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
27
+ </div>
28
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
+ </div>
30
+ <!-- Panel Heading -->
31
+ <!-- Panel Body -->
32
+ <div class="panel-body">
33
+ <!-- Table - Extension Index -->
31
34
  <div class="table-responsive">
32
35
  <table class="table table-striped table-bordered">
33
36
  <thead>
@@ -47,9 +50,10 @@
47
50
  </table>
48
51
  <%= link_to phcscriptcdn.new_script_extension_path, class: "btn btn-primary" do %>
49
52
  <i class="fas fa-plus-circle"></i>
50
- <%= "Add a New Extension" %>
53
+ Add a New Extension
51
54
  <% end %>
52
55
  </div>
56
+ <!-- Table - Extension Index -->
53
57
  </div>
54
58
  </div>
55
59
  <!-- Page Content -->
@@ -17,7 +17,7 @@
17
17
  <!-- Page Header -->
18
18
  <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
19
  <!-- Page Header -->
20
-
20
+
21
21
  <!-- Page Content -->
22
22
  <div class="panel panel-inverse">
23
23
  <div class="panel-heading">
@@ -26,14 +26,12 @@
26
26
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
27
27
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
28
28
  </div>
29
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
30
30
  </div>
31
31
  <div class="panel-body">
32
-
33
- <!-- -->
32
+ <!-- Form for New Extension -->
34
33
  <%= render 'form', script_extension: @script_extension %>
35
- <!-- -->
36
-
34
+ <!-- Form for New Extension -->
37
35
  </div>
38
36
  </div>
39
37
  <!-- Page Content -->
@@ -30,12 +30,10 @@
30
30
  </div>
31
31
  </div>
32
32
  <div class="panel-body">
33
-
34
33
  <div class="btn-group d-flex" role="group">
35
34
  <%= link_to 'Update', phcscriptcdn.edit_script_extension_path, class: "btn btn-primary" %>
36
35
  <%= link_to 'Remove', phcscriptcdn.script_extension_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
37
- </div>
38
-
36
+ </div>
39
37
  </div>
40
38
  </div>
41
39
 
@@ -44,7 +42,6 @@
44
42
 
45
43
  <!-- Main Panel -->
46
44
  <div class="col-lg-8">
47
-
48
45
  </div>
49
46
  <!-- Main Panel -->
50
47
 
@@ -1,38 +1,39 @@
1
1
  <%= form_with(model: script_licence, local: true) do |form| %>
2
2
 
3
3
  <!-- PHCNotifi Render Validation -->
4
- <%= render 'phcnotifi/validations', :object => @script_licence %>
4
+ <%= render 'phcnotifi/default/validations', :object => @script_licence %>
5
+ <!-- PHCNotifi Render Validation -->
5
6
 
6
7
  <!-- Form Input Fields -->
7
- <div class="form-group field_with_error">
8
+ <div class="form-group field_with_errors">
8
9
  <%= form.label :licence_name, "Licence Name" %>
9
10
  <%= form.text_field :licence_name, placeholder: "Licence Name", class: "form-control" %>
10
11
  </div>
11
- <div class="form-group field_with_error">
12
+ <div class="form-group field_with_errors">
12
13
  <%= form.label :licence_description, "Licence Description" %>
13
14
  <%= form.text_area :licence_description, placeholder: "Licence Descirption", class: "form-control" %>
14
15
  </div>
15
- <div class="form-group field_with_error">
16
+ <div class="form-group field_with_errors">
16
17
  <%= form.label :licence_compatible_gpl, "GPL(v3) Compatible" %>
17
18
  <%= form.select( :licence_compatible_gpl, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
18
19
  </div>
19
- <div class="form-group field_with_error">
20
+ <div class="form-group field_with_errors">
20
21
  <%= form.label :licence_approval_fsf, "FSF Approval" %>
21
22
  <%= form.select( :licence_approval_fsf, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
22
23
  </div>
23
- <div class="form-group field_with_error">
24
+ <div class="form-group field_with_errors">
24
25
  <%= form.label :licence_approval_osi, "OSI Approval" %>
25
26
  <%= form.select( :licence_approval_osi, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
26
27
  </div>
27
- <div class="form-group field_with_error">
28
+ <div class="form-group field_with_errors">
28
29
  <%= form.label :licence_approval_copyfree, "Copyfree Approval" %>
29
30
  <%= form.select( :licence_approval_copyfree, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
30
31
  </div>
31
- <div class="form-group field_with_error">
32
+ <div class="form-group field_with_errors">
32
33
  <%= form.label :licence_approval_debian, "Debian Approval" %>
33
34
  <%= form.select( :licence_approval_debian, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
34
35
  </div>
35
- <div class="form-group field_with_error">
36
+ <div class="form-group field_with_errors">
36
37
  <%= form.label :licence_approval_fedora, "Fedora Approval" %>
37
38
  <%= form.select( :licence_approval_fedora, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
38
39
  </div>
@@ -17,7 +17,7 @@
17
17
  <!-- Page Header -->
18
18
  <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
19
  <!-- Page Header -->
20
-
20
+
21
21
  <!-- Page Content -->
22
22
  <div class="panel panel-inverse">
23
23
  <div class="panel-heading">
@@ -26,14 +26,12 @@
26
26
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
27
27
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
28
28
  </div>
29
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
30
30
  </div>
31
31
  <div class="panel-body">
32
-
33
- <!-- -->
32
+ <!-- Form to Edit Licence -->
34
33
  <%= render 'form', script_licence: @script_licence %>
35
- <!-- -->
36
-
34
+ <!-- Form to Edit Licence -->
37
35
  </div>
38
36
  </div>
39
37
  <!-- Page Content -->
@@ -7,27 +7,30 @@
7
7
 
8
8
  <!-- Page Bradcrumbs -->
9
9
  <ol class="breadcrumb pull-right">
10
- <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
- <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
10
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
12
  </ol>
13
13
  <!-- Page Bradcrumbs -->
14
14
 
15
15
  <!-- Page Header -->
16
16
  <h1 class="page-header"><%= yield(:phc_title) %></h1>
17
17
  <!-- Page Header -->
18
-
19
- <!-- Page Content -->
18
+
19
+ <!-- Page & Panel Content -->
20
20
  <div class="panel panel-inverse">
21
- <div class="panel-heading">
22
- <div class="panel-heading-btn">
23
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
24
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
25
- <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
26
- </div>
27
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
28
- </div>
29
- <div class="panel-body">
30
- <!-- Table - Article Index -->
21
+ <!-- Panel Heading -->
22
+ <div class="panel-heading">
23
+ <div class="panel-heading-btn">
24
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
25
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
26
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
27
+ </div>
28
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
+ </div>
30
+ <!-- Panel Heading -->
31
+ <!-- Panel Body -->
32
+ <div class="panel-body">
33
+ <!-- Table - Licence Index -->
31
34
  <div class="table-responsive">
32
35
  <table class="table table-striped table-bordered">
33
36
  <thead>
@@ -57,9 +60,10 @@
57
60
  </table>
58
61
  <%= link_to phcscriptcdn.new_script_licence_path, class: "btn btn-primary btn-sm" do %>
59
62
  <i class="fas fa-plus-circle"></i>
60
- <%= "Add a New Licence" %>
63
+ Add a New Licence
61
64
  <% end %>
62
65
  </div>
66
+ <!-- Table - Licence Index -->
63
67
  </div>
64
68
  </div>
65
69
  <!-- Page Content -->
@@ -17,7 +17,7 @@
17
17
  <!-- Page Header -->
18
18
  <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
19
  <!-- Page Header -->
20
-
20
+
21
21
  <!-- Page Content -->
22
22
  <div class="panel panel-inverse">
23
23
  <div class="panel-heading">
@@ -26,14 +26,12 @@
26
26
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-redo"></i></a>
27
27
  <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
28
28
  </div>
29
- <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
29
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
30
30
  </div>
31
31
  <div class="panel-body">
32
-
33
- <!-- -->
32
+ <!-- Form for New Licence -->
34
33
  <%= render 'form', script_licence: @script_licence %>
35
- <!-- -->
36
-
34
+ <!-- Form for New Licence -->
37
35
  </div>
38
36
  </div>
39
37
  <!-- Page Content -->