phcscriptcdnpro 1.3.1 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/phcscriptcdnpro/frontend/cdnpages.js +2 -0
- data/app/assets/stylesheets/phcscriptcdnpro/frontend/cdnpages.scss +3 -0
- data/app/controllers/phcscriptcdnpro/frontend/cdnpages_controller.rb +15 -0
- data/app/controllers/phcscriptcdnpro/scriptcdn/scripts_controller.rb +2 -2
- data/app/controllers/phcscriptcdnpro/scriptcdn/scripturls_controller.rb +1 -1
- data/app/helpers/phcscriptcdnpro/frontend/cdnpages_helper.rb +4 -0
- data/app/views/phcscriptcdnpro/frontend/cdnpages/list.html.erb +13 -0
- data/app/views/phcscriptcdnpro/frontend/cdnpages/listing.html.erb +0 -0
- data/config/routes.rb +3 -0
- data/lib/phcscriptcdnpro/version.rb +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83a0508846e999f1deb8a98202163b43f163a190
|
4
|
+
data.tar.gz: 86d885c6f0a9f2445eada6a4d27d410061e79b70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 666098d63e34532febf0da630ab03297ad1ea47098b3d1241e13cfee28a4dba157fd4c286ae7b1111cdfd44ae9a15d762d9462a7aa2f275d08ead1319e861cd2
|
7
|
+
data.tar.gz: 02a0030fbbff9a329ea3233168103547d9295c627ce7f04b8f5d737f63e75cd0ae840152b86bf361fb3925133c32627c511676e2d86bf9468c5ecd46b83a8a8f
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require_dependency "phcscriptcdnpro/application_controller"
|
2
|
+
|
3
|
+
module Phcscriptcdnpro
|
4
|
+
class Frontend::CdnpagesController < ApplicationController
|
5
|
+
|
6
|
+
def list
|
7
|
+
@scriptcdn_scripts = Scriptcdn::Script.all
|
8
|
+
end
|
9
|
+
|
10
|
+
def listing
|
11
|
+
@scriptcdn_script = Scriptcdn::Script.all
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
end
|
@@ -4,8 +4,8 @@ module Phcscriptcdnpro
|
|
4
4
|
class Scriptcdn::ScriptsController < ApplicationController
|
5
5
|
|
6
6
|
# Filters and Security
|
7
|
-
before_action :require_user
|
8
|
-
before_action :
|
7
|
+
before_action :require_user
|
8
|
+
before_action :set_scriptcdn_script, only: [:show, :edit, :update, :destroy]
|
9
9
|
|
10
10
|
# Script CDN Index
|
11
11
|
def index
|
@@ -3,7 +3,7 @@ require_dependency "phcscriptcdnpro/application_controller"
|
|
3
3
|
module Phcscriptcdnpro
|
4
4
|
class Scriptcdn::ScripturlsController < ApplicationController
|
5
5
|
|
6
|
-
# Filters
|
6
|
+
# Filters & Security
|
7
7
|
before_action :require_user
|
8
8
|
before_action :set_scriptcdn_scripturl, only: [:show, :edit, :update, :destroy]
|
9
9
|
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<% @scriptcdn_scripts.each do |scriptcdn_script| %>
|
2
|
+
<tr>
|
3
|
+
<td><%= scriptcdn_script.scrptname %></td>
|
4
|
+
|
5
|
+
<td><div class="btn-group" role="group" aria-label="Script CDN">
|
6
|
+
<% if current_user %>
|
7
|
+
<%= link_to 'Show', scriptcdn_script, class: "btn btn-w-m btn-primary btn-xs btn-phc-custom" %>
|
8
|
+
<%= link_to 'Edit', edit_scriptcdn_script_path(scriptcdn_script), class: "btn btn-w-m btn-primary btn-xs btn-phc-custom" %>
|
9
|
+
<%= link_to 'Destroy', scriptcdn_script, class: "btn btn-w-m btn-danger btn-xs btn-phc-custom", method: :delete, data: { confirm: 'Are you sure?' } %>
|
10
|
+
<% end %>
|
11
|
+
</div></td>
|
12
|
+
</tr>
|
13
|
+
<% end %>
|
File without changes
|
data/config/routes.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcscriptcdnpro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BradPotts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -388,13 +388,17 @@ files:
|
|
388
388
|
- README.md
|
389
389
|
- Rakefile
|
390
390
|
- app/assets/javascripts/phcscriptcdnpro/application.js
|
391
|
+
- app/assets/javascripts/phcscriptcdnpro/frontend/cdnpages.js
|
391
392
|
- app/assets/stylesheets/phcscriptcdnpro/application.css.scss
|
392
393
|
- app/assets/stylesheets/phcscriptcdnpro/custom.scss
|
394
|
+
- app/assets/stylesheets/phcscriptcdnpro/frontend/cdnpages.scss
|
393
395
|
- app/controllers/phcscriptcdnpro/application_controller.rb
|
396
|
+
- app/controllers/phcscriptcdnpro/frontend/cdnpages_controller.rb
|
394
397
|
- app/controllers/phcscriptcdnpro/scriptcdn/scripts_controller.rb
|
395
398
|
- app/controllers/phcscriptcdnpro/scriptcdn/scripturls_controller.rb
|
396
399
|
- app/controllers/phcscriptcdnpro/scriptcdn/scriptversions_controller.rb
|
397
400
|
- app/helpers/phcscriptcdnpro/application_helper.rb
|
401
|
+
- app/helpers/phcscriptcdnpro/frontend/cdnpages_helper.rb
|
398
402
|
- app/helpers/phcscriptcdnpro/scriptcdn/scripts_helper.rb
|
399
403
|
- app/helpers/phcscriptcdnpro/scriptcdn/scripturls_helper.rb
|
400
404
|
- app/helpers/phcscriptcdnpro/scriptcdn/scriptversions_helper.rb
|
@@ -403,6 +407,8 @@ files:
|
|
403
407
|
- app/models/phcscriptcdnpro/scriptcdn/scripturl.rb
|
404
408
|
- app/models/phcscriptcdnpro/scriptcdn/scriptversion.rb
|
405
409
|
- app/views/layouts/phcscriptcdnpro/application.html.erb
|
410
|
+
- app/views/phcscriptcdnpro/frontend/cdnpages/list.html.erb
|
411
|
+
- app/views/phcscriptcdnpro/frontend/cdnpages/listing.html.erb
|
406
412
|
- app/views/phcscriptcdnpro/scriptcdn/scripts/_form.html.erb
|
407
413
|
- app/views/phcscriptcdnpro/scriptcdn/scripts/edit.html.erb
|
408
414
|
- app/views/phcscriptcdnpro/scriptcdn/scripts/index.html.erb
|