phcscriptcdnpro 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/phcscriptcdnpro/scriptcdn/authors_controller.rb +70 -0
  3. data/app/controllers/phcscriptcdnpro/scriptcdn/scripturls_controller.rb +17 -22
  4. data/app/controllers/phcscriptcdnpro/scriptcdn/scriptversions_controller.rb +1 -1
  5. data/app/models/phcscriptcdnpro/scriptcdn/author.rb +8 -0
  6. data/app/models/phcscriptcdnpro/scriptcdn/script.rb +1 -0
  7. data/app/models/phcscriptcdnpro/scriptcdn/scripturl.rb +2 -1
  8. data/app/models/phcscriptcdnpro/scriptcdn/scriptversion.rb +1 -1
  9. data/app/views/phcscriptcdnpro/scriptcdn/authors/_form.html.erb +29 -0
  10. data/app/views/phcscriptcdnpro/scriptcdn/authors/_formpatch.html.erb +29 -0
  11. data/app/views/phcscriptcdnpro/scriptcdn/authors/edit.html.erb +36 -0
  12. data/app/views/phcscriptcdnpro/scriptcdn/authors/index.html.erb +57 -0
  13. data/app/views/phcscriptcdnpro/scriptcdn/authors/new.html.erb +36 -0
  14. data/app/views/phcscriptcdnpro/scriptcdn/scripts/_form.html.erb +1 -1
  15. data/app/views/phcscriptcdnpro/scriptcdn/scripts/edit.html.erb +1 -1
  16. data/app/views/phcscriptcdnpro/scriptcdn/scripts/index.html.erb +61 -32
  17. data/app/views/phcscriptcdnpro/scriptcdn/scripts/new.html.erb +1 -1
  18. data/app/views/phcscriptcdnpro/scriptcdn/scripturls/_form.html.erb +5 -5
  19. data/app/views/phcscriptcdnpro/scriptcdn/scripturls/_formpatch.html.erb +3 -3
  20. data/app/views/phcscriptcdnpro/scriptcdn/scripturls/edit.html.erb +3 -3
  21. data/app/views/phcscriptcdnpro/scriptcdn/scripturls/index.html.erb +58 -29
  22. data/app/views/phcscriptcdnpro/scriptcdn/scripturls/new.html.erb +3 -3
  23. data/app/views/phcscriptcdnpro/scriptcdn/scriptversions/_form.html.erb +0 -5
  24. data/app/views/phcscriptcdnpro/scriptcdn/scriptversions/edit.html.erb +1 -1
  25. data/app/views/phcscriptcdnpro/scriptcdn/scriptversions/index.html.erb +52 -30
  26. data/app/views/phcscriptcdnpro/scriptcdn/scriptversions/new.html.erb +1 -1
  27. data/config/routes.rb +8 -2
  28. data/db/migrate/20160222025658_create_phcscriptcdnpro_scriptcdn_scripts.rb +1 -0
  29. data/db/migrate/20160222030223_create_phcscriptcdnpro_scriptcdn_scriptversions.rb +0 -1
  30. data/db/migrate/20160222030446_create_phcscriptcdnpro_scriptcdn_scripturls.rb +2 -0
  31. data/db/migrate/20160617181959_create_phcscriptcdnpro_scriptcdn_authors.rb +20 -0
  32. data/lib/phcscriptcdnpro/version.rb +1 -1
  33. metadata +10 -9
  34. data/app/assets/javascripts/phcscriptcdnpro/frontend/cdnpages.js +0 -2
  35. data/app/assets/stylesheets/phcscriptcdnpro/frontend/cdnpages.scss +0 -3
  36. data/app/helpers/phcscriptcdnpro/frontend/cdnpages_helper.rb +0 -4
  37. data/app/helpers/phcscriptcdnpro/scriptcdn/scripts_helper.rb +0 -4
  38. data/app/helpers/phcscriptcdnpro/scriptcdn/scripturls_helper.rb +0 -4
  39. data/app/helpers/phcscriptcdnpro/scriptcdn/scriptversions_helper.rb +0 -4
  40. data/app/views/phcscriptcdnpro/scriptcdn/scripturls/show.html.erb +0 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cdbad2f0cce4b13018a70345fb2764d9d036c571
4
- data.tar.gz: b4663251eb30297d7905d798be2fa71f3955f882
3
+ metadata.gz: a084cf3c486e42260e55d7f6ae7ac460c2500295
4
+ data.tar.gz: d90f8b5c116585944a0053fe490e926732098019
5
5
  SHA512:
6
- metadata.gz: e1f1a30fe8de162c0914b4104017b458d6c0638e7fc0bdf5ef4c2b22bfe93c6bdc485731e6aa7b3bcf38e3eca4c2e39158fb6e263d6fc5f3b13c86c244ef1b51
7
- data.tar.gz: d74fac1709717ca9efc5e206405b41a7857645a660fcb3ecbd04389050b87fd708d04789103a954d488431add118d75d308aee282a2202094bf085d1160527db
6
+ metadata.gz: 05d4048adba046609dc2190bd6b2fc5a57221f5866745ba2af7751dcd1297f289393654dca518f6176eefdb9b283a5fc057b0f1a6a40c9d4bf8db2d87299d9e8
7
+ data.tar.gz: 3821a05a9887383aead52d422c8e366a10c433cefc88d3366a51d658f98298dfe516c5ce615389259d2187465e76822b0ec33c5b20f35e8ae06206bb3062a11b
@@ -0,0 +1,70 @@
1
+ require_dependency "phcscriptcdnpro/application_controller"
2
+
3
+ module Phcscriptcdnpro
4
+ class Scriptcdn::AuthorsController < ApplicationController
5
+
6
+ # Security & Action Filters
7
+ before_action :require_user
8
+ layout '/layouts/phcscriptcdnpro/application.html.erb'
9
+ before_action :set_scriptcdn_author, only: [:edit, :update, :destroy]
10
+
11
+ # Author Index
12
+ def index
13
+ scriptcdn_script = Scriptcdn::Script.find(params[:script_id])
14
+ @scriptcdn_authors = scriptcdn_script.authors
15
+ end
16
+
17
+ # New Author
18
+ def new
19
+ scriptcdn_script = Scriptcdn::Script.find(params[:script_id])
20
+ @scriptcdn_author = scriptcdn_script.authors.build
21
+ end
22
+
23
+ # Edit Author
24
+ def edit
25
+ scriptcdn_script = Scriptcdn::Script.find(params[:script_id])
26
+ @scriptcdn_author = scriptcdn_script.authors.find(params[:id])
27
+ end
28
+
29
+ # POST Author
30
+ def create
31
+ @scriptcdn_script = Scriptcdn::Script.find(params[:script_id])
32
+ @scriptcdn_author = @scriptcdn_script.authors.create(scriptcdn_author_params)
33
+ if @scriptcdn_author.save
34
+ redirect_to @scriptcdn_author, notice: 'Author was successfully created.'
35
+ else
36
+ render :new
37
+ end
38
+ end
39
+
40
+ # PATCH/PUT Author
41
+ def update
42
+ if @scriptcdn_author.update(scriptcdn_author_params)
43
+ redirect_to @scriptcdn_author, notice: 'Author was successfully updated.'
44
+ else
45
+ render :edit
46
+ end
47
+ end
48
+
49
+ # DELETE Author
50
+ def destroy
51
+ @scriptcdn_script = Scriptcdn::Script.find(params[:script_id])
52
+ @scriptcdn_author = @scriptcdn_script.authors.find(params[:id])
53
+ @scriptcdn_author.destroy
54
+ redirect_to scriptcdn_authors_url, notice: 'Author was successfully destroyed.'
55
+ end
56
+
57
+ private
58
+
59
+ # Common Callbacks
60
+ def set_scriptcdn_author
61
+ @scriptcdn_author = Scriptcdn::Author.find(params[:id])
62
+ end
63
+
64
+ # Whitelist
65
+ def scriptcdn_author_params
66
+ params.require(:scriptcdn_author).permit(:authorfirstname, :authorlastname, :authoremail, :authorgithub, :authortwitter, :script_id)
67
+ end
68
+
69
+ end
70
+ end
@@ -6,24 +6,18 @@ module Phcscriptcdnpro
6
6
  # Security & Action Filters
7
7
  before_action :require_user
8
8
  layout '/layouts/phcscriptcdnpro/application.html.erb'
9
- before_action :set_scriptcdn_scripturl, only: [:show, :edit, :update, :destroy]
9
+ before_action :set_scriptcdn_scripturl, only: [:edit, :update, :destroy]
10
10
 
11
11
  # Index for Scriptcdn_script URLs
12
12
  def index
13
- scriptcdn_scriptversion = Scriptcdn::Scriptversion.find(params[:scriptversion_id])
14
- @scriptcdn_scripturls = scriptcdn_scriptversion.scripturls
15
- end
16
-
17
- # Scriptcdn_script URL Details Page
18
- def show
19
- scriptcdn_scriptversion = Scriptcdn::Scriptversion.find(params[:scriptversion_id])
20
- @scriptcdn_scripturl = scriptcdn_scriptversion.scripturls.find(params[:id])
13
+ scriptcdn_script = Scriptcdn::Script.find(params[:script_id])
14
+ @scriptcdn_scripturls = scriptcdn_script.scripturls
21
15
  end
22
16
 
23
17
  # New Scriptcdn_script URL
24
18
  def new
25
- scriptcdn_scriptversion = Scriptcdn::Scriptversion.find(params[:scriptversion_id])
26
- @scriptcdn_scripturl = scriptcdn_scriptversion.scripturls.build
19
+ scriptcdn_script = Scriptcdn::Script.find(params[:script_id])
20
+ @scriptcdn_scripturl = scriptcdn_script.scripturls.build
27
21
  respond_to do |format|
28
22
  format.html # new.html.erb
29
23
  format.xml { render :xml => @scriptcdn_script }
@@ -32,17 +26,17 @@ module Phcscriptcdnpro
32
26
 
33
27
  # Edit Scriptcdn_script URL
34
28
  def edit
35
- scriptcdn_scriptversion = Scriptcdn::Scriptversion.find(params[:scriptversion_id])
36
- @scriptcdn_scripturl = scriptcdn_scriptversion.scripturls.find(params[:id])
29
+ scriptcdn_script = Scriptcdn::Script.find(params[:script_id])
30
+ @scriptcdn_scripturl = scriptcdn_script.scripturls.find(params[:id])
37
31
  end
38
32
 
39
33
  # POST Scriptcdn_script URL
40
34
  def create
41
- @scriptcdn_scriptversion = Scriptcdn::Scriptversion.find(params[:scriptversion_id])
42
- @scriptcdn_scripturl = @scriptcdn_scriptversion.scripturls.create(scriptcdn_scripturl_params)
35
+ @scriptcdn_script = Scriptcdn::Script.find(params[:script_id])
36
+ @scriptcdn_scripturl = @scriptcdn_script.scripturls.create(scriptcdn_scripturl_params)
43
37
  respond_to do |format|
44
38
  if @scriptcdn_scripturl.save
45
- format.html { redirect_to scriptcdn_scriptversion_scripturls_path, notice: 'Script URL was Successfully Created.' }
39
+ format.html { redirect_to scriptcdn_script_scripturls_path, notice: 'Script URL was Successfully Created.' }
46
40
  format.json { render action: 'show', status: :created, location: @scriptcdn_scripturl }
47
41
  else
48
42
  format.html { render action: 'new' }
@@ -55,7 +49,7 @@ module Phcscriptcdnpro
55
49
  def update
56
50
  respond_to do |format|
57
51
  if @scriptcdn_scripturl.update(scriptcdn_scripturl_params)
58
- format.html { redirect_to scriptcdn_scriptversion_scripturls_path, notice: 'Script URL was Successfully Updated.' }
52
+ format.html { redirect_to scriptcdn_script_scripturls_path, notice: 'Script URL was Successfully Updated.' }
59
53
  format.json { head :no_content }
60
54
  else
61
55
  format.html { render action: 'edit' }
@@ -66,25 +60,26 @@ module Phcscriptcdnpro
66
60
 
67
61
  # Delete Scriptcdn_script URL
68
62
  def destroy
69
- @scriptcdn_scriptversion = Scriptcdn::Scriptversion.find(params[:scriptversion_id])
70
- @scriptcdn_scripturl = @scriptcdn_scriptversion.scripturls.find(params[:id])
63
+ @scriptcdn_script = Scriptcdn::Script.find(params[:script_id])
64
+ @scriptcdn_scripturl = @scriptcdn_script.scripturls.find(params[:id])
71
65
  @scriptcdn_scripturl.destroy
72
66
  respond_to do |format|
73
- format.html { redirect_to scriptcdn_scriptversion_scripturls_path, notice: 'Script URL was Successfully Deleted.' }
67
+ format.html { redirect_to scriptcdn_script_scripturls_path, notice: 'Script URL was Successfully Deleted.' }
74
68
  format.json { head :no_content }
75
69
  end
76
70
  end
77
71
 
78
72
  private
79
73
 
80
- # Callback
74
+ # Common Callbacks
81
75
  def set_scriptcdn_scripturl
82
76
  @scriptcdn_scripturl = Scriptcdn::Scripturl.find(params[:id])
83
77
  end
84
78
 
85
79
  # Whitelist
86
80
  def scriptcdn_scripturl_params
87
- params.require(:scriptcdn_scripturl).permit(:scrpturlphc, :scrpturltype, :scriptversion_id)
81
+ params.require(:scriptcdn_scripturl).permit(:scrpturlphc, :scrpturltype, :script_id)
88
82
  end
83
+
89
84
  end
90
85
  end
@@ -57,7 +57,7 @@ module Phcscriptcdnpro
57
57
 
58
58
  # Whitelist
59
59
  def scriptcdn_scriptversion_params
60
- params.require(:scriptcdn_scriptversion).permit(:scrptversion, :scrptversionpakname)
60
+ params.require(:scriptcdn_scriptversion).permit(:scrptversion)
61
61
  end
62
62
 
63
63
  end
@@ -0,0 +1,8 @@
1
+ module Phcscriptcdnpro
2
+ class Scriptcdn::Author < ActiveRecord::Base
3
+
4
+ # Relationships
5
+ belongs_to :script, class_name: 'Script::Main'
6
+
7
+ end
8
+ end
@@ -4,6 +4,7 @@ module Phcscriptcdnpro
4
4
  # Relationships
5
5
  has_many :scriptversions, class_name: 'Script::Version'
6
6
  has_many :scripturls, class_name: 'Script::Url'
7
+ has_many :authors, class_name: 'Script::Author'
7
8
 
8
9
  # Validation for Form Fields
9
10
  validates :scrptname,
@@ -2,7 +2,8 @@ module Phcscriptcdnpro
2
2
  class Scriptcdn::Scripturl < ActiveRecord::Base
3
3
 
4
4
  # Relationships
5
- belongs_to :scriptversion, class_name: 'Script::Version'
5
+ belongs_to :script, class_name: 'Script::Main'
6
+ has_many :scriptversions, class_name: 'Script::Scriptversion'
6
7
 
7
8
  # Validation for Form Fields
8
9
  validates :scrpturlphc,
@@ -3,7 +3,7 @@ module Phcscriptcdnpro
3
3
 
4
4
  # Relationships
5
5
  belongs_to :script, class_name: 'Script::Main'
6
- has_many :scripturls, class_name: 'Script::Url'
6
+ belongs_to :scripturl, class_name: 'Script::Scripturl'
7
7
 
8
8
  # Validation for Form Fields
9
9
  validates :scrptversionpakname,
@@ -0,0 +1,29 @@
1
+ <%= form_for([@scriptcdn_author.script, @scriptcdn_author], url: scriptcdn_script_authors_path) do |f| %>
2
+
3
+ <%= render 'phcnotifi/validations', :object => @scriptcdn_author %>
4
+
5
+ <div class="form-group field_with_error">
6
+ <%= f.label :authorfirstname, "First Name" %>
7
+ <%= f.text_field :authorfirstname %>
8
+ </div>
9
+ <div class="form-group field_with_error">
10
+ <%= f.label :authorlastname, "Last Name" %>
11
+ <%= f.text_field :authorlastname %>
12
+ </div>
13
+ <div class="form-group field_with_error">
14
+ <%= f.label :authoremail, "Last Name" %>
15
+ <%= f.text_field :authoremail %>
16
+ </div>
17
+ <div class="form-group field_with_error">
18
+ <%= f.label :authorgithub, "Last Name" %>
19
+ <%= f.text_field :authorgithub %>
20
+ </div>
21
+ <div class="form-group field_with_error">
22
+ <%= f.label :authortwitter, "Last Name" %>
23
+ <%= f.text_field :authortwitter %>
24
+ </div>
25
+ <div class="actions">
26
+ <%= f.submit %>
27
+ </div>
28
+
29
+ <% end %>
@@ -0,0 +1,29 @@
1
+ <%= form_for([@scriptcdn_author.script, @scriptcdn_author], url: scriptcdn_script_author_path, method: :patch) do |f| %>
2
+
3
+ <%= render 'phcnotifi/validations', :object => @scriptcdn_author %>
4
+
5
+ <div class="form-group field_with_error">
6
+ <%= f.label :authorfirstname, "First Name" %>
7
+ <%= f.text_field :authorfirstname %>
8
+ </div>
9
+ <div class="form-group field_with_error">
10
+ <%= f.label :authorlastname, "Last Name" %>
11
+ <%= f.text_field :authorlastname %>
12
+ </div>
13
+ <div class="form-group field_with_error">
14
+ <%= f.label :authoremail, "Last Name" %>
15
+ <%= f.text_field :authoremail %>
16
+ </div>
17
+ <div class="form-group field_with_error">
18
+ <%= f.label :authorgithub, "Last Name" %>
19
+ <%= f.text_field :authorgithub %>
20
+ </div>
21
+ <div class="form-group field_with_error">
22
+ <%= f.label :authortwitter, "Last Name" %>
23
+ <%= f.text_field :authortwitter %>
24
+ </div>
25
+ <div class="actions">
26
+ <%= f.submit %>
27
+ </div>
28
+
29
+ <% end %>
@@ -0,0 +1,36 @@
1
+ <!-- Title System -->
2
+ <% phc_title "Scripts" %>
3
+ <% phc_title_tagline "New Script for CDN" %>
4
+
5
+ <!-- Bread Crumb -->
6
+ <div class="page-bar">
7
+
8
+ <ul class="page-breadcrumb">
9
+ <li><%= link_to "Script Author", phcscriptcdnpro.scriptcdn_scripts_author_path %><i class="fa fa-circle"></i></li>
10
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
11
+ </ul>
12
+
13
+ </div>
14
+
15
+ <!-- Main Content -->
16
+ <div class="row">
17
+ <div class="col-lg-12">
18
+
19
+ <div class="portlet light">
20
+
21
+ <div class="portlet-title">
22
+ <div class="caption">
23
+ <span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
24
+ </div>
25
+ <div class="actions">
26
+ </div>
27
+ </div>
28
+
29
+ <div class="portlet-body">
30
+ <%= render 'formpatch' %>
31
+ </div>
32
+
33
+ </div>
34
+
35
+ </div>
36
+ </div>
@@ -0,0 +1,57 @@
1
+ <!-- Title System -->
2
+ <% phc_title "Script Version" %>
3
+ <% phc_title_tagline "New Script Version" %>
4
+
5
+ <!-- Bread Crumb -->
6
+ <div class="page-bar">
7
+
8
+ <ul class="page-breadcrumb">
9
+ <li><%= link_to "Script Versions", phcscriptcdnpro.scriptcdn_script_scripturls_path %><i class="fa fa-circle"></i></li>
10
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
11
+ </ul>
12
+
13
+ </div>
14
+
15
+ <!-- Main Content -->
16
+ <div class="row">
17
+ <div class="col-lg-12">
18
+
19
+ <div class="portlet light">
20
+
21
+ <div class="portlet-title">
22
+ <div class="caption">
23
+ <span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
24
+ </div>
25
+ <div class="actions">
26
+ <%= link_to new_scriptcdn_scriptversion_scripturl_path, class: "btn blue-chambray" do %>
27
+ <i class="fa fa-plus"></i> Add a New Script Url
28
+ <% end %>
29
+ </div>
30
+ </div>
31
+
32
+ <div class="portlet-body">
33
+ <div class="table-responsive">
34
+ <table class="table table-striped table-bordered table-hover table-header-fixed">
35
+ <thead>
36
+ <tr>
37
+ <th>Firstname</th>
38
+ <th>Lastname</th>
39
+ <th>Script</th>
40
+ </tr>
41
+ </thead>
42
+ <tbody>
43
+ <% @scriptcdn_authors.each do |scriptcdn_author| %>
44
+ <tr>
45
+ <td><%= scriptcdn_author.firstname %></td>
46
+ <td><%= scriptcdn_author.lastname %></td>
47
+ </tr>
48
+ <% end %>
49
+ </tbody>
50
+ </table>
51
+ </div>
52
+ </div>
53
+
54
+ </div>
55
+
56
+ </div>
57
+ </div>
@@ -0,0 +1,36 @@
1
+ <!-- Title System -->
2
+ <% phc_title "Scripts" %>
3
+ <% phc_title_tagline "New Script for CDN" %>
4
+
5
+ <!-- Bread Crumb -->
6
+ <div class="page-bar">
7
+
8
+ <ul class="page-breadcrumb">
9
+ <li><%= link_to "Script Author", phcscriptcdnpro.scriptcdn_scripts_author_path %><i class="fa fa-circle"></i></li>
10
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
11
+ </ul>
12
+
13
+ </div>
14
+
15
+ <!-- Main Content -->
16
+ <div class="row">
17
+ <div class="col-lg-12">
18
+
19
+ <div class="portlet light">
20
+
21
+ <div class="portlet-title">
22
+ <div class="caption">
23
+ <span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
24
+ </div>
25
+ <div class="actions">
26
+ </div>
27
+ </div>
28
+
29
+ <div class="portlet-body">
30
+ <%= render 'form' %>
31
+ </div>
32
+
33
+ </div>
34
+
35
+ </div>
36
+ </div>
@@ -19,4 +19,4 @@
19
19
  <%= f.submit "Submit", class: "btn blue-hoki" %>
20
20
  </div>
21
21
 
22
- <% end %>
22
+ <% end %>
@@ -1,6 +1,6 @@
1
1
  <!-- Title System -->
2
2
  <% phc_title "Scripts" %>
3
- <% phc_title_tagline "Edit Script Title or Description" %>
3
+ <% phc_title_tagline "Update Script" %>
4
4
 
5
5
  <!-- Bread Crumb -->
6
6
  <div class="page-bar">
@@ -1,37 +1,66 @@
1
+ <!-- Title System -->
2
+ <% phc_title "Script" %>
3
+ <% phc_title_tagline "Script CDN Index" %>
4
+
5
+ <!-- Bread Crumb -->
6
+ <div class="page-bar">
7
+
8
+ <ul class="page-breadcrumb">
9
+ <li><%= link_to "Script Versions", phcscriptcdnpro.scriptcdn_script_path %><i class="fa fa-circle"></i></li>
10
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
11
+ </ul>
12
+
13
+ </div>
14
+
1
15
  <!-- Main Content -->
2
- <div class="wrapper wrapper-content">
3
- <div class="panel panel-default">
4
- <div class="panel-heading">
5
- <i class="fa fa-code"></i> Script CDN List
6
- </div>
7
- <div class="panel-body">
8
- <table class="table table-bordered table-striped table-hover">
9
-
10
- <thead>
11
- <tr>
12
- <th>Script Name</th>
13
- <th></th>
14
- </tr>
15
- </thead>
16
-
17
- <tbody>
18
- <% @scriptcdn_scripts.each do |scriptcdn_script| %>
19
- <tr>
20
- <td><%= scriptcdn_script.scrptname %></td>
21
-
22
- <td><div class="btn-group" role="group" aria-label="Script CDN">
23
- <% if current_user %>
24
- <%= link_to 'Show', scriptcdn_script, class: "btn btn-w-m btn-primary btn-xs btn-phc-custom" %>
25
- <%= link_to 'Edit', edit_scriptcdn_script_path(scriptcdn_script), class: "btn btn-w-m btn-primary btn-xs btn-phc-custom" %>
26
- <%= link_to 'Destroy', scriptcdn_script, class: "btn btn-w-m btn-danger btn-xs btn-phc-custom", method: :delete, data: { confirm: 'Are you sure?' } %>
27
- <% end %>
28
- </div></td>
29
- </tr>
16
+ <div class="row">
17
+ <div class="col-lg-12">
18
+
19
+ <div class="portlet light">
20
+
21
+ <div class="portlet-title">
22
+ <div class="caption">
23
+ <span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
24
+ </div>
25
+ <div class="actions">
26
+ <%= link_to new_scriptcdn_script_path, class: "btn blue-chambray" do %>
27
+ <i class="fa fa-plus"></i> Add a New Script for CDN
30
28
  <% end %>
31
- </tbody>
29
+ </div>
30
+ </div>
31
+
32
+ <div class="portlet-body">
33
+ <div class="table-responsive">
34
+ <table class="table table-striped table-bordered table-hover table-header-fixed">
35
+
36
+ <thead>
37
+ <tr>
38
+ <th>Script Name</th>
39
+ <th></th>
40
+ </tr>
41
+ </thead>
42
+
43
+ <tbody>
44
+ <% @scriptcdn_scripts.each do |scriptcdn_script| %>
45
+ <tr>
46
+ <td><%= scriptcdn_script.scrptname %></td>
47
+
48
+ <td><div class="btn-group" role="group" aria-label="Script CDN">
49
+ <% if current_user %>
50
+ <%= link_to 'Show', scriptcdn_script, class: "btn btn-w-m btn-primary btn-xs btn-phc-custom" %>
51
+ <%= link_to 'Edit', edit_scriptcdn_script_path(scriptcdn_script), class: "btn btn-w-m btn-primary btn-xs btn-phc-custom" %>
52
+ <%= link_to 'Destroy', scriptcdn_script, class: "btn btn-w-m btn-danger btn-xs btn-phc-custom", method: :delete, data: { confirm: 'Are you sure?' } %>
53
+ <% end %>
54
+ </div></td>
55
+ </tr>
56
+ <% end %>
57
+ </tbody>
58
+
59
+ </table>
60
+ </div>
61
+ </div>
32
62
 
33
- </table>
34
- <%= link_to 'New Script', new_scriptcdn_script_path, class: "btn btn-w-m btn-primary btn-phc-custom" %>
35
63
  </div>
64
+
36
65
  </div>
37
- </div>
66
+ </div>
@@ -1,6 +1,6 @@
1
1
  <!-- Title System -->
2
2
  <% phc_title "Scripts" %>
3
- <% phc_title_tagline "New Script for CDN" %>
3
+ <% phc_title_tagline "New CDN Script" %>
4
4
 
5
5
  <!-- Bread Crumb -->
6
6
  <div class="page-bar">
@@ -1,18 +1,18 @@
1
- <%= form_for([@scriptcdn_scripturl.scriptversion, @scriptcdn_scripturl], url: scriptcdn_scriptversion_scripturls_path) do |f| %>
1
+ <%= form_for([@scriptcdn_scripturl.script, @scriptcdn_scripturl], url: scriptcdn_script_scripturls_path) do |f| %>
2
2
 
3
3
  <%= render 'phcnotifi/validations', :object => @scriptcdn_scripturl %>
4
4
 
5
5
  <div class="form-group field_with_error">
6
- <label><%= f.label :scrpturlphc, "Script URL" %></label>
6
+ <%= f.label :scrpturlphc, "Script URL" %>
7
7
  <%= f.text_field :scrpturlphc, class: "form-control", placeholder: "Script URL (AWS)" %>
8
8
  </div>
9
9
  <div class="form-group field_with_error">
10
- <label><%= f.label :scrpturltype, "Script Type" %></label>
10
+ <%= f.label :scrpturltype, "Script Type" %>
11
11
  <%= f.select :scrpturltype, [['CSS','css'],['JS','js'],['font','Font']], {}, {class: "form-control"} %>
12
12
  </div>
13
13
  <div class="form-group field_with_error">
14
- <label><%= f.label :scriptversion_id, "Script Version" %></label>
15
- <%= collection_select(:scriptcdn_scripturl, :scriptversion_id, Phcscriptcdnpro::Scriptcdn::Scriptversion.order('scrptversion'), :id, :scrptversion, {}, {class: "form-control"}) %>
14
+ <%= f.label :script_id, "Script Version" %>
15
+ <%= collection_select(:scriptcdn_scripturl, :script_id, Phcscriptcdnpro::Scriptcdn::Script.order('scrptname'), :id, :scrptname, {}, {class: "form-control"}) %>
16
16
  </div>
17
17
 
18
18
  <div class="actions">
@@ -1,4 +1,4 @@
1
- <%= form_for([@scriptcdn_scripturl.scriptversion, @scriptcdn_scripturl], url: scriptcdn_scriptversion_scripturl_path, method: :patch) do |f| %>
1
+ <%= form_for([@scriptcdn_scripturl.script, @scriptcdn_scripturl], url: scriptcdn_script_scripturl_path, method: :patch) do |f| %>
2
2
 
3
3
  <%= render 'phcnotifi/validations', :object => @scriptcdn_scripturl %>
4
4
 
@@ -11,8 +11,8 @@
11
11
  <%= f.select :scrpturltype, [['CSS','css'],['JS','js'],['font','Font']], {}, {class: "form-control"} %>
12
12
  </div>
13
13
  <div class="form-group field_with_error">
14
- <%= f.label :scriptversion_id, "Script Version" %>
15
- <%= collection_select(:scriptcdn_scripturl, :scriptversion_id, Phcscriptcdnpro::Scriptcdn::Scriptversion.order('scrptversion'), :id, :scrptversion, {}, {class: "form-control"}) %>
14
+ <%= f.label :script_id, "Script Version" %>
15
+ <%= collection_select(:scriptcdn_scripturl, :script_id, Phcscriptcdnpro::Scriptcdn::Script.order('scrptname'), :id, :scrptname, {}, {class: "form-control"}) %>
16
16
  </div>
17
17
 
18
18
  <div class="actions">
@@ -1,12 +1,12 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Script URL Packs" %>
3
- <% phc_title_tagline "Edit Script URL Pack Information" %>
2
+ <% phc_title "Script URL" %>
3
+ <% phc_title_tagline "Update Script URL" %>
4
4
 
5
5
  <!-- Bread Crumb -->
6
6
  <div class="page-bar">
7
7
 
8
8
  <ul class="page-breadcrumb">
9
- <li><%= link_to "Script URL List", phcscriptcdnpro.scriptcdn_scriptversion_scripturls_path %><i class="fa fa-circle"></i></li>
9
+ <li><%= link_to "Script URL List", phcscriptcdnpro.scriptcdn_script_scripturls_path %><i class="fa fa-circle"></i></li>
10
10
  <li class="active"><%= yield(:phc_title_tagline) %></li>
11
11
  </ul>
12
12
 
@@ -1,35 +1,64 @@
1
+ <!-- Title System -->
2
+ <% phc_title "Script URL" %>
3
+ <% phc_title_tagline "New Script URL" %>
4
+
5
+ <!-- Bread Crumb -->
6
+ <div class="page-bar">
7
+
8
+ <ul class="page-breadcrumb">
9
+ <li><%= link_to "Script Versions", phcscriptcdnpro.scriptcdn_script_scripturls_path %><i class="fa fa-circle"></i></li>
10
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
11
+ </ul>
12
+
13
+ </div>
14
+
1
15
  <!-- Main Content -->
2
- <div class="wrapper wrapper-content">
3
- <div class="panel panel-default">
4
- <div class="panel-heading">
5
- <h4><i class="fa fa-code"></i> Script URL List</h4> <p></p>
6
- </div>
7
- <div class="panel-body">
8
- <table class="table table-bordered table-striped table-hover">
9
-
10
- <thead>
11
- <tr>
12
- <th>Script URL</th>
13
- <th>Script Type</th>
14
- <th></th>
15
- </tr>
16
- </thead>
17
-
18
- <tbody>
19
- <% @scriptcdn_scripturls.each do |scriptcdn_scripturl| %>
20
- <tr>
21
- <td><%= scriptcdn_scripturl.scrpturlphc %></td>
22
- <td><%= scriptcdn_scripturl.scrpturltype %></td>
23
- <td><div class="btn-group" role="group" aria-label="Script CDN">
24
- <%= link_to 'Edit', edit_scriptcdn_scriptversion_scripturl_path(scriptcdn_scripturl.scriptversion, scriptcdn_scripturl), class: "btn btn-w-m btn-primary btn-xs btn-phc-custom" %>
25
- <%= link_to 'Destroy', scriptcdn_scriptversion_scripturl_path(scriptcdn_scripturl.scriptversion, scriptcdn_scripturl), class: "btn btn-w-m btn-danger btn-xs btn-phc-custom", method: :delete, data: { confirm: 'Are you sure?' } %>
26
- </div></td>
27
- </tr>
16
+ <div class="row">
17
+ <div class="col-lg-12">
18
+
19
+ <div class="portlet light">
20
+
21
+ <div class="portlet-title">
22
+ <div class="caption">
23
+ <span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
24
+ </div>
25
+ <div class="actions">
26
+ <%= link_to new_scriptcdn_scriptversion_scripturl_path, class: "btn blue-chambray" do %>
27
+ <i class="fa fa-plus"></i> Add a New Script Url
28
28
  <% end %>
29
- </tbody>
29
+ </div>
30
+ </div>
31
+
32
+ <div class="portlet-body">
33
+ <div class="table-responsive">
34
+ <table class="table table-striped table-bordered table-hover table-header-fixed">
35
+
36
+ <thead>
37
+ <tr>
38
+ <th>Script URL</th>
39
+ <th>Script Type</th>
40
+ <th></th>
41
+ </tr>
42
+ </thead>
43
+
44
+ <tbody>
45
+ <% @scriptcdn_scripturls.each do |scriptcdn_scripturl| %>
46
+ <tr>
47
+ <td><%= scriptcdn_scripturl.scrpturlphc %></td>
48
+ <td><%= scriptcdn_scripturl.scrpturltype %></td>
49
+ <td><div class="btn-group" role="group" aria-label="Script CDN">
50
+ <%= link_to 'Edit', edit_scriptcdn_script_scripturl_path(scriptcdn_scripturl.script, scriptcdn_scripturl), class: "btn blue-chambray" %>
51
+ <%= link_to 'Destroy', scriptcdn_script_scripturl_path(scriptcdn_scripturl.script, scriptcdn_scripturl), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn red-mint" %>
52
+ </div></td>
53
+ </tr>
54
+ <% end %>
55
+ </tbody>
56
+
57
+ </table>
58
+ </div>
59
+ </div>
30
60
 
31
- </table>
32
- <%= link_to 'New Script URL', new_scriptcdn_scriptversion_scripturl_path, class: "btn btn-w-m btn-primary btn-phc-custom" %>
33
61
  </div>
62
+
34
63
  </div>
35
64
  </div>
@@ -1,12 +1,12 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Script URL Packs" %>
3
- <% phc_title_tagline "New Script URL Pack" %>
2
+ <% phc_title "Script URL" %>
3
+ <% phc_title_tagline "New Script URL" %>
4
4
 
5
5
  <!-- Bread Crumb -->
6
6
  <div class="page-bar">
7
7
 
8
8
  <ul class="page-breadcrumb">
9
- <li><%= link_to "Script URL List", phcscriptcdnpro.scriptcdn_scriptversion_scripturls_path %><i class="fa fa-circle"></i></li>
9
+ <li><%= link_to "Script URL List", phcscriptcdnpro.scriptcdn_script_scripturls_path %><i class="fa fa-circle"></i></li>
10
10
  <li class="active"><%= yield(:phc_title_tagline) %></li>
11
11
  </ul>
12
12
 
@@ -2,11 +2,6 @@
2
2
 
3
3
  <%= render 'phcnotifi/validations', :object => @scriptcdn_scriptversion %>
4
4
 
5
- <div class="form-group">
6
- <label><%= f.label :scrptversionpakname, "Version Pak Name" %></label>
7
- <%= f.text_field :scrptversionpakname %>
8
- </div>
9
-
10
5
  <div class="form-group">
11
6
  <label><%= f.label :scrptversion, "Script Versions" %></label>
12
7
  <%= f.text_field :scrptversion %>
@@ -1,6 +1,6 @@
1
1
  <!-- Title System -->
2
2
  <% phc_title "Script Versions" %>
3
- <% phc_title_tagline "Edit Script Version" %>
3
+ <% phc_title_tagline "Update Script Version" %>
4
4
 
5
5
  <!-- Bread Crumb -->
6
6
  <div class="page-bar">
@@ -1,37 +1,59 @@
1
- <%= render 'phcnotifi/notifications' %>
1
+ <!-- Title System -->
2
+ <% phc_title "Script Versions" %>
3
+ <% phc_title_tagline "Script Version Index" %>
4
+
5
+ <!-- Bread Crumb -->
6
+ <div class="page-bar">
7
+
8
+ <ul class="page-breadcrumb">
9
+ <li><%= link_to "Script Versions", phcscriptcdnpro.scriptcdn_scriptversions_path %><i class="fa fa-circle"></i></li>
10
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
11
+ </ul>
12
+
13
+ </div>
2
14
 
3
15
  <!-- Main Content -->
4
- <div class="wrapper wrapper-content">
5
- <div class="panel panel-default">
6
- <div class="panel-heading">
7
- <i class="fa fa-code"></i> Script Version List
8
- </div>
9
- <div class="panel-body">
10
- <table class="table table-bordered table-striped table-hover">
11
-
12
- <thead>
13
- <tr>
14
- <th>Script Version Packages</th>
15
- <th></th>
16
- <th></th>
17
- </tr>
18
- </thead>
19
-
20
- <tbody>
21
- <% @scriptcdn_scriptversions.each do |scriptcdn_scriptversion| %>
22
- <tr>
23
- <td><%= scriptcdn_scriptversion.scrptversionpakname %></td>
24
- <td><%= scriptcdn_scriptversion.scrptversion %></td>
25
- <td>
26
- <%= link_to 'Edit', edit_scriptcdn_scriptversion_path(scriptcdn_scriptversion), class: "btn btn-w-m btn-primary btn-xs btn-phc-custom" %>
27
- <%= link_to 'Destroy', scriptcdn_scriptversion, class: "btn btn-w-m btn-primary btn-phc-custom btn-xs btn-phc-custom", method: :delete, data: { confirm: 'Are you sure?' } %>
28
- </td>
29
- </tr>
16
+ <div class="row">
17
+ <div class="col-lg-12">
18
+
19
+ <div class="portlet light">
20
+
21
+ <div class="portlet-title">
22
+ <div class="caption">
23
+ <span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
24
+ </div>
25
+ <div class="actions">
26
+ <%= link_to new_scriptcdn_scriptversion_path, class: "btn blue-chambray" do %>
27
+ <i class="fa fa-plus"></i> Add a New Script Version
30
28
  <% end %>
31
- </tbody>
29
+ </div>
30
+ </div>
31
+
32
+ <div class="portlet-body">
33
+ <div class="table-responsive">
34
+ <table class="table table-striped table-bordered table-hover table-header-fixed">
35
+ <thead>
36
+ <tr>
37
+ <th>Script Version</th>
38
+ <th></th>
39
+ </tr>
40
+ </thead>
41
+ <tbody>
42
+ <% @scriptcdn_scriptversions.each do |scriptcdn_scriptversion| %>
43
+ <tr>
44
+ <td><%= scriptcdn_scriptversion.scrptversion %></td>
45
+ <td>
46
+ <%= link_to 'Edit', edit_scriptcdn_scriptversion_path(scriptcdn_scriptversion), class: "btn blue-chambray" %>
47
+ <%= link_to 'Destroy', scriptcdn_scriptversion, method: :delete, data: { confirm: 'Are you sure?' }, class: "btn red-mint" %>
48
+ </td>
49
+ </tr>
50
+ <% end %>
51
+ </tbody>
52
+ </table>
53
+ </div>
54
+ </div>
32
55
 
33
- </table>
34
- <%= link_to 'Add a New Version Option', new_scriptcdn_scriptversion_path, class: "btn btn-w-m btn-primary btn-phc-custom" %>
35
56
  </div>
57
+
36
58
  </div>
37
59
  </div>
@@ -1,6 +1,6 @@
1
1
  <!-- Title System -->
2
2
  <% phc_title "Script Versions" %>
3
- <% phc_title_tagline "New Script Version Pack" %>
3
+ <% phc_title_tagline "New Script Version" %>
4
4
 
5
5
  <!-- Bread Crumb -->
6
6
  <div class="page-bar">
data/config/routes.rb CHANGED
@@ -5,10 +5,16 @@ Phcscriptcdnpro::Engine.routes.draw do
5
5
 
6
6
  # Script CDN Listing System
7
7
  namespace :scriptcdn do
8
- resources :scripts
9
- resources :scriptversions do
8
+
9
+ # Main Script Module
10
+ resources :scripts do
11
+ resources :authors
10
12
  resources :scripturls
11
13
  end
14
+
15
+ # Script Versions
16
+ resources :scriptversions
17
+
12
18
  end
13
19
 
14
20
  end
@@ -4,6 +4,7 @@ class CreatePhcscriptcdnproScriptcdnScripts < ActiveRecord::Migration
4
4
 
5
5
  t.string :scrptname
6
6
  t.text :scrptdescription
7
+
7
8
  t.references :scriptversion, index: true
8
9
 
9
10
  t.timestamps null: false
@@ -2,7 +2,6 @@ class CreatePhcscriptcdnproScriptcdnScriptversions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :phcscriptcdnpro_scriptcdn_scriptversions do |t|
4
4
 
5
- t.string :scrptversionpakname
6
5
  t.string :scrptversion
7
6
 
8
7
  t.timestamps null: false
@@ -4,7 +4,9 @@ class CreatePhcscriptcdnproScriptcdnScripturls < ActiveRecord::Migration
4
4
 
5
5
  t.string :scrpturlphc
6
6
  t.string :scrpturltype
7
+
7
8
  t.references :scriptversion, index: true
9
+ t.references :script, index: true
8
10
 
9
11
  t.timestamps null: false
10
12
 
@@ -0,0 +1,20 @@
1
+ class CreatePhcscriptcdnproScriptcdnAuthors < ActiveRecord::Migration
2
+ def change
3
+
4
+ create_table :phcscriptcdnpro_scriptcdn_authors do |t|
5
+
6
+ t.string :authorfirstname
7
+ t.string :authorlastname
8
+
9
+ t.string :authoremail
10
+ t.string :authorgithub
11
+ t.string :authortwitter
12
+
13
+ t.references :script, index: true
14
+
15
+ t.timestamps null: false
16
+
17
+ end
18
+
19
+ end
20
+ end
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdnpro
2
- VERSION = "1.4.1"
2
+ VERSION = "1.4.2"
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.4.1
4
+ version: 1.4.2
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-16 00:00:00.000000000 Z
11
+ date: 2016-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -388,21 +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
392
391
  - app/assets/stylesheets/phcscriptcdnpro/application.css.scss
393
392
  - app/assets/stylesheets/phcscriptcdnpro/custom.scss
394
- - app/assets/stylesheets/phcscriptcdnpro/frontend/cdnpages.scss
395
393
  - app/controllers/phcscriptcdnpro/application_controller.rb
396
394
  - app/controllers/phcscriptcdnpro/frontend/cdnpages_controller.rb
395
+ - app/controllers/phcscriptcdnpro/scriptcdn/authors_controller.rb
397
396
  - app/controllers/phcscriptcdnpro/scriptcdn/scripts_controller.rb
398
397
  - app/controllers/phcscriptcdnpro/scriptcdn/scripturls_controller.rb
399
398
  - app/controllers/phcscriptcdnpro/scriptcdn/scriptversions_controller.rb
400
399
  - app/helpers/phcscriptcdnpro/application_helper.rb
401
- - app/helpers/phcscriptcdnpro/frontend/cdnpages_helper.rb
402
- - app/helpers/phcscriptcdnpro/scriptcdn/scripts_helper.rb
403
- - app/helpers/phcscriptcdnpro/scriptcdn/scripturls_helper.rb
404
- - app/helpers/phcscriptcdnpro/scriptcdn/scriptversions_helper.rb
405
400
  - app/models/phcscriptcdnpro/scriptcdn.rb
401
+ - app/models/phcscriptcdnpro/scriptcdn/author.rb
406
402
  - app/models/phcscriptcdnpro/scriptcdn/script.rb
407
403
  - app/models/phcscriptcdnpro/scriptcdn/scripturl.rb
408
404
  - app/models/phcscriptcdnpro/scriptcdn/scriptversion.rb
@@ -410,6 +406,11 @@ files:
410
406
  - app/views/layouts/phcscriptcdnpro/frontend.html.erb
411
407
  - app/views/phcscriptcdnpro/frontend/cdnpages/list.html.erb
412
408
  - app/views/phcscriptcdnpro/frontend/cdnpages/listing.html.erb
409
+ - app/views/phcscriptcdnpro/scriptcdn/authors/_form.html.erb
410
+ - app/views/phcscriptcdnpro/scriptcdn/authors/_formpatch.html.erb
411
+ - app/views/phcscriptcdnpro/scriptcdn/authors/edit.html.erb
412
+ - app/views/phcscriptcdnpro/scriptcdn/authors/index.html.erb
413
+ - app/views/phcscriptcdnpro/scriptcdn/authors/new.html.erb
413
414
  - app/views/phcscriptcdnpro/scriptcdn/scripts/_form.html.erb
414
415
  - app/views/phcscriptcdnpro/scriptcdn/scripts/edit.html.erb
415
416
  - app/views/phcscriptcdnpro/scriptcdn/scripts/index.html.erb
@@ -420,7 +421,6 @@ files:
420
421
  - app/views/phcscriptcdnpro/scriptcdn/scripturls/edit.html.erb
421
422
  - app/views/phcscriptcdnpro/scriptcdn/scripturls/index.html.erb
422
423
  - app/views/phcscriptcdnpro/scriptcdn/scripturls/new.html.erb
423
- - app/views/phcscriptcdnpro/scriptcdn/scripturls/show.html.erb
424
424
  - app/views/phcscriptcdnpro/scriptcdn/scriptversions/_form.html.erb
425
425
  - app/views/phcscriptcdnpro/scriptcdn/scriptversions/edit.html.erb
426
426
  - app/views/phcscriptcdnpro/scriptcdn/scriptversions/index.html.erb
@@ -429,6 +429,7 @@ files:
429
429
  - db/migrate/20160222025658_create_phcscriptcdnpro_scriptcdn_scripts.rb
430
430
  - db/migrate/20160222030223_create_phcscriptcdnpro_scriptcdn_scriptversions.rb
431
431
  - db/migrate/20160222030446_create_phcscriptcdnpro_scriptcdn_scripturls.rb
432
+ - db/migrate/20160617181959_create_phcscriptcdnpro_scriptcdn_authors.rb
432
433
  - lib/phcscriptcdnpro.rb
433
434
  - lib/phcscriptcdnpro/engine.rb
434
435
  - lib/phcscriptcdnpro/version.rb
@@ -1,2 +0,0 @@
1
- // Place all the behaviors and hooks related to the matching controller here.
2
- // All this logic will automatically be available in application.js.
@@ -1,3 +0,0 @@
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/
@@ -1,4 +0,0 @@
1
- module Phcscriptcdnpro
2
- module Frontend::CdnpagesHelper
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module Phcscriptcdnpro
2
- module Scriptcdn::ScriptsHelper
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module Phcscriptcdnpro
2
- module Scriptcdn::ScripturlsHelper
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module Phcscriptcdnpro
2
- module Scriptcdn::ScriptversionsHelper
3
- end
4
- end
@@ -1,11 +0,0 @@
1
- <%= render 'phcnotifi/notifications' %>
2
-
3
- <p>
4
- <strong>Script URL:</strong>
5
- <%= @scriptcdn_scripturl.scrpturlphc %>
6
- </p>
7
-
8
- <p>
9
- <strong>Script Type:</strong>
10
- <%= @scriptcdn_scripturl.scrpturltype %>
11
- </p>