phcscriptcdn 48.0.0 → 49.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -2
  3. data/app/assets/javascripts/phcscriptcdn/application.js +2 -2
  4. data/app/assets/stylesheets/phcscriptcdn/application.scss +2 -2
  5. data/app/controllers/phcscriptcdn/application_controller.rb +20 -10
  6. data/app/controllers/phcscriptcdn/script/authors_controller.rb +19 -8
  7. data/app/controllers/phcscriptcdn/script/extensions_controller.rb +17 -6
  8. data/app/controllers/phcscriptcdn/script/licences_controller.rb +16 -5
  9. data/app/controllers/phcscriptcdn/script/listings_controller.rb +15 -6
  10. data/app/controllers/phcscriptcdn/script/urls_controller.rb +13 -4
  11. data/app/controllers/phcscriptcdn/script/versions_controller.rb +15 -4
  12. data/app/helpers/phcscriptcdn/application_helper.rb +0 -10
  13. data/app/helpers/phcscriptcdn/script/authors_helper.rb +4 -0
  14. data/app/helpers/phcscriptcdn/script/extensions_helper.rb +4 -0
  15. data/app/helpers/phcscriptcdn/script/licences_helper.rb +4 -0
  16. data/app/helpers/phcscriptcdn/script/listings_helper.rb +4 -0
  17. data/app/helpers/phcscriptcdn/script/urls_helper.rb +4 -0
  18. data/app/helpers/phcscriptcdn/script/versions_helper.rb +4 -0
  19. data/app/jobs/phcscriptcdn/application_job.rb +2 -2
  20. data/app/mailers/phcscriptcdn/application_mailer.rb +6 -0
  21. data/app/models/phcscriptcdn/application_record.rb +5 -3
  22. data/app/models/phcscriptcdn/script.rb +7 -5
  23. data/app/models/phcscriptcdn/script/author.rb +0 -7
  24. data/app/models/phcscriptcdn/script/listing.rb +3 -13
  25. data/app/models/phcscriptcdn/script/url.rb +2 -2
  26. data/app/models/phcscriptcdn/script/version.rb +1 -1
  27. data/app/views/layouts/phcscriptcdn/application.html.erb +64 -41
  28. data/app/views/layouts/phcscriptcdn/components/backend/footer/_footer.html.erb +9 -4
  29. data/app/views/layouts/phcscriptcdn/components/backend/navigation/_top_menu.html.erb +78 -0
  30. data/app/views/layouts/phcscriptcdn/components/backend/sidebars/_side_menu.html.erb +154 -0
  31. data/app/views/phcscriptcdn/script/authors/_form.html.erb +15 -20
  32. data/app/views/phcscriptcdn/script/authors/edit.html.erb +32 -32
  33. data/app/views/phcscriptcdn/script/authors/index.html.erb +50 -60
  34. data/app/views/phcscriptcdn/script/authors/new.html.erb +33 -32
  35. data/app/views/phcscriptcdn/script/authors/show.html.erb +42 -32
  36. data/app/views/phcscriptcdn/script/extensions/_form.html.erb +13 -14
  37. data/app/views/phcscriptcdn/script/extensions/edit.html.erb +32 -31
  38. data/app/views/phcscriptcdn/script/extensions/index.html.erb +45 -52
  39. data/app/views/phcscriptcdn/script/extensions/new.html.erb +31 -30
  40. data/app/views/phcscriptcdn/script/extensions/show.html.erb +41 -31
  41. data/app/views/phcscriptcdn/script/licences/_form.html.erb +21 -21
  42. data/app/views/phcscriptcdn/script/licences/edit.html.erb +31 -31
  43. data/app/views/phcscriptcdn/script/licences/index.html.erb +55 -62
  44. data/app/views/phcscriptcdn/script/licences/new.html.erb +31 -31
  45. data/app/views/phcscriptcdn/script/licences/show.html.erb +41 -31
  46. data/app/views/phcscriptcdn/script/listings/_form.html.erb +27 -28
  47. data/app/views/phcscriptcdn/script/listings/edit.html.erb +29 -30
  48. data/app/views/phcscriptcdn/script/listings/index.html.erb +45 -54
  49. data/app/views/phcscriptcdn/script/listings/new.html.erb +28 -30
  50. data/app/views/phcscriptcdn/script/listings/show.html.erb +38 -28
  51. data/app/views/phcscriptcdn/script/urls/_form.html.erb +13 -14
  52. data/app/views/phcscriptcdn/script/urls/edit.html.erb +17 -30
  53. data/app/views/phcscriptcdn/script/urls/index.html.erb +47 -54
  54. data/app/views/phcscriptcdn/script/urls/new.html.erb +31 -31
  55. data/app/views/phcscriptcdn/script/urls/show.html.erb +41 -30
  56. data/app/views/phcscriptcdn/script/versions/_form.html.erb +9 -10
  57. data/app/views/phcscriptcdn/script/versions/edit.html.erb +31 -31
  58. data/app/views/phcscriptcdn/script/versions/index.html.erb +43 -50
  59. data/app/views/phcscriptcdn/script/versions/new.html.erb +31 -31
  60. data/app/views/phcscriptcdn/script/versions/show.html.erb +41 -31
  61. data/config/routes.rb +19 -22
  62. data/db/migrate/{20160731205917_create_phcscriptcdn_script_listings.rb → 20160821183652_create_phcscriptcdn_script_listings.rb} +5 -6
  63. data/db/migrate/{20160731210723_create_phcscriptcdn_script_authors.rb → 20160821183714_create_phcscriptcdn_script_authors.rb} +1 -2
  64. data/db/migrate/{20160731205205_create_phcscriptcdn_script_extensions.rb → 20160821183735_create_phcscriptcdn_script_extensions.rb} +1 -1
  65. data/db/migrate/{20160801032225_create_phcscriptcdn_script_licences.rb → 20160821183805_create_phcscriptcdn_script_licences.rb} +1 -1
  66. data/db/migrate/{20160731210626_create_phcscriptcdn_script_urls.rb → 20160821183830_create_phcscriptcdn_script_urls.rb} +5 -5
  67. data/db/migrate/{20160731205954_create_phcscriptcdn_script_versions.rb → 20160821183946_create_phcscriptcdn_script_versions.rb} +1 -1
  68. data/db/migrate/20170517064049_create_phcscriptcdn_listing_versions.rb +1 -0
  69. data/db/migrate/20170517064114_create_phcscriptcdn_scriptversion_versions.rb +1 -0
  70. data/db/migrate/20170517064150_create_phcscriptcdn_url_versions.rb +17 -16
  71. data/db/migrate/20170517064208_create_phcscriptcdn_author_versions.rb +1 -0
  72. data/db/migrate/20170517064427_create_phcscriptcdn_licence_versions.rb +1 -0
  73. data/lib/phcscriptcdn/engine.rb +6 -1
  74. data/lib/phcscriptcdn/version.rb +1 -1
  75. metadata +100 -116
  76. data/app/assets/javascripts/phcscriptcdn/frontend/listings.js +0 -2
  77. data/app/assets/stylesheets/phcscriptcdn/frontend/listings.scss +0 -3
  78. data/app/controllers/phcscriptcdn/frontend/listings_controller.rb +0 -20
  79. data/app/helpers/phcscriptcdn/frontend/listings_helper.rb +0 -4
  80. data/app/models/phcscriptcdn/frontend/listing.rb +0 -8
  81. data/app/views/layouts/phcscriptcdn/components/backend/navigation/_navigation.html.erb +0 -56
  82. data/app/views/layouts/phcscriptcdn/components/backend/topbar/_topbar.html.erb +0 -5
  83. data/app/views/layouts/phcscriptcdn/components/backend/topbar/_topbar_links.html.erb +0 -0
  84. data/app/views/layouts/phcscriptcdn/frontend.html.erb +0 -22
  85. data/app/views/phcscriptcdn/frontend/listings/index.html.erb +0 -46
  86. data/app/views/phcscriptcdn/frontend/listings/show.html.erb +0 -59
@@ -1,61 +1,54 @@
1
1
  <!-- Title System -->
2
2
  <% phc_title "Script Listings Manager" %>
3
3
  <% phc_title_tagline "Script Extension Index" %>
4
- <% phc_breadcrumb_one yield(:phc_title_tagline) %>
4
+ <% phc_breadcrumb_one link_to "Script Index", phcscriptcdn.script_listings_path %>
5
+ <% phc_breadcrumb_two link_to "Script Extension Index", phcscriptcdn.script_extensions_path %>
6
+ <% phc_breadcrumb_three yield(:phc_title_tagline) %>
5
7
  <!-- Title System -->
6
8
 
7
- <!-- Page Title Bar -->
8
- <section class="content-header">
9
- <!-- Page Title and BreadCrumb -->
10
- <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
11
- <ol class="breadcrumb">
12
- <li><%= yield(:phc_breadcrumb_one) %></li>
13
- <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
14
- </ol>
15
- <!-- Page Title and BreadCrumb -->
16
- </section>
17
- <!-- Page Title Bar -->
9
+ <!-- Page Bradcrumbs -->
10
+ <ol class="breadcrumb pull-right">
11
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
12
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
13
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
14
+ </ol>
15
+ <!-- Page Bradcrumbs -->
18
16
 
19
- <!-- Main Content -->
20
- <section class="content">
21
- <div class="row">
22
- <div class="col-lg-12">
23
- <div class="box">
24
- <div class="box-header with-border">
25
- <h3 class="box-title"><%= yield(:phc_title) %></h3>
26
- </div>
27
- <div class="box-body">
28
-
29
- <!-- Index Table -->
30
- <div class="table-responsive">
31
- <table class="table table-bordered table-striped table-hover">
32
- <thead>
33
- <tr>
34
- <th>Script Extension Name</th>
35
- <th>Script Extension</th>
36
- </tr>
37
- </thead>
38
- <tbody>
39
- <% @script_extensions.each do |script_extension| %>
40
- <tr>
41
- <td><%= link_to script_extension.scriptextensionname, script_extension %></td>
42
- <td><%= link_to script_extension.scriptextension, script_extension %></td>
43
- </tr>
44
- <% end %>
45
- </tbody>
46
- </table>
47
- </div>
48
- <!-- Index Table -->
49
-
50
- <!-- Panel Footer -->
51
- <div class="box-footer clearfix">
52
- <%= link_to 'New Script Extension', new_script_extension_path, class: "btn btn-primary" %>
53
- </div>
54
- <!-- Panel Footer -->
17
+ <!-- Page Header -->
18
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
+ <!-- Page Header -->
20
+
21
+ <!-- Page Content -->
22
+ <div class="panel panel-inverse">
23
+ <div class="panel-heading">
24
+ <div class="panel-heading-btn">
25
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
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
+ <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
+ </div>
29
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
30
+ </div>
31
+ <div class="panel-body">
32
+ <!-- Table - Article Index -->
33
+ <div class="table-responsive">
34
+ <table class="table table-striped table-bordered">
35
+ <thead>
36
+ <tr>
37
+ <th>Script Extension Name</th>
38
+ <th>Script Extension</th>
39
+ </tr>
40
+ </thead>
41
+ <tbody>
42
+ <% @script_extensions.each do |script_extension| %>
43
+ <tr>
44
+ <td><%= link_to script_extension.scriptextensionname, script_extension %></td>
45
+ <td><%= link_to script_extension.scriptextension, script_extension %></td>
46
+ </tr>
47
+ <% end %>
48
+ </tbody>
49
+ </table>
55
50
 
56
- </div>
57
- </div>
58
51
  </div>
59
52
  </div>
60
- </section>
61
- <!-- Main Content -->
53
+ </div>
54
+ <!-- Page Content -->
@@ -1,38 +1,39 @@
1
1
  <!-- Title System -->
2
2
  <% phc_title "Script Listings Manager" %>
3
3
  <% phc_title_tagline "Add a Script Extension" %>
4
- <% phc_breadcrumb_one link_to "Script Extension Index", phcscriptcdn.script_extensions_path %>
5
- <% phc_breadcrumb_two yield(:phc_title_tagline) %>
4
+ <% phc_breadcrumb_one link_to "Script Index", phcscriptcdn.script_listings_path %>
5
+ <% phc_breadcrumb_two link_to "Script Extension Index", phcscriptcdn.script_extensions_path %>
6
+ <% phc_breadcrumb_three yield(:phc_title_tagline) %>
6
7
  <!-- Title System -->
7
8
 
8
- <!-- Page Title Bar -->
9
- <section class="content-header">
10
- <!-- Page Title and BreadCrumb -->
11
- <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
12
- <ol class="breadcrumb">
13
- <li><%= yield(:phc_breadcrumb_one) %></li>
14
- <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
15
- </ol>
16
- <!-- Page Title and BreadCrumb -->
17
- </section>
18
- <!-- Page Title Bar -->
9
+ <!-- Page Bradcrumbs -->
10
+ <ol class="breadcrumb pull-right">
11
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
12
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
13
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
14
+ </ol>
15
+ <!-- Page Bradcrumbs -->
19
16
 
20
- <!-- Main Content -->
21
- <section class="content">
22
- <div class="row">
23
- <div class="col-lg-12">
24
- <div class="box">
25
- <div class="box-header with-border">
26
- <h3 class="box-title"><%= yield(:phc_title) %></h3>
27
- </div>
28
- <div class="box-body">
29
-
30
- <!-- Form Requries URL to Function Properly -->
31
- <%= render 'form', script_extension: @script_extension %>
32
-
33
- </div>
34
- </div>
17
+ <!-- Page Header -->
18
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
+ <!-- Page Header -->
20
+
21
+ <!-- Page Content -->
22
+ <div class="panel panel-inverse">
23
+ <div class="panel-heading">
24
+ <div class="panel-heading-btn">
25
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
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
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
35
28
  </div>
29
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
30
+ </div>
31
+ <div class="panel-body">
32
+
33
+ <!-- -->
34
+ <%= render 'form', script_extension: @script_extension %>
35
+ <!-- -->
36
+
36
37
  </div>
37
- </section>
38
- <!-- Main Content -->
38
+ </div>
39
+ <!-- Page Content -->
@@ -1,42 +1,52 @@
1
1
  <!-- Title System -->
2
2
  <% phc_title "Script Listings Manager" %>
3
3
  <% phc_title_tagline "Script Extension Details" %>
4
- <% phc_breadcrumb_one link_to "Script Extension Index", phcscriptcdn.script_extensions_path %>
5
- <% phc_breadcrumb_two yield(:phc_title_tagline) %>
4
+ <% phc_breadcrumb_one link_to "Script Index", phcscriptcdn.script_listings_path %>
5
+ <% phc_breadcrumb_two link_to "Script Extension Index", phcscriptcdn.script_extensions_path %>
6
+ <% phc_breadcrumb_three yield(:phc_title_tagline) %>
6
7
  <!-- Title System -->
7
8
 
8
- <!-- Page Title Bar -->
9
- <section class="content-header">
10
- <!-- Page Title and BreadCrumb -->
11
- <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
12
- <ol class="breadcrumb">
13
- <li><%= yield(:phc_breadcrumb_one) %></li>
14
- <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
15
- </ol>
16
- <!-- Page Title and BreadCrumb -->
17
- </section>
18
- <!-- Page Title Bar -->
19
-
20
- <!-- Main Content -->
21
- <section class="content">
22
- <div class="row">
23
- <div class="col-lg-12">
24
- <div class="box">
25
- <div class="box-header with-border">
26
- <h3 class="box-title"><%= yield(:phc_title) %></h3>
27
- </div>
28
- <div class="box-body">
9
+ <!-- Page Bradcrumbs -->
10
+ <ol class="breadcrumb pull-right">
11
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
12
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
13
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
14
+ </ol>
15
+ <!-- Page Bradcrumbs -->
16
+
17
+ <!-- Page Header -->
18
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
+ <!-- Page Header -->
20
+
21
+ <!-- Page Content -->
22
+ <div class="row">
29
23
 
30
- <!-- Show Content -->
31
- <div class="btn-group" role="group" aria-label="extension_button_group">
32
- <%= link_to 'Edit', edit_script_extension_path(@script_extension), class: "btn btn-primary" %>
33
- <%= link_to 'Destroy', script_extension_path(@script_extension), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-primary" %>
34
- </div>
35
- <!-- Show Content -->
24
+ <!-- Button Panel -->
25
+ <div class="col-lg-4">
36
26
 
27
+ <div class="panel panel-inverse">
28
+ <div class="panel-heading">
29
+ <div class="panel-heading-btn">
37
30
  </div>
38
31
  </div>
32
+ <div class="panel-body">
33
+
34
+ <div class="btn-group d-flex" role="group">
35
+ <%= link_to 'Update', phcscriptcdn.edit_script_extension_path, class: "btn btn-primary" %>
36
+ <%= link_to 'Remove', phcscriptcdn.script_extension_path, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
37
+ </div>
38
+
39
+ </div>
39
40
  </div>
41
+
40
42
  </div>
41
- </section>
42
- <!-- Main Content -->
43
+ <!-- Button Panel -->
44
+
45
+ <!-- Main Panel -->
46
+ <div class="col-lg-8">
47
+
48
+ </div>
49
+ <!-- Main Panel -->
50
+
51
+ </div>
52
+ <!-- Page Content -->
@@ -1,46 +1,46 @@
1
- <%= form_for(script_licence) do |f| %>
1
+ <%= form_with(model: script_licence, local: true) do |form_phc_scriptcdn_licence| %>
2
2
 
3
3
  <!-- PHCNotifi Render Validation -->
4
4
  <%= render 'phcnotifi/validations', :object => @script_licence %>
5
5
 
6
- <!-- Form Input Fields -->
6
+ <!-- Form_phc_scriptcdn_licence Input Fields -->
7
7
  <div class="form-group field_with_error">
8
- <%= f.label :lcncname, "Licence Name" %>
9
- <%= f.text_field :lcncname, placeholder: "Licence Name", class: "form-control" %>
8
+ <%= form_phc_scriptcdn_licence.label :lcncname, "Licence Name" %>
9
+ <%= form_phc_scriptcdn_licence.text_field :lcncname, placeholder: "Licence Name", class: "form-control" %>
10
10
  </div>
11
11
  <div class="form-group field_with_error">
12
- <%= f.label :lcncdescript, "Licence Description" %>
13
- <%= f.text_area :lcncdescript, placeholder: "Licence Descirption", class: "form-control" %>
12
+ <%= form_phc_scriptcdn_licence.label :lcncdescript, "Licence Description" %>
13
+ <%= form_phc_scriptcdn_licence.text_area :lcncdescript, placeholder: "Licence Descirption", class: "form-control" %>
14
14
  </div>
15
15
  <div class="form-group field_with_error">
16
- <%= f.label :lcnccomgpl, "GPL(v3) Compatible" %>
17
- <%= f.select( :lcnccomgpl, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
16
+ <%= form_phc_scriptcdn_licence.label :lcnccomgpl, "GPL(v3) Compatible" %>
17
+ <%= form_phc_scriptcdn_licence.select( :lcnccomgpl, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
18
18
  </div>
19
19
  <div class="form-group field_with_error">
20
- <%= f.label :lcncarvlfsf, "FSF Approval" %>
21
- <%= f.select( :lcncarvlfsf, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
20
+ <%= form_phc_scriptcdn_licence.label :lcncarvlfsf, "FSF Approval" %>
21
+ <%= form_phc_scriptcdn_licence.select( :lcncarvlfsf, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
22
22
  </div>
23
23
  <div class="form-group field_with_error">
24
- <%= f.label :lcncarvlosi, "OSI Approval" %>
25
- <%= f.select( :lcncarvlosi, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
24
+ <%= form_phc_scriptcdn_licence.label :lcncarvlosi, "OSI Approval" %>
25
+ <%= form_phc_scriptcdn_licence.select( :lcncarvlosi, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
26
26
  </div>
27
27
  <div class="form-group field_with_error">
28
- <%= f.label :lcncarvlcopyfree, "Copyfree Approval" %>
29
- <%= f.select( :lcncarvlcopyfree, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
28
+ <%= form_phc_scriptcdn_licence.label :lcncarvlcopyfree, "Copyfree Approval" %>
29
+ <%= form_phc_scriptcdn_licence.select( :lcncarvlcopyfree, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
30
30
  </div>
31
31
  <div class="form-group field_with_error">
32
- <%= f.label :lcncarvldebian, "Debian Approval" %>
33
- <%= f.select( :lcncarvldebian, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
32
+ <%= form_phc_scriptcdn_licence.label :lcncarvldebian, "Debian Approval" %>
33
+ <%= form_phc_scriptcdn_licence.select( :lcncarvldebian, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
34
34
  </div>
35
35
  <div class="form-group field_with_error">
36
- <%= f.label :lcncarvlfedora, "Fedora Approval" %>
37
- <%= f.select( :lcncarvlfedora, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
36
+ <%= form_phc_scriptcdn_licence.label :lcncarvlfedora, "Fedora Approval" %>
37
+ <%= form_phc_scriptcdn_licence.select( :lcncarvlfedora, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
38
38
  </div>
39
- <!-- Form Input Fields -->
39
+ <!-- Form_phc_scriptcdn_licence Input Fields -->
40
40
 
41
- <!-- Form Submition Button -->
41
+ <!-- Form_phc_scriptcdn_licence Submition Button -->
42
42
  <div class="actions">
43
- <%= f.submit class: "btn btn-primary" %>
43
+ <%= form_phc_scriptcdn_licence.submit class: "btn btn-primary" %>
44
44
  </div>
45
45
  <!-- For Submition Button -->
46
46
 
@@ -1,39 +1,39 @@
1
1
  <!-- Title System -->
2
2
  <% phc_title "Script Listings Manager" %>
3
3
  <% phc_title_tagline "Update Script Licence Information" %>
4
- <% phc_breadcrumb_one link_to "Script Licence Index", phcscriptcdn.script_licences_path %>
5
- <% phc_breadcrumb_two yield(:phc_title_tagline) %>
4
+ <% phc_breadcrumb_one link_to "Script Index", phcscriptcdn.script_listings_path %>
5
+ <% phc_breadcrumb_two link_to "Script Licence Index", phcscriptcdn.script_licences_path %>
6
+ <% phc_breadcrumb_three yield(:phc_title_tagline) %>
6
7
  <!-- Title System -->
7
8
 
8
- <!-- Page Title Bar -->
9
- <section class="content-header">
10
- <!-- Page Title and BreadCrumb -->
11
- <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
12
- <ol class="breadcrumb">
13
- <li><%= yield(:phc_breadcrumb_one) %></li>
14
- <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
15
- </ol>
16
- <!-- Page Title and BreadCrumb -->
17
- </section>
18
- <!-- Page Title Bar -->
9
+ <!-- Page Bradcrumbs -->
10
+ <ol class="breadcrumb pull-right">
11
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
12
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
13
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
14
+ </ol>
15
+ <!-- Page Bradcrumbs -->
19
16
 
20
- <!-- Main Content -->
21
- <section class="content">
22
- <div class="row">
23
- <div class="col-lg-12">
24
- <div class="box">
25
- <div class="box-header with-border">
26
- <h3 class="box-title"><%= yield(:phc_title) %></h3>
27
- </div>
28
- <div class="box-body">
29
-
30
- <!-- Page Form (Edit) -->
31
- <%= render 'form', script_licence: @script_licence %>
32
- <!-- Page Form (Edit) -->
33
-
34
- </div>
35
- </div>
17
+ <!-- Page Header -->
18
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
+ <!-- Page Header -->
20
+
21
+ <!-- Page Content -->
22
+ <div class="panel panel-inverse">
23
+ <div class="panel-heading">
24
+ <div class="panel-heading-btn">
25
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
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
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
36
28
  </div>
29
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
30
+ </div>
31
+ <div class="panel-body">
32
+
33
+ <!-- -->
34
+ <%= render 'form', script_licence: @script_licence %>
35
+ <!-- -->
36
+
37
37
  </div>
38
- </section>
39
- <!-- Main Content -->
38
+ </div>
39
+ <!-- Page Content -->
@@ -1,71 +1,64 @@
1
1
  <!-- Title System -->
2
2
  <% phc_title "Script Listings Manager" %>
3
3
  <% phc_title_tagline "Script Licence Index" %>
4
- <% phc_breadcrumb_one yield(:phc_title_tagline) %>
4
+ <% phc_breadcrumb_one link_to "Script Index", phcscriptcdn.script_listings_path %>
5
+ <% phc_breadcrumb_two link_to "Script Licence Index", phcscriptcdn.script_licences_path %>
6
+ <% phc_breadcrumb_three yield(:phc_title_tagline) %>
5
7
  <!-- Title System -->
6
8
 
7
- <!-- Page Title Bar -->
8
- <section class="content-header">
9
- <!-- Page Title and BreadCrumb -->
10
- <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
11
- <ol class="breadcrumb">
12
- <li><%= yield(:phc_breadcrumb_one) %></li>
13
- <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
14
- </ol>
15
- <!-- Page Title and BreadCrumb -->
16
- </section>
17
- <!-- Page Title Bar -->
9
+ <!-- Page Bradcrumbs -->
10
+ <ol class="breadcrumb pull-right">
11
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
12
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
13
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_three) %></li>
14
+ </ol>
15
+ <!-- Page Bradcrumbs -->
18
16
 
19
- <!-- Main Content -->
20
- <section class="content">
21
- <div class="row">
22
- <div class="col-lg-12">
23
- <div class="box">
24
- <div class="box-header with-border">
25
- <h3 class="box-title"><%= yield(:phc_title) %></h3>
26
- </div>
27
- <div class="box-body">
28
-
29
- <!-- Index Table -->
30
- <div class="table-responsive">
31
- <table class="table table-bordered table-striped table-hover">
32
- <thead>
33
- <tr>
34
- <th>Licence Name</th>
35
- <th>GPLv3 Compatible</th>
36
- <th>FSF Approval</th>
37
- <th>OSI Approval</th>
38
- <th>CopyFree Approval</th>
39
- <th>Debian Approval</th>
40
- <th>Fedora Approval</th>
41
- </tr>
42
- </thead>
43
- <tbody>
44
- <% @script_licences.each do |script_licence| %>
45
- <tr>
46
- <td><%= link_to script_licence.lcncname, script_licence %></td>
47
- <td><%= link_to script_licence.lcnccomgpl, script_licence %></td>
48
- <td><%= link_to script_licence.lcncarvlfsf, script_licence %></td>
49
- <td><%= link_to script_licence.lcncarvlosi, script_licence %></td>
50
- <td><%= link_to script_licence.lcncarvlcopyfree, script_licence %></td>
51
- <td><%= link_to script_licence.lcncarvldebian, script_licence %></td>
52
- <td><%= link_to script_licence.lcncarvlfedora, script_licence %></td>
53
- </tr>
54
- <% end %>
55
- </tbody>
56
- </table>
57
- </div>
58
- <!-- Index Table -->
59
-
60
- <!-- Panel Footer -->
61
- <div class="box-footer clearfix">
62
- <%= link_to 'New Script Licence', new_script_licence_path, class: "btn btn-primary" %>
63
- </div>
64
- <!-- Panel Footer -->
17
+ <!-- Page Header -->
18
+ <h1 class="page-header"><%= yield(:phc_title) %></h1>
19
+ <!-- Page Header -->
20
+
21
+ <!-- Page Content -->
22
+ <div class="panel panel-inverse">
23
+ <div class="panel-heading">
24
+ <div class="panel-heading-btn">
25
+ <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
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
+ <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
+ </div>
29
+ <h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
30
+ </div>
31
+ <div class="panel-body">
32
+ <!-- Table - Article Index -->
33
+ <div class="table-responsive">
34
+ <table class="table table-striped table-bordered">
35
+ <thead>
36
+ <tr>
37
+ <th>Licence Name</th>
38
+ <th>GPLv3 Compatible</th>
39
+ <th>FSF Approval</th>
40
+ <th>OSI Approval</th>
41
+ <th>CopyFree Approval</th>
42
+ <th>Debian Approval</th>
43
+ <th>Fedora Approval</th>
44
+ </tr>
45
+ </thead>
46
+ <tbody>
47
+ <% @script_licences.each do |script_licence| %>
48
+ <tr>
49
+ <td><%= link_to script_licence.lcncname, script_licence %></td>
50
+ <td><%= link_to script_licence.lcnccomgpl, script_licence %></td>
51
+ <td><%= link_to script_licence.lcncarvlfsf, script_licence %></td>
52
+ <td><%= link_to script_licence.lcncarvlosi, script_licence %></td>
53
+ <td><%= link_to script_licence.lcncarvlcopyfree, script_licence %></td>
54
+ <td><%= link_to script_licence.lcncarvldebian, script_licence %></td>
55
+ <td><%= link_to script_licence.lcncarvlfedora, script_licence %></td>
56
+ </tr>
57
+ <% end %>
58
+ </tbody>
59
+ </table>
65
60
 
66
- </div>
67
- </div>
68
61
  </div>
69
62
  </div>
70
- </section>
71
- <!-- Main Content -->
63
+ </div>
64
+ <!-- Page Content -->