phcscriptcdn 49.0.0 → 50.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/phcscriptcdn/application.scss +1 -1
- data/app/controllers/phcscriptcdn/application_controller.rb +10 -5
- data/app/controllers/phcscriptcdn/script/authors_controller.rb +2 -7
- data/app/controllers/phcscriptcdn/script/extensions_controller.rb +3 -8
- data/app/controllers/phcscriptcdn/script/licences_controller.rb +2 -7
- data/app/controllers/phcscriptcdn/script/listings_controller.rb +5 -8
- data/app/controllers/phcscriptcdn/script/urls_controller.rb +1 -6
- data/app/controllers/phcscriptcdn/script/versions_controller.rb +2 -7
- data/app/models/phcscriptcdn/script/author.rb +1 -1
- data/app/models/phcscriptcdn/script/extension.rb +4 -4
- data/app/models/phcscriptcdn/script/licence.rb +3 -3
- data/app/models/phcscriptcdn/script/listing.rb +21 -4
- data/app/models/phcscriptcdn/script/url.rb +5 -5
- data/app/models/phcscriptcdn/script/version.rb +3 -3
- data/app/views/layouts/phcscriptcdn/application.html.erb +21 -22
- data/app/views/layouts/phcscriptcdn/components/backend/navigation/_top_menu.html.erb +0 -41
- data/app/views/phcscriptcdn/script/authors/_form.html.erb +8 -8
- data/app/views/phcscriptcdn/script/authors/edit.html.erb +2 -4
- data/app/views/phcscriptcdn/script/authors/index.html.erb +10 -8
- data/app/views/phcscriptcdn/script/authors/new.html.erb +2 -5
- data/app/views/phcscriptcdn/script/extensions/_form.html.erb +6 -6
- data/app/views/phcscriptcdn/script/extensions/index.html.erb +8 -7
- data/app/views/phcscriptcdn/script/licences/_form.html.erb +16 -16
- data/app/views/phcscriptcdn/script/licences/index.html.erb +13 -12
- data/app/views/phcscriptcdn/script/listings/_form.html.erb +26 -33
- data/app/views/phcscriptcdn/script/listings/edit.html.erb +1 -4
- data/app/views/phcscriptcdn/script/listings/index.html.erb +14 -13
- data/app/views/phcscriptcdn/script/listings/new.html.erb +2 -4
- data/app/views/phcscriptcdn/script/urls/_form.html.erb +8 -8
- data/app/views/phcscriptcdn/script/urls/index.html.erb +9 -8
- data/app/views/phcscriptcdn/script/versions/_form.html.erb +2 -2
- data/app/views/phcscriptcdn/script/versions/index.html.erb +7 -6
- data/db/migrate/20160821183652_create_phcscriptcdn_script_listings.rb +10 -12
- data/db/migrate/20160821183714_create_phcscriptcdn_script_authors.rb +4 -5
- data/db/migrate/20160821183735_create_phcscriptcdn_script_extensions.rb +3 -4
- data/db/migrate/20160821183805_create_phcscriptcdn_script_licences.rb +8 -10
- data/db/migrate/20160821183830_create_phcscriptcdn_script_urls.rb +4 -5
- data/db/migrate/20160821183946_create_phcscriptcdn_script_versions.rb +1 -2
- data/db/migrate/20170509002355_create_phcscriptcdn_friendly_id_slugs.rb +2 -2
- data/db/migrate/20170517064030_create_phcscriptcdn_extension_versions.rb +1 -1
- data/db/migrate/20170517064049_create_phcscriptcdn_listing_versions.rb +1 -1
- data/db/migrate/20170517064114_create_phcscriptcdn_scriptversion_versions.rb +1 -1
- data/db/migrate/20170517064150_create_phcscriptcdn_url_versions.rb +17 -17
- data/db/migrate/20170517064208_create_phcscriptcdn_author_versions.rb +1 -1
- data/db/migrate/20170517064427_create_phcscriptcdn_licence_versions.rb +1 -1
- data/lib/phcscriptcdn/version.rb +1 -1
- metadata +2 -2
@@ -2,15 +2,13 @@
|
|
2
2
|
<% phc_title "Script Authors" %>
|
3
3
|
<% phc_title_tagline "Author Index" %>
|
4
4
|
<% phc_breadcrumb_one link_to "Script Index", phcscriptcdn.script_listings_path %>
|
5
|
-
<% phc_breadcrumb_two
|
6
|
-
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
7
6
|
<!-- Title System -->
|
8
7
|
|
9
8
|
<!-- Page Bradcrumbs -->
|
10
9
|
<ol class="breadcrumb pull-right">
|
11
10
|
<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>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
14
12
|
</ol>
|
15
13
|
<!-- Page Bradcrumbs -->
|
16
14
|
|
@@ -43,14 +41,18 @@
|
|
43
41
|
<tbody>
|
44
42
|
<% @script_authors.each do |script_author| %>
|
45
43
|
<tr>
|
46
|
-
<td><%= link_to script_author.
|
47
|
-
<td><%= link_to script_author.
|
48
|
-
<td><%= link_to script_author.
|
49
|
-
<td><%= link_to script_author.
|
44
|
+
<td><%= link_to script_author.author_first_name, script_author %></td>
|
45
|
+
<td><%= link_to script_author.author_last_name, script_author %></td>
|
46
|
+
<td><%= link_to script_author.author_website, script_author %></td>
|
47
|
+
<td><%= link_to script_author.author_github, script_author %></td>
|
50
48
|
</tr>
|
51
49
|
<% end %>
|
52
50
|
</tbody>
|
53
51
|
</table>
|
52
|
+
<%= link_to phcscriptcdn.new_script_author_path, class: "btn btn-primary btn-sm" do %>
|
53
|
+
<i class="fas fa-plus-circle"></i>
|
54
|
+
<%= "Add a New Script Author" %>
|
55
|
+
<% end %>
|
54
56
|
</div>
|
55
57
|
</div>
|
56
58
|
</div>
|
@@ -29,12 +29,9 @@
|
|
29
29
|
<h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
|
30
30
|
</div>
|
31
31
|
<div class="panel-body">
|
32
|
-
|
33
|
-
<!-- -->
|
32
|
+
<!-- Form for Script Author New -->
|
34
33
|
<%= render 'form', script_author: @script_author %>
|
35
|
-
<!-- -->
|
36
|
-
|
34
|
+
<!-- Form for Script Author New -->
|
37
35
|
</div>
|
38
36
|
</div>
|
39
37
|
<!-- Page Content -->
|
40
|
-
|
@@ -5,16 +5,16 @@
|
|
5
5
|
|
6
6
|
<!-- Form_phc_scriptcdn_extension Input Fields -->
|
7
7
|
<div class="form-group field_with_error">
|
8
|
-
<%= form_phc_scriptcdn_extension.label :
|
9
|
-
<%= form_phc_scriptcdn_extension.text_field :
|
8
|
+
<%= form_phc_scriptcdn_extension.label :script_extension_name, "Extension Name" %>
|
9
|
+
<%= form_phc_scriptcdn_extension.text_field :script_extension_name, placeholder: "Extension Name", class: "form-control" %>
|
10
10
|
</div>
|
11
11
|
<div class="form-group field_with_error">
|
12
|
-
<%= form_phc_scriptcdn_extension.label :
|
13
|
-
<%= form_phc_scriptcdn_extension.text_area :
|
12
|
+
<%= form_phc_scriptcdn_extension.label :script_extension_description, "Extension Description" %>
|
13
|
+
<%= form_phc_scriptcdn_extension.text_area :script_extension_description, placeholder: "Extension Description", class: "form-control" %>
|
14
14
|
</div>
|
15
15
|
<div class="form-group field_with_error">
|
16
|
-
<%= form_phc_scriptcdn_extension.label :
|
17
|
-
<%= form_phc_scriptcdn_extension.text_field :
|
16
|
+
<%= form_phc_scriptcdn_extension.label :script_extension, "Script Extension" %>
|
17
|
+
<%= form_phc_scriptcdn_extension.text_field :script_extension, placeholder: "Script Extension (.js/.css)", class: "form-control" %>
|
18
18
|
</div>
|
19
19
|
<!-- Form_phc_scriptcdn_extension Input Fields -->
|
20
20
|
|
@@ -2,15 +2,13 @@
|
|
2
2
|
<% phc_title "Script Listings Manager" %>
|
3
3
|
<% phc_title_tagline "Script Extension Index" %>
|
4
4
|
<% phc_breadcrumb_one link_to "Script Index", phcscriptcdn.script_listings_path %>
|
5
|
-
<% phc_breadcrumb_two
|
6
|
-
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
7
6
|
<!-- Title System -->
|
8
7
|
|
9
8
|
<!-- Page Bradcrumbs -->
|
10
9
|
<ol class="breadcrumb pull-right">
|
11
10
|
<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>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
14
12
|
</ol>
|
15
13
|
<!-- Page Bradcrumbs -->
|
16
14
|
|
@@ -41,13 +39,16 @@
|
|
41
39
|
<tbody>
|
42
40
|
<% @script_extensions.each do |script_extension| %>
|
43
41
|
<tr>
|
44
|
-
<td><%= link_to script_extension.
|
45
|
-
<td><%= link_to script_extension.
|
42
|
+
<td><%= link_to script_extension.script_extension_name, script_extension %></td>
|
43
|
+
<td><%= link_to script_extension.script_extension, script_extension %></td>
|
46
44
|
</tr>
|
47
45
|
<% end %>
|
48
46
|
</tbody>
|
49
47
|
</table>
|
50
|
-
|
48
|
+
<%= link_to phcscriptcdn.new_script_extension_path, class: "btn btn-primary" do %>
|
49
|
+
<i class="fas fa-plus-circle"></i>
|
50
|
+
<%= "Add a New Extension" %>
|
51
|
+
<% end %>
|
51
52
|
</div>
|
52
53
|
</div>
|
53
54
|
</div>
|
@@ -5,36 +5,36 @@
|
|
5
5
|
|
6
6
|
<!-- Form_phc_scriptcdn_licence Input Fields -->
|
7
7
|
<div class="form-group field_with_error">
|
8
|
-
<%= form_phc_scriptcdn_licence.label :
|
9
|
-
<%= form_phc_scriptcdn_licence.text_field :
|
8
|
+
<%= form_phc_scriptcdn_licence.label :licence_name, "Licence Name" %>
|
9
|
+
<%= form_phc_scriptcdn_licence.text_field :licence_name, placeholder: "Licence Name", class: "form-control" %>
|
10
10
|
</div>
|
11
11
|
<div class="form-group field_with_error">
|
12
|
-
<%= form_phc_scriptcdn_licence.label :
|
13
|
-
<%= form_phc_scriptcdn_licence.text_area :
|
12
|
+
<%= form_phc_scriptcdn_licence.label :licence_description, "Licence Description" %>
|
13
|
+
<%= form_phc_scriptcdn_licence.text_area :licence_description, placeholder: "Licence Descirption", class: "form-control" %>
|
14
14
|
</div>
|
15
15
|
<div class="form-group field_with_error">
|
16
|
-
<%= form_phc_scriptcdn_licence.label :
|
17
|
-
<%= form_phc_scriptcdn_licence.select( :
|
16
|
+
<%= form_phc_scriptcdn_licence.label :licence_compatible_gpl, "GPL(v3) Compatible" %>
|
17
|
+
<%= form_phc_scriptcdn_licence.select( :licence_compatible_gpl, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
|
18
18
|
</div>
|
19
19
|
<div class="form-group field_with_error">
|
20
|
-
<%= form_phc_scriptcdn_licence.label :
|
21
|
-
<%= form_phc_scriptcdn_licence.select( :
|
20
|
+
<%= form_phc_scriptcdn_licence.label :licence_approval_fsf, "FSF Approval" %>
|
21
|
+
<%= form_phc_scriptcdn_licence.select( :licence_approval_fsf, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
|
22
22
|
</div>
|
23
23
|
<div class="form-group field_with_error">
|
24
|
-
<%= form_phc_scriptcdn_licence.label :
|
25
|
-
<%= form_phc_scriptcdn_licence.select( :
|
24
|
+
<%= form_phc_scriptcdn_licence.label :licence_approval_osi, "OSI Approval" %>
|
25
|
+
<%= form_phc_scriptcdn_licence.select( :licence_approval_osi, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
|
26
26
|
</div>
|
27
27
|
<div class="form-group field_with_error">
|
28
|
-
<%= form_phc_scriptcdn_licence.label :
|
29
|
-
<%= form_phc_scriptcdn_licence.select( :
|
28
|
+
<%= form_phc_scriptcdn_licence.label :licence_approval_copyfree, "Copyfree Approval" %>
|
29
|
+
<%= form_phc_scriptcdn_licence.select( :licence_approval_copyfree, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
|
30
30
|
</div>
|
31
31
|
<div class="form-group field_with_error">
|
32
|
-
<%= form_phc_scriptcdn_licence.label :
|
33
|
-
<%= form_phc_scriptcdn_licence.select( :
|
32
|
+
<%= form_phc_scriptcdn_licence.label :licence_approval_debian, "Debian Approval" %>
|
33
|
+
<%= form_phc_scriptcdn_licence.select( :licence_approval_debian, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
|
34
34
|
</div>
|
35
35
|
<div class="form-group field_with_error">
|
36
|
-
<%= form_phc_scriptcdn_licence.label :
|
37
|
-
<%= form_phc_scriptcdn_licence.select( :
|
36
|
+
<%= form_phc_scriptcdn_licence.label :licence_approval_fedora, "Fedora Approval" %>
|
37
|
+
<%= form_phc_scriptcdn_licence.select( :licence_approval_fedora, [['No','No'],['Yes','Yes']], {}, {class: "form-control"}) %>
|
38
38
|
</div>
|
39
39
|
<!-- Form_phc_scriptcdn_licence Input Fields -->
|
40
40
|
|
@@ -2,15 +2,13 @@
|
|
2
2
|
<% phc_title "Script Listings Manager" %>
|
3
3
|
<% phc_title_tagline "Script Licence Index" %>
|
4
4
|
<% phc_breadcrumb_one link_to "Script Index", phcscriptcdn.script_listings_path %>
|
5
|
-
<% phc_breadcrumb_two
|
6
|
-
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
7
6
|
<!-- Title System -->
|
8
7
|
|
9
8
|
<!-- Page Bradcrumbs -->
|
10
9
|
<ol class="breadcrumb pull-right">
|
11
10
|
<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>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
14
12
|
</ol>
|
15
13
|
<!-- Page Bradcrumbs -->
|
16
14
|
|
@@ -46,18 +44,21 @@
|
|
46
44
|
<tbody>
|
47
45
|
<% @script_licences.each do |script_licence| %>
|
48
46
|
<tr>
|
49
|
-
<td><%= link_to script_licence.
|
50
|
-
<td><%= link_to script_licence.
|
51
|
-
<td><%= link_to script_licence.
|
52
|
-
<td><%= link_to script_licence.
|
53
|
-
<td><%= link_to script_licence.
|
54
|
-
<td><%= link_to script_licence.
|
55
|
-
<td><%= link_to script_licence.
|
47
|
+
<td><%= link_to script_licence.licence_name, script_licence %></td>
|
48
|
+
<td><%= link_to script_licence.licence_compatible_gpl, script_licence %></td>
|
49
|
+
<td><%= link_to script_licence.licence_approval_fsf, script_licence %></td>
|
50
|
+
<td><%= link_to script_licence.licence_approval_osi, script_licence %></td>
|
51
|
+
<td><%= link_to script_licence.licence_approval_copyfree, script_licence %></td>
|
52
|
+
<td><%= link_to script_licence.licence_approval_debian, script_licence %></td>
|
53
|
+
<td><%= link_to script_licence.licence_approval_fedora, script_licence %></td>
|
56
54
|
</tr>
|
57
55
|
<% end %>
|
58
56
|
</tbody>
|
59
57
|
</table>
|
60
|
-
|
58
|
+
<%= link_to phcscriptcdn.new_script_licence_path, class: "btn btn-primary btn-sm" do %>
|
59
|
+
<i class="fas fa-plus-circle"></i>
|
60
|
+
<%= "Add a New Licence" %>
|
61
|
+
<% end %>
|
61
62
|
</div>
|
62
63
|
</div>
|
63
64
|
</div>
|
@@ -1,67 +1,60 @@
|
|
1
|
-
<%= form_with(model: script_listing, local: true) do |
|
1
|
+
<%= form_with(model: script_listing, local: true) do |phc_scriptcdn_pro_listings| %>
|
2
2
|
|
3
|
-
<!--
|
3
|
+
<!-- Validation System -->
|
4
4
|
<%= render 'phcnotifi/validations', :object => @script_listing %>
|
5
|
+
<!-- Validation System -->
|
5
6
|
|
6
|
-
<!-- Form_phc_scriptcdn_listings Input Fields -->
|
7
7
|
<div class="form-group field_with_error">
|
8
|
-
<%=
|
9
|
-
<%=
|
8
|
+
<%= phc_scriptcdn_pro_listings.label :script_tittle %>
|
9
|
+
<%= phc_scriptcdn_pro_listings.text_field :script_tittle, placeholder: "Script Title", class: "form-control" %>
|
10
10
|
</div>
|
11
11
|
<div class="form-group field_with_error">
|
12
|
-
<%=
|
13
|
-
<%=
|
12
|
+
<%= phc_scriptcdn_pro_listings.label :script_description, "Script Description" %>
|
13
|
+
<%= phc_scriptcdn_pro_listings.text_area :script_description, placeholder: "Script Description", class: "form-control" %>
|
14
14
|
</div>
|
15
15
|
<div class="form-group field_with_error">
|
16
|
-
<%=
|
17
|
-
<%=
|
16
|
+
<%= phc_scriptcdn_pro_listings.label :script_source, "Script Source Code" %>
|
17
|
+
<%= phc_scriptcdn_pro_listings.text_field :script_source, placeholder: "Script Source", class: "form-control" %>
|
18
18
|
</div>
|
19
19
|
<div class="form-group field_with_error">
|
20
|
-
<%=
|
21
|
-
<%=
|
20
|
+
<%= phc_scriptcdn_pro_listings.label :script_website, "Script Website" %>
|
21
|
+
<%= phc_scriptcdn_pro_listings.text_field :script_website, placeholder: "Script Website", class: "form-control" %>
|
22
22
|
</div>
|
23
23
|
<div class="form-group field_with_error">
|
24
|
-
<%=
|
25
|
-
<%=
|
24
|
+
<%= phc_scriptcdn_pro_listings.label :script_github, "Script Github" %>
|
25
|
+
<%= phc_scriptcdn_pro_listings.text_field :script_github, placeholder: "Script Github Address", class: "form-control" %>
|
26
26
|
</div>
|
27
27
|
<div class="form-group field_with_error">
|
28
|
-
<%=
|
29
|
-
<%=
|
28
|
+
<%= phc_scriptcdn_pro_listings.label :script_initial_release, "Initial Release" %>
|
29
|
+
<%= phc_scriptcdn_pro_listings.date_select :script_initial_release, start_year: 1981, class: "form-control" %>
|
30
30
|
</div>
|
31
31
|
<div class="form-group field_with_error">
|
32
|
-
<%=
|
33
|
-
<%=
|
32
|
+
<%= phc_scriptcdn_pro_listings.label :script_lastest_release, "Latest Release" %>
|
33
|
+
<%= phc_scriptcdn_pro_listings.date_select :script_lastest_release, start_year: 1981, class: "form-control" %>
|
34
34
|
</div>
|
35
35
|
<div class="form-group field_with_error">
|
36
|
-
<%=
|
37
|
-
<%=
|
36
|
+
<%= phc_scriptcdn_pro_listings.label :script_beta_release, "Preview Release" %>
|
37
|
+
<%= phc_scriptcdn_pro_listings.date_select :script_beta_release, start_year: 1981, class: "form-control" %>
|
38
38
|
</div>
|
39
39
|
<div class="form-group field_with_error">
|
40
|
-
<%=
|
41
|
-
<%=
|
42
|
-
</div>
|
43
|
-
<div class="form-group field_with_errors">
|
44
|
-
<label>Script Version</label>
|
45
|
-
<%= collection_select(:script_listing, :version_id, Phcscriptcdn::Script::Version.order('scriptversion'), :id, :scriptversion, {}, {class: "form-control"}) %>
|
40
|
+
<%= phc_scriptcdn_pro_listings.label :script_lastest_release_cdn, "Script CDN Release" %>
|
41
|
+
<%= phc_scriptcdn_pro_listings.date_select :script_lastest_release_cdn, start_year: 1981, class: "form-control" %>
|
46
42
|
</div>
|
47
43
|
<div class="form-group field_with_errors">
|
48
44
|
<label>Script Licence</label>
|
49
|
-
<%= collection_select(:script_listing, :licence_id, Phcscriptcdn::Script::Licence.order('
|
45
|
+
<%= collection_select(:script_listing, :licence_id, Phcscriptcdn::Script::Licence.order('licence_name'), :id, :licence_name, {}, {class: "form-control"}) %>
|
50
46
|
</div>
|
51
47
|
<div class="form-group field_with_errors">
|
52
48
|
<label>Script Author</label>
|
53
|
-
<%= collection_select(:script_listing, :author_id, Phcscriptcdn::Script::Author.order('
|
49
|
+
<%= collection_select(:script_listing, :author_id, Phcscriptcdn::Script::Author.order('author_first_name'), :id, :author_first_name, {}, {class: "form-control"}) %>
|
54
50
|
</div>
|
55
51
|
<div class="form-group field_with_error">
|
56
|
-
<%=
|
57
|
-
<%=
|
52
|
+
<%= phc_scriptcdn_pro_listings.label :script_status, "Script Status" %>
|
53
|
+
<%= phc_scriptcdn_pro_listings.select( :script_status, [['Active','Active'],['Outdated','Out Dated'],['Deactivated','Not Active']], {}, {class: "form-control"}) %>
|
58
54
|
</div>
|
59
|
-
<!-- Form_phc_scriptcdn_listings Input Fields -->
|
60
55
|
|
61
|
-
<!-- Form_phc_scriptcdn_listings Submition Button -->
|
62
56
|
<div class="actions">
|
63
|
-
<%=
|
57
|
+
<%= phc_scriptcdn_pro_listings.submit class: "btn btn-primary" %>
|
64
58
|
</div>
|
65
|
-
<!-- For Submition Button -->
|
66
59
|
|
67
60
|
<% end %>
|
@@ -27,12 +27,9 @@
|
|
27
27
|
<h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
|
28
28
|
</div>
|
29
29
|
<div class="panel-body">
|
30
|
-
|
31
|
-
<!-- -->
|
30
|
+
<!-- Form for Edit Script Listings -->
|
32
31
|
<%= render 'form', script_listing: @script_listing %>
|
33
32
|
<!-- Form for Edit Script Listings -->
|
34
|
-
<!-- -->
|
35
|
-
|
36
33
|
</div>
|
37
34
|
</div>
|
38
35
|
<!-- Page Content -->
|
@@ -2,13 +2,11 @@
|
|
2
2
|
<% phc_title "Script Listings Manager" %>
|
3
3
|
<% phc_title_tagline "Script Listing Index" %>
|
4
4
|
<% phc_breadcrumb_one yield(:phc_title_tagline) %>
|
5
|
-
<% phc_breadcrumb_two link_to "Script Index", phcscriptcdn.script_listings_path %>
|
6
5
|
<!-- Title System -->
|
7
6
|
|
8
7
|
<!-- Page Bradcrumbs -->
|
9
8
|
<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>
|
9
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_one) %></li>
|
12
10
|
</ol>
|
13
11
|
<!-- Page Bradcrumbs -->
|
14
12
|
|
@@ -37,19 +35,22 @@
|
|
37
35
|
<th>Latest Release Date</th>
|
38
36
|
<th>Beta Release Date</th>
|
39
37
|
</tr>
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
38
|
+
</thead>
|
39
|
+
<tbody>
|
40
|
+
<% @script_listings.each do |script_listing| %>
|
41
|
+
<tr>
|
42
|
+
<td class="vert-align"><%= link_to script_listing.script_tittle, script_listing_path(script_listing) %></td>
|
43
|
+
<td class="vert-align"><%= link_to script_listing.script_initial_release, script_listing_path(script_listing) %></td>
|
44
|
+
<td class="vert-align"><%= link_to script_listing.script_lastest_release, script_listing_path(script_listing) %></td>
|
45
|
+
<td class="vert-align"><%= link_to script_listing.script_beta_release, script_listing_path(script_listing) %></td>
|
46
|
+
</tr>
|
49
47
|
<% end %>
|
50
48
|
</tbody>
|
51
49
|
</table>
|
52
|
-
|
50
|
+
<%= link_to phcscriptcdn.new_script_listing_path, class: "btn btn-primary" do %>
|
51
|
+
<i class="fas fa-plus-circle"></i>
|
52
|
+
<%= "Add a New Script CDN Listing" %>
|
53
|
+
<% end %>
|
53
54
|
</div>
|
54
55
|
</div>
|
55
56
|
</div>
|
@@ -27,11 +27,9 @@
|
|
27
27
|
<h4 class="panel-title"><%= yield(:phc_title_tagline) %></h4>
|
28
28
|
</div>
|
29
29
|
<div class="panel-body">
|
30
|
-
|
31
|
-
<!-- -->
|
30
|
+
<!-- Form for New Script Listings -->
|
32
31
|
<%= render 'form', script_listing: @script_listing %>
|
33
|
-
<!--
|
34
|
-
|
32
|
+
<!-- Form for New Script Listings -->
|
35
33
|
</div>
|
36
34
|
</div>
|
37
35
|
<!-- Page Content -->
|
@@ -5,24 +5,24 @@
|
|
5
5
|
|
6
6
|
<!-- Form Input Fields -->
|
7
7
|
<div class="form-group field_with_error">
|
8
|
-
<%= form_phc_scriptcdn_urls.label :
|
9
|
-
<%= form_phc_scriptcdn_urls.text_field :
|
8
|
+
<%= form_phc_scriptcdn_urls.label :script_url, "Script URL" %>
|
9
|
+
<%= form_phc_scriptcdn_urls.text_field :script_url, placeholder: "Script URL", class: "form-control" %>
|
10
10
|
</div>
|
11
11
|
<div class="form-group field_with_error">
|
12
|
-
<%= form_phc_scriptcdn_urls.label :
|
13
|
-
<%= form_phc_scriptcdn_urls.date_select :
|
12
|
+
<%= form_phc_scriptcdn_urls.label :script_url_release, "Initial Release" %>
|
13
|
+
<%= form_phc_scriptcdn_urls.date_select :script_url_release, class: "form-control" %>
|
14
14
|
</div>
|
15
15
|
<div class="form-group field_with_error">
|
16
|
-
<%= form_phc_scriptcdn_urls.label :
|
17
|
-
<%= form_phc_scriptcdn_urls.date_select :
|
16
|
+
<%= form_phc_scriptcdn_urls.label :script_url_cdn_update, "Latest Release" %>
|
17
|
+
<%= form_phc_scriptcdn_urls.date_select :script_url_cdn_update, class: "form-control" %>
|
18
18
|
</div>
|
19
19
|
<div class="form-group field_with_errors">
|
20
20
|
<label>Script Version</label>
|
21
|
-
<%= collection_select(:script_url, :version_id, Phcscriptcdn::Script::Version.order('
|
21
|
+
<%= collection_select(:script_url, :version_id, Phcscriptcdn::Script::Version.order('script_version_number'), :id, :script_version_number, {}, {class: "form-control"}) %>
|
22
22
|
</div>
|
23
23
|
<div class="form-group field_with_errors">
|
24
24
|
<label>Script Extensions</label>
|
25
|
-
<%= collection_select(:script_url, :extension_id, Phcscriptcdn::Script::Extension.order('
|
25
|
+
<%= collection_select(:script_url, :extension_id, Phcscriptcdn::Script::Extension.order('script_extension_name'), :id, :script_extension, {}, {class: "form-control"}) %>
|
26
26
|
</div>
|
27
27
|
<!-- Form Input Fields -->
|
28
28
|
|
@@ -2,15 +2,13 @@
|
|
2
2
|
<% phc_title "Script Listings Manager" %>
|
3
3
|
<% phc_title_tagline "Script URL Index" %>
|
4
4
|
<% phc_breadcrumb_one link_to "Script Index", phcscriptcdn.script_listings_path %>
|
5
|
-
<% phc_breadcrumb_two
|
6
|
-
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
7
6
|
<!-- Title System -->
|
8
7
|
|
9
8
|
<!-- Page Bradcrumbs -->
|
10
9
|
<ol class="breadcrumb pull-right">
|
11
10
|
<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>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
14
12
|
</ol>
|
15
13
|
<!-- Page Bradcrumbs -->
|
16
14
|
|
@@ -42,14 +40,17 @@
|
|
42
40
|
<tbody>
|
43
41
|
<% @script_urls.each do |script_url| %>
|
44
42
|
<tr>
|
45
|
-
<td><%= link_to script_url.
|
46
|
-
<td><%= link_to script_url.
|
47
|
-
<td><%= link_to script_url.
|
43
|
+
<td><%= link_to script_url.script_url, script_listing_url_path(script_url.listing, script_url) %></td>
|
44
|
+
<td><%= link_to script_url.script_url_release, script_listing_url_path(script_url.listing, script_url) %></td>
|
45
|
+
<td><%= link_to script_url.script_url_cdn_update, script_listing_url_path(script_url.listing, script_url) %></td>
|
48
46
|
</tr>
|
49
47
|
<% end %>
|
50
48
|
</tbody>
|
51
49
|
</table>
|
52
|
-
|
50
|
+
<%= link_to phcscriptcdn.new_script_listing_url_path, class: "btn btn-primary" do %>
|
51
|
+
<i class="fas fa-plus-circle"></i>
|
52
|
+
<%= "Add a New CDN URL" %>
|
53
|
+
<% end %>
|
53
54
|
</div>
|
54
55
|
</div>
|
55
56
|
</div>
|
@@ -5,8 +5,8 @@
|
|
5
5
|
|
6
6
|
<!-- Form Input Fields -->
|
7
7
|
<div class="form-group field_with_error">
|
8
|
-
<%= form_phc_scriptcdn_versions.label :
|
9
|
-
<%= form_phc_scriptcdn_versions.text_field :
|
8
|
+
<%= form_phc_scriptcdn_versions.label :script_version_number, "Version Number" %>
|
9
|
+
<%= form_phc_scriptcdn_versions.text_field :script_version_number, placeholder: "Version Number", class: "form-control" %>
|
10
10
|
</div>
|
11
11
|
<!-- Form Input Fields -->
|
12
12
|
|
@@ -2,15 +2,13 @@
|
|
2
2
|
<% phc_title "Script Listings Manager" %>
|
3
3
|
<% phc_title_tagline "Script Version Index" %>
|
4
4
|
<% phc_breadcrumb_one link_to "Script Index", phcscriptcdn.script_listings_path %>
|
5
|
-
<% phc_breadcrumb_two
|
6
|
-
<% phc_breadcrumb_three yield(:phc_title_tagline) %>
|
5
|
+
<% phc_breadcrumb_two yield(:phc_title_tagline) %>
|
7
6
|
<!-- Title System -->
|
8
7
|
|
9
8
|
<!-- Page Bradcrumbs -->
|
10
9
|
<ol class="breadcrumb pull-right">
|
11
10
|
<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>
|
11
|
+
<li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
|
14
12
|
</ol>
|
15
13
|
<!-- Page Bradcrumbs -->
|
16
14
|
|
@@ -40,12 +38,15 @@
|
|
40
38
|
<tbody>
|
41
39
|
<% @script_versions.each do |script_version| %>
|
42
40
|
<tr>
|
43
|
-
<td><%= link_to script_version.
|
41
|
+
<td><%= link_to script_version.script_version_number, script_version %></td>
|
44
42
|
</tr>
|
45
43
|
<% end %>
|
46
44
|
</tbody>
|
47
45
|
</table>
|
48
|
-
|
46
|
+
<%= link_to phcscriptcdn.new_script_version_path, class: "btn btn-primary" do %>
|
47
|
+
<i class="fas fa-plus-circle"></i>
|
48
|
+
<%= "Add a New Version Number" %>
|
49
|
+
<% end %>
|
49
50
|
</div>
|
50
51
|
</div>
|
51
52
|
</div>
|
@@ -3,26 +3,24 @@ class CreatePhcscriptcdnScriptListings < ActiveRecord::Migration[5.2]
|
|
3
3
|
|
4
4
|
create_table :phcscriptcdn_script_listings do |t|
|
5
5
|
|
6
|
-
t.string :
|
7
|
-
t.text :
|
8
|
-
t.string :
|
6
|
+
t.string :script_tittle
|
7
|
+
t.text :script_description
|
8
|
+
t.string :script_source
|
9
9
|
|
10
|
-
t.string :
|
11
|
-
t.string :
|
10
|
+
t.string :script_website
|
11
|
+
t.string :script_github
|
12
12
|
|
13
|
-
t.date :
|
14
|
-
t.date :
|
15
|
-
t.date :
|
16
|
-
t.date :
|
13
|
+
t.date :script_initial_release
|
14
|
+
t.date :script_lastest_release
|
15
|
+
t.date :script_beta_release
|
16
|
+
t.date :script_lastest_release_cdn
|
17
17
|
|
18
|
-
t.string :
|
18
|
+
t.string :script_status
|
19
19
|
|
20
20
|
t.string :slug
|
21
21
|
|
22
22
|
t.string :user_id
|
23
|
-
t.string :org_id
|
24
23
|
|
25
|
-
t.references :version
|
26
24
|
t.references :licence
|
27
25
|
t.references :author
|
28
26
|
|
@@ -3,16 +3,15 @@ class CreatePhcscriptcdnScriptAuthors < ActiveRecord::Migration[5.2]
|
|
3
3
|
|
4
4
|
create_table :phcscriptcdn_script_authors do |t|
|
5
5
|
|
6
|
-
t.string :
|
7
|
-
t.string :
|
6
|
+
t.string :author_first_name
|
7
|
+
t.string :author_last_name
|
8
8
|
|
9
|
-
t.string :
|
10
|
-
t.string :
|
9
|
+
t.string :author_website
|
10
|
+
t.string :author_github
|
11
11
|
|
12
12
|
t.string :slug
|
13
13
|
|
14
14
|
t.string :user_id
|
15
|
-
t.string :org_id
|
16
15
|
|
17
16
|
t.timestamps
|
18
17
|
|
@@ -3,14 +3,13 @@ class CreatePhcscriptcdnScriptExtensions < ActiveRecord::Migration[5.2]
|
|
3
3
|
|
4
4
|
create_table :phcscriptcdn_script_extensions do |t|
|
5
5
|
|
6
|
-
t.string :
|
7
|
-
t.text :
|
8
|
-
t.string :
|
6
|
+
t.string :script_extension_name
|
7
|
+
t.text :script_extension_description
|
8
|
+
t.string :script_extension
|
9
9
|
|
10
10
|
t.string :slug
|
11
11
|
|
12
12
|
t.string :user_id
|
13
|
-
t.string :org_id
|
14
13
|
|
15
14
|
t.timestamps
|
16
15
|
|
@@ -3,21 +3,19 @@ class CreatePhcscriptcdnScriptLicences < ActiveRecord::Migration[5.2]
|
|
3
3
|
|
4
4
|
create_table :phcscriptcdn_script_licences do |t|
|
5
5
|
|
6
|
-
t.string :
|
7
|
-
t.
|
8
|
-
t.text :lcncdescription
|
6
|
+
t.string :licence_name
|
7
|
+
t.text :licence_description
|
9
8
|
|
10
|
-
t.string :
|
11
|
-
t.string :
|
12
|
-
t.string :
|
13
|
-
t.string :
|
14
|
-
t.string :
|
15
|
-
t.string :
|
9
|
+
t.string :licence_compatible_gpl
|
10
|
+
t.string :licence_approval_fsf
|
11
|
+
t.string :licence_approval_osi
|
12
|
+
t.string :licence_approval_copyfree
|
13
|
+
t.string :licence_approval_debian
|
14
|
+
t.string :licence_approval_fedora
|
16
15
|
|
17
16
|
t.string :slug
|
18
17
|
|
19
18
|
t.string :user_id
|
20
|
-
t.string :org_id
|
21
19
|
|
22
20
|
t.timestamps
|
23
21
|
|