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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55aff096e439c6dadd97916eb50db08202d821b5
4
- data.tar.gz: f189bc26750eb18cd234fdf7b6f481c270c6c7b4
3
+ metadata.gz: 83a0508846e999f1deb8a98202163b43f163a190
4
+ data.tar.gz: 86d885c6f0a9f2445eada6a4d27d410061e79b70
5
5
  SHA512:
6
- metadata.gz: ba770c9beac9be98eace0a0736c4d6e84a6bc8c39995c82c791a6a0706ed32e4bb05707b7effb2b56cfbdd541a49c44df7a94c60a40708fdc7d0210f5b9ab02f
7
- data.tar.gz: 9dac6f904153ef146a5608f9d58b079c95ba07c8bc7c0f115fbae113a4bd1646c05d9d3a9d2d71305573d548f1632ae0bcfbcbc8e852e6ac63129bb6b5904b6e
6
+ metadata.gz: 666098d63e34532febf0da630ab03297ad1ea47098b3d1241e13cfee28a4dba157fd4c286ae7b1111cdfd44ae9a15d762d9462a7aa2f275d08ead1319e861cd2
7
+ data.tar.gz: 02a0030fbbff9a329ea3233168103547d9295c627ce7f04b8f5d737f63e75cd0ae840152b86bf361fb3925133c32627c511676e2d86bf9468c5ecd46b83a8a8f
@@ -0,0 +1,2 @@
1
+ // Place all the behaviors and hooks related to the matching controller here.
2
+ // All this logic will automatically be available in application.js.
@@ -0,0 +1,3 @@
1
+ // Place all the styles related to the frontend/cdnpages controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -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, except: [:index, :show]
8
- before_action :set_scriptcdn_scriptversion, only: [:show, :edit, :update, :destroy]
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 and Security
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,4 @@
1
+ module Phcscriptcdnpro
2
+ module Frontend::CdnpagesHelper
3
+ end
4
+ end
@@ -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 %>
data/config/routes.rb CHANGED
@@ -7,5 +7,8 @@ Phcscriptcdnpro::Engine.routes.draw do
7
7
  resources :scripturls
8
8
  end
9
9
  end
10
+
11
+ # Script CDN Frontend
12
+ root 'frontend/cdnpages#list'
10
13
 
11
14
  end
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdnpro
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.3"
3
3
  end
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.1
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-06 00:00:00.000000000 Z
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