phcscriptcdn 48.0.0 → 49.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -2
- data/app/assets/javascripts/phcscriptcdn/application.js +2 -2
- data/app/assets/stylesheets/phcscriptcdn/application.scss +2 -2
- data/app/controllers/phcscriptcdn/application_controller.rb +20 -10
- data/app/controllers/phcscriptcdn/script/authors_controller.rb +19 -8
- data/app/controllers/phcscriptcdn/script/extensions_controller.rb +17 -6
- data/app/controllers/phcscriptcdn/script/licences_controller.rb +16 -5
- data/app/controllers/phcscriptcdn/script/listings_controller.rb +15 -6
- data/app/controllers/phcscriptcdn/script/urls_controller.rb +13 -4
- data/app/controllers/phcscriptcdn/script/versions_controller.rb +15 -4
- data/app/helpers/phcscriptcdn/application_helper.rb +0 -10
- data/app/helpers/phcscriptcdn/script/authors_helper.rb +4 -0
- data/app/helpers/phcscriptcdn/script/extensions_helper.rb +4 -0
- data/app/helpers/phcscriptcdn/script/licences_helper.rb +4 -0
- data/app/helpers/phcscriptcdn/script/listings_helper.rb +4 -0
- data/app/helpers/phcscriptcdn/script/urls_helper.rb +4 -0
- data/app/helpers/phcscriptcdn/script/versions_helper.rb +4 -0
- data/app/jobs/phcscriptcdn/application_job.rb +2 -2
- data/app/mailers/phcscriptcdn/application_mailer.rb +6 -0
- data/app/models/phcscriptcdn/application_record.rb +5 -3
- data/app/models/phcscriptcdn/script.rb +7 -5
- data/app/models/phcscriptcdn/script/author.rb +0 -7
- data/app/models/phcscriptcdn/script/listing.rb +3 -13
- data/app/models/phcscriptcdn/script/url.rb +2 -2
- data/app/models/phcscriptcdn/script/version.rb +1 -1
- data/app/views/layouts/phcscriptcdn/application.html.erb +64 -41
- data/app/views/layouts/phcscriptcdn/components/backend/footer/_footer.html.erb +9 -4
- data/app/views/layouts/phcscriptcdn/components/backend/navigation/_top_menu.html.erb +78 -0
- data/app/views/layouts/phcscriptcdn/components/backend/sidebars/_side_menu.html.erb +154 -0
- data/app/views/phcscriptcdn/script/authors/_form.html.erb +15 -20
- data/app/views/phcscriptcdn/script/authors/edit.html.erb +32 -32
- data/app/views/phcscriptcdn/script/authors/index.html.erb +50 -60
- data/app/views/phcscriptcdn/script/authors/new.html.erb +33 -32
- data/app/views/phcscriptcdn/script/authors/show.html.erb +42 -32
- data/app/views/phcscriptcdn/script/extensions/_form.html.erb +13 -14
- data/app/views/phcscriptcdn/script/extensions/edit.html.erb +32 -31
- data/app/views/phcscriptcdn/script/extensions/index.html.erb +45 -52
- data/app/views/phcscriptcdn/script/extensions/new.html.erb +31 -30
- data/app/views/phcscriptcdn/script/extensions/show.html.erb +41 -31
- data/app/views/phcscriptcdn/script/licences/_form.html.erb +21 -21
- data/app/views/phcscriptcdn/script/licences/edit.html.erb +31 -31
- data/app/views/phcscriptcdn/script/licences/index.html.erb +55 -62
- data/app/views/phcscriptcdn/script/licences/new.html.erb +31 -31
- data/app/views/phcscriptcdn/script/licences/show.html.erb +41 -31
- data/app/views/phcscriptcdn/script/listings/_form.html.erb +27 -28
- data/app/views/phcscriptcdn/script/listings/edit.html.erb +29 -30
- data/app/views/phcscriptcdn/script/listings/index.html.erb +45 -54
- data/app/views/phcscriptcdn/script/listings/new.html.erb +28 -30
- data/app/views/phcscriptcdn/script/listings/show.html.erb +38 -28
- data/app/views/phcscriptcdn/script/urls/_form.html.erb +13 -14
- data/app/views/phcscriptcdn/script/urls/edit.html.erb +17 -30
- data/app/views/phcscriptcdn/script/urls/index.html.erb +47 -54
- data/app/views/phcscriptcdn/script/urls/new.html.erb +31 -31
- data/app/views/phcscriptcdn/script/urls/show.html.erb +41 -30
- data/app/views/phcscriptcdn/script/versions/_form.html.erb +9 -10
- data/app/views/phcscriptcdn/script/versions/edit.html.erb +31 -31
- data/app/views/phcscriptcdn/script/versions/index.html.erb +43 -50
- data/app/views/phcscriptcdn/script/versions/new.html.erb +31 -31
- data/app/views/phcscriptcdn/script/versions/show.html.erb +41 -31
- data/config/routes.rb +19 -22
- data/db/migrate/{20160731205917_create_phcscriptcdn_script_listings.rb → 20160821183652_create_phcscriptcdn_script_listings.rb} +5 -6
- data/db/migrate/{20160731210723_create_phcscriptcdn_script_authors.rb → 20160821183714_create_phcscriptcdn_script_authors.rb} +1 -2
- data/db/migrate/{20160731205205_create_phcscriptcdn_script_extensions.rb → 20160821183735_create_phcscriptcdn_script_extensions.rb} +1 -1
- data/db/migrate/{20160801032225_create_phcscriptcdn_script_licences.rb → 20160821183805_create_phcscriptcdn_script_licences.rb} +1 -1
- data/db/migrate/{20160731210626_create_phcscriptcdn_script_urls.rb → 20160821183830_create_phcscriptcdn_script_urls.rb} +5 -5
- data/db/migrate/{20160731205954_create_phcscriptcdn_script_versions.rb → 20160821183946_create_phcscriptcdn_script_versions.rb} +1 -1
- data/db/migrate/20170517064049_create_phcscriptcdn_listing_versions.rb +1 -0
- data/db/migrate/20170517064114_create_phcscriptcdn_scriptversion_versions.rb +1 -0
- data/db/migrate/20170517064150_create_phcscriptcdn_url_versions.rb +17 -16
- data/db/migrate/20170517064208_create_phcscriptcdn_author_versions.rb +1 -0
- data/db/migrate/20170517064427_create_phcscriptcdn_licence_versions.rb +1 -0
- data/lib/phcscriptcdn/engine.rb +6 -1
- data/lib/phcscriptcdn/version.rb +1 -1
- metadata +100 -116
- data/app/assets/javascripts/phcscriptcdn/frontend/listings.js +0 -2
- data/app/assets/stylesheets/phcscriptcdn/frontend/listings.scss +0 -3
- data/app/controllers/phcscriptcdn/frontend/listings_controller.rb +0 -20
- data/app/helpers/phcscriptcdn/frontend/listings_helper.rb +0 -4
- data/app/models/phcscriptcdn/frontend/listing.rb +0 -8
- data/app/views/layouts/phcscriptcdn/components/backend/navigation/_navigation.html.erb +0 -56
- data/app/views/layouts/phcscriptcdn/components/backend/topbar/_topbar.html.erb +0 -5
- data/app/views/layouts/phcscriptcdn/components/backend/topbar/_topbar_links.html.erb +0 -0
- data/app/views/layouts/phcscriptcdn/frontend.html.erb +0 -22
- data/app/views/phcscriptcdn/frontend/listings/index.html.erb +0 -46
- 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
|
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
|
8
|
-
<
|
9
|
-
|
10
|
-
<
|
11
|
-
<
|
12
|
-
|
13
|
-
|
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
|
-
<!--
|
20
|
-
<
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
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
|
-
</
|
61
|
-
<!--
|
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
|
5
|
-
<% phc_breadcrumb_two
|
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
|
9
|
-
<
|
10
|
-
|
11
|
-
<
|
12
|
-
<
|
13
|
-
|
14
|
-
|
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
|
-
<!--
|
21
|
-
<
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
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
|
-
</
|
38
|
-
<!--
|
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
|
5
|
-
<% phc_breadcrumb_two
|
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
|
9
|
-
<
|
10
|
-
|
11
|
-
<
|
12
|
-
<
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
<!-- Page
|
19
|
-
|
20
|
-
<!--
|
21
|
-
<
|
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
|
-
|
31
|
-
|
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
|
-
|
42
|
-
|
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
|
-
<%=
|
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
|
-
<!--
|
6
|
+
<!-- Form_phc_scriptcdn_licence Input Fields -->
|
7
7
|
<div class="form-group field_with_error">
|
8
|
-
<%=
|
9
|
-
<%=
|
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
|
-
<%=
|
13
|
-
<%=
|
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
|
-
<%=
|
17
|
-
<%=
|
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
|
-
<%=
|
21
|
-
<%=
|
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
|
-
<%=
|
25
|
-
<%=
|
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
|
-
<%=
|
29
|
-
<%=
|
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
|
-
<%=
|
33
|
-
<%=
|
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
|
-
<%=
|
37
|
-
<%=
|
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
|
-
<!--
|
39
|
+
<!-- Form_phc_scriptcdn_licence Input Fields -->
|
40
40
|
|
41
|
-
<!--
|
41
|
+
<!-- Form_phc_scriptcdn_licence Submition Button -->
|
42
42
|
<div class="actions">
|
43
|
-
<%=
|
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
|
5
|
-
<% phc_breadcrumb_two
|
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
|
9
|
-
<
|
10
|
-
|
11
|
-
<
|
12
|
-
<
|
13
|
-
|
14
|
-
|
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
|
-
<!--
|
21
|
-
<
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
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
|
-
</
|
39
|
-
<!--
|
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
|
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
|
8
|
-
<
|
9
|
-
|
10
|
-
<
|
11
|
-
<
|
12
|
-
|
13
|
-
|
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
|
-
<!--
|
20
|
-
<
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
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
|
-
</
|
71
|
-
<!--
|
63
|
+
</div>
|
64
|
+
<!-- Page Content -->
|