phcscriptcdnpro 4.4.1 → 4.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (25) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/config/phcscriptcdnpro_manifest.js +1 -1
  3. data/app/controllers/phcscriptcdnpro/application_controller.rb +8 -1
  4. data/app/controllers/phcscriptcdnpro/frontpage/scriptlistings_controller.rb +20 -0
  5. data/app/helpers/phcscriptcdnpro/application_helper.rb +1 -0
  6. data/app/jobs/phcscriptcdnpro/application_job.rb +1 -0
  7. data/app/mailers/phcscriptcdnpro/application_mailer.rb +2 -0
  8. data/app/models/phcscriptcdnpro/frontpage/scriptlisting.rb +5 -0
  9. data/app/models/phcscriptcdnpro/script/licence.rb +1 -0
  10. data/app/models/phcscriptcdnpro/script/listing.rb +0 -1
  11. data/app/views/layouts/phcscriptcdnpro/application.html.erb +6 -6
  12. data/app/views/layouts/{components → phcscriptcdnpro/components}/backend/footer/_footer.html.erb +2 -2
  13. data/app/views/layouts/{components → phcscriptcdnpro/components}/backend/navigation/_top_bar.html.erb +0 -0
  14. data/app/views/layouts/{components → phcscriptcdnpro/components}/backend/sidebars/_left_sidebar.html.erb +10 -0
  15. data/app/views/layouts/{components → phcscriptcdnpro/components}/backend/sidebars/_right_sidebar.html.erb +0 -0
  16. data/app/views/layouts/phcscriptcdnpro/frontend.html.erb +45 -35
  17. data/app/views/phcscriptcdnpro/frontpage/scriptlistings/index.html.erb +64 -0
  18. data/app/views/phcscriptcdnpro/frontpage/scriptlistings/show.html.erb +65 -0
  19. data/config/routes.rb +3 -0
  20. data/lib/phcscriptcdnpro/engine.rb +4 -1
  21. data/lib/phcscriptcdnpro/version.rb +1 -1
  22. metadata +24 -9
  23. data/app/controllers/phcscriptcdnpro/cdnsite/cdnpages_controller.rb +0 -20
  24. data/app/views/phcscriptcdnpro/cdnsite/cdnpages/index.html.erb +0 -20
  25. data/app/views/phcscriptcdnpro/cdnsite/cdnpages/show.html.erb +0 -44
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f66831049e529f88e6d389cc9faae470cc15035
4
- data.tar.gz: 740e1baf808b50d8ba81a844e7c2319fdf751830
3
+ metadata.gz: a1c85dbe7da02f448fd699934fb5603382711b38
4
+ data.tar.gz: 78c0f2828a710525089447f60d63e8892065b1a1
5
5
  SHA512:
6
- metadata.gz: ed1224e22638d7dd3f29dee83a90d33ffa274b2bfec120f53ae8f6816bf8ed3ff91f54a7ba2a6b516f4837498fbe83bb1d6ac4dfc44a3acb22a45b628f53abf1
7
- data.tar.gz: fb6434a3ba60fe86babb93cec8c71d02de7adbcbc978c21ee4213af04abd1a4287cd41dda8d707ddacfa13fec2505686a828fb6de12ec4a41b85700bef7e1964
6
+ metadata.gz: cc1bb90db142e74f2d9e408830dac2350dab073d9d1a9bd9f3378a08e0ead7a2fa26e5e63b9481c34385e3ff9fe97bef10fe6c6e09b6dfd7ef35bcb900cfac0d
7
+ data.tar.gz: 927e0b69269945e947b80eef1cf4e82651c399e501e723a72189c14a0e03254a5ad43a4a97235d2b998d0ca71d88c1109e6b081873a6aa49407b463a2b5abb44
@@ -1,2 +1,2 @@
1
1
  //= link_directory ../javascripts/phcscriptcdnpro .js
2
- //= link_directory ../stylesheets/phcscriptcdnpro .css
2
+ //= link_directory ../stylesheets/phcscriptcdnpro .scss
@@ -1,8 +1,10 @@
1
1
  module Phcscriptcdnpro
2
2
  class ApplicationController < ActionController::Base
3
3
 
4
+ # Load Helpers for PHCPress Widgets
5
+ before_action :phcpress_recent_posts
6
+
4
7
  # Security Filters
5
- before_action :require_user
6
8
  protect_from_forgery with: :exception
7
9
 
8
10
  # Grab Member Information
@@ -38,5 +40,10 @@ module Phcscriptcdnpro
38
40
  helper Phcnotifi::Engine.helpers
39
41
  helper Phcaccountspro::Engine.helpers
40
42
 
43
+ # PHCPress Widget Helpers
44
+ def phcpress_recent_posts
45
+ @recent_posts = Articles::Post.all
46
+ end
47
+
41
48
  end
42
49
  end
@@ -0,0 +1,20 @@
1
+ require_dependency "phcscriptcdnpro/application_controller"
2
+
3
+ module Phcscriptcdnpro
4
+ class Frontpage::ScriptlistingsController < ApplicationController
5
+
6
+ # Change Layout
7
+ layout '/layouts/phcscriptcdnpro/frontend.html.erb'
8
+
9
+ # Script Listing Index
10
+ def index
11
+ @script_listings_index = Script::Listing.all
12
+ end
13
+
14
+ # Script Listing Post
15
+ def show
16
+ @script_listings_single = Script::Listing.find(params[:id])
17
+ end
18
+
19
+ end
20
+ end
@@ -1,4 +1,5 @@
1
1
  module Phcscriptcdnpro
2
2
  module ApplicationHelper
3
+
3
4
  end
4
5
  end
@@ -1,4 +1,5 @@
1
1
  module Phcscriptcdnpro
2
2
  class ApplicationJob < ActiveJob::Base
3
+
3
4
  end
4
5
  end
@@ -1,6 +1,8 @@
1
1
  module Phcscriptcdnpro
2
2
  class ApplicationMailer < ActionMailer::Base
3
+
3
4
  default from: 'no-reply@phcnetworks.net'
4
5
  layout 'mailer'
6
+
5
7
  end
6
8
  end
@@ -0,0 +1,5 @@
1
+ module Phcscriptcdnpro
2
+ class Frontpage::Scriptlisting < ApplicationRecord
3
+
4
+ end
5
+ end
@@ -1,4 +1,5 @@
1
1
  module Phcscriptcdnpro
2
2
  class Script::Licence < ApplicationRecord
3
+
3
4
  end
4
5
  end
@@ -3,7 +3,6 @@ module Phcscriptcdnpro
3
3
 
4
4
  # Relationships
5
5
 
6
- #has_many :informations, class_name: 'Phcscriptcdn::Script::Version'
7
6
  # URL Nested
8
7
  has_many :urls, class_name: 'Phcscriptcdnpro::Script::Url'
9
8
 
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
 
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title><%= content_for?(:title) ? yield(:title) : "PHCScriptCDN - Script CDN Listing Software" %></title>
6
+ <title><%= content_for?(:title) ? yield(:title) : "PHCPress - Rails CMS Engine" %></title>
7
7
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
8
8
  <link rel="canonical" href="http://phcmembers.com">
9
9
 
@@ -21,22 +21,22 @@
21
21
 
22
22
  <div id="wrapper" class="<%= params[:controller] %>.<%= params[:action] %>">
23
23
  <nav class="navbar-default navbar-static-side" role="navigation">
24
- <%= render 'layouts/components/backend/sidebars/left_sidebar' %>
24
+ <%= render 'layouts/phcscriptcdnpro/components/backend/sidebars/left_sidebar' %>
25
25
  </nav>
26
26
  <div id="page-wrapper" class="gray-bg <%= @extra_class %>">
27
27
  <div class="row border-bottom">
28
- <%= render 'layouts/components/backend/navigation/top_bar' %>
28
+ <%= render 'layouts/phcscriptcdnpro/components/backend/navigation/top_bar' %>
29
29
  </div>
30
30
  <%= yield %>
31
31
  <div class="footer">
32
- <%= render 'layouts/components/backend/footer/footer' %>
32
+ <%= render 'layouts/phcscriptcdnpro/components/backend/footer/footer' %>
33
33
  </div>
34
34
  </div>
35
- <%= render 'layouts/components/backend/sidebars/right_sidebar' %>
35
+ <%= render 'layouts/phcscriptcdnpro/components/backend/sidebars/right_sidebar' %>
36
36
  </div>
37
37
 
38
38
  <!-- Requried JavaScripts -->
39
- <%= javascript_include_tag "phcpresspro/application", 'data-turbolinks-track': 'reload' %>
39
+ <%= javascript_include_tag "phcscriptcdnpro/application", 'data-turbolinks-track': 'reload' %>
40
40
 
41
41
  </body>
42
42
  </html>
@@ -1,8 +1,8 @@
1
1
  <div class="pull-right">
2
2
  <%= link_to "https://phcnetworks.net", target: "_blank", rel: "nofollow" do %>
3
- PHCScriptCDN by PHCNetworks
3
+ PHCScript CDN by PHCNetworks
4
4
  <% end %>
5
5
  </div>
6
6
  <div>
7
- &copy; 2012-<%= Time.now.year %> - v4.4.1 - RELEASED - JAN-08-<%= Date.today.year %>
7
+ &copy; 2012-<%= Time.now.year %> - v4.5.0 - RELEASED - JAN-16-<%= Date.today.year %>
8
8
  </div>
@@ -37,5 +37,15 @@
37
37
  </ul>
38
38
  </li>
39
39
  <% end %>
40
+ <% if defined?(phcpresspro) %>
41
+ <li class="<%= is_active_controller('phcpresspro/articles/posts') %> <%= is_active_controller('phcpresspro/modules/categories') %>">
42
+ <a href=""><i class="fa fa-newspaper-o"></i> <span class="nav-label">News Posts</span> <span class="fa arrow"></span></a>
43
+ <ul class="nav nav-second-level collapse">
44
+ <li class=""><%= link_to "All Posts", phcpresspro.articles_posts_path %></li>
45
+ <li class=""><%= link_to "Add New", phcpresspro.new_articles_post_path %></li>
46
+ <li class=""><%= link_to "Categories", phcpresspro.modules_categories_path %></li>
47
+ </ul>
48
+ </li>
49
+ <% end %>
40
50
  </ul>
41
51
  </div>
@@ -1,64 +1,74 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
+
3
4
  <head>
4
5
 
6
+ <!-- Meta Info (Page Specific) -->
5
7
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title><%= content_for?(:title) ? yield(:title) : "Cloud Software & Web Development" %></title>
8
+ <title><%= content_for?(:title) ? yield(:title) : "PHCPress CMS" %></title>
7
9
 
8
- <!-- Meta Info -->
9
- <%= render 'layouts/components/frontend/elements/all/all_metainfo' %>
10
+ <!-- Meta Info (All) -->
11
+ <%= render 'layouts/components/frontend/seo/all_metainfo' %>
10
12
 
11
13
  <!-- Font -->
12
- <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400%7CRaleway:300,400,500,600,700%7CLato:300,400,400italic,600,700" rel="stylesheet" type="text/css" />
14
+ <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400%7CRaleway:300,400,500,600,700%7CLato:300,400,400italic,600,700"/>
15
+
16
+ <!-- Requried StyleSheets -->
17
+ <%= stylesheet_link_tag "application", media: "all", 'data-turbolinks-track': 'reload' %>
13
18
 
14
- <!-- Styles and JavaScript -->
15
- <%= stylesheet_link_tag "application", media: "all", 'data-turbolinks-track': 'reload' %>
19
+ <!-- Requried JavaScripts -->
16
20
  <%= javascript_include_tag "application", 'data-turbolinks-track': 'reload' %>
21
+
22
+ <!-- Security -->
17
23
  <%= csrf_meta_tags %>
18
24
 
19
25
  </head>
20
- <body class="smoothscroll enable-animation">
26
+
27
+ <body class="enable-animation">
21
28
 
22
29
  <div id="slidetop">
23
30
  <%= render 'layouts/components/frontend/header/slideout' %>
24
31
  </div>
25
32
 
26
33
  <div id="wrapper">
34
+
27
35
  <div id="topBar">
28
36
  <%= render 'layouts/components/frontend/header/topbar' %>
29
37
  </div>
30
- </div>
31
38
 
32
- <div id="header" class="sticky dark shadow-after-3 clearfix">
33
- <%= render 'layouts/components/frontend/navigation/navigation' %>
34
- </div>
35
-
36
- <%= yield %>
37
-
38
- <footer id="footer">
39
-
40
- <div class="container">
41
- <div class="row">
42
- <div class="col-md-3">
43
- <%= render 'layouts/components/frontend/footer/footer_address' %>
44
- </div>
45
- <div class="col-md-3">
46
- <%= render 'layouts/components/frontend/footer/footer_newspost' %>
47
- </div>
48
- <div class="col-md-2">
49
- <%= render 'layouts/components/frontend/footer/footer_quicklinks' %>
50
- </div>
51
- <div class="col-md-4">
52
- <%= render 'layouts/components/frontend/footer/footer_socialconnect' %>
39
+ <div id="header" class="sticky clearfix">
40
+ <%= render 'layouts/components/frontend/navigation/navigation' %>
41
+ </div>
42
+
43
+ <%= yield %>
44
+
45
+ <footer id="footer">
46
+
47
+ <div class="container">
48
+ <div class="row">
49
+ <div class="col-md-3">
50
+ <%= render 'layouts/components/frontend/footer/footer_address' %>
51
+ </div>
52
+ <div class="col-md-3">
53
+ <%= render 'layouts/components/frontend/footer/footer_newspost' %>
54
+ </div>
55
+ <div class="col-md-3">
56
+ <%= render 'layouts/components/frontend/footer/footer_quicklinks' %>
57
+ </div>
58
+ <div class="col-md-3">
59
+ <%= render 'layouts/components/frontend/footer/footer_socialconnect' %>
60
+ </div>
53
61
  </div>
54
62
  </div>
55
- </div>
56
-
57
- <div class="copyright">
58
- <%= render 'layouts/components/frontend/footer/footer_copyright' %>
59
- </div>
63
+
64
+ <div class="copyright">
65
+ <%= render 'layouts/components/frontend/footer/footer_copyright' %>
66
+ </div>
67
+
68
+ </footer>
60
69
 
61
- </footer>
70
+ </div>
62
71
 
63
72
  </body>
73
+
64
74
  </html>
@@ -0,0 +1,64 @@
1
+ <!-- Title System -->
2
+ <% phc_title "PHCNetworks Blog" %>
3
+ <% phc_title_tagline "News & Information" %>
4
+ <!-- Title System -->
5
+
6
+ <!-- Page Header -->
7
+ <section class="page-header page-header-lg parallax parallax-3" style="background-image:url('https://images.phcnetworks.net/stock/transportation/highway_mountain_night.jpg')">
8
+ <%= render 'layouts/components/pages/titlebars' %>
9
+ </section>
10
+ <!-- Page Header -->
11
+
12
+ <!-- Page Content -->
13
+ <section>
14
+ <div class="container">
15
+ <div class="row">
16
+
17
+ <!-- Left Sidebar -->
18
+ <div class="col-md-3 col-sm-3">
19
+ </div>
20
+ <!-- Left Sidebar -->
21
+
22
+ <!-- Blog List -->
23
+ <div class="col-md-9 col-sm-9">
24
+
25
+ <% @script_listings_index.each do |script_listings_index| %>
26
+ <div class="blog-post-item">
27
+ <h2><%= link_to script_listings_index.scripttitle, phcscriptcdnpro.script_listing_path(script_listings_index) %></h2>
28
+ <ul class="blog-post-info list-inline">
29
+ <li>
30
+ <%= link_to "#" do %>
31
+ <i class="fa fa-clock-o"></i>
32
+ <span class="font-lato"><%= script_listings_index.created_at %></span>
33
+ <% end %>
34
+ </li>
35
+ <li>
36
+ <%= link_to "#" do %>
37
+ <i class="fa fa-comment-o"></i>
38
+ <span class="font-lato">0 Comments</span>
39
+ <% end %>
40
+ </li>
41
+ <li>
42
+ <i class="fa fa-folder-open-o"></i>
43
+ <%= link_to "#" do %>
44
+ <span class="font-lato">Design</span>
45
+ <% end %>
46
+ <%= link_to "#" do %>
47
+ <span class="font-lato">Photography</span>
48
+ <% end %>
49
+ </li>
50
+ <li>
51
+
52
+ </li>
53
+ </ul>
54
+ <div></div>
55
+ </div>
56
+ <% end %>
57
+
58
+ </div>
59
+ <!-- Blog List -->
60
+
61
+ </div>
62
+ </div>
63
+ </section>
64
+ <!-- Page Content -->
@@ -0,0 +1,65 @@
1
+ <!-- Title System -->
2
+ <% phc_title "Blog" %>
3
+ <% phc_title_tagline "PHCNetworks News & Information" %>
4
+ <!-- Title System -->
5
+
6
+ <!-- Page Header -->
7
+ <section class="page-header page-header-lg parallax parallax-3" style="background-image:url('https://images.phcnetworks.net/stock/transportation/highway_mountain_night.jpg')">
8
+ <%= render 'layouts/components/pages/titlebars' %>
9
+ </section>
10
+ <!-- Page Header -->
11
+
12
+ <section>
13
+ <div class="container">
14
+ <div class="row">
15
+
16
+ <!-- Blog List -->
17
+ <div class="col-md-9 col-sm-9">
18
+ <h1 class="blog-post-title"><%= @articles_single.psttitle %></h1>
19
+ <ul class="blog-post-info list-inline">
20
+ <li>
21
+ <%= link_to "#" do %>
22
+ <i class="fa fa-clock-o"></i>
23
+ <span class="font-lato"><%= @articles_single.created_at %></span>
24
+ <% end %>
25
+ </li>
26
+ <li>
27
+ <%= link_to "#" do %>
28
+ <i class="fa fa-comment-o"></i>
29
+ <span class="font-lato">0 Comments</span>
30
+ <% end %>
31
+ </li>
32
+ <li>
33
+ <i class="fa fa-folder-open-o"></i>
34
+ <%= link_to "#" do %>
35
+ <span class="font-lato">Design</span>
36
+ <% end %>
37
+ <%= link_to "#" do %>
38
+ <span class="font-lato">Photography</span>
39
+ <% end %>
40
+ </li>
41
+ <li>
42
+ <%= link_to "#" do %>
43
+ <i class="fa fa-user"></i>
44
+ <span class="font-lato"><%= @articles_single.user_name %></span>
45
+ <% end %>
46
+ </li>
47
+ </ul>
48
+ <% if @articles_single.pstimage? %>
49
+ <figure class="margin-bottom-20">
50
+ <%= image_tag @articles_single.pstimage_url, class: "img-responsive" %>
51
+ </figure>
52
+ <% end %>
53
+ <div><%= @articles_single.psttext.html_safe %></div>
54
+ </div>
55
+ <!-- Blog List -->
56
+
57
+ <!-- Right Sidebar -->
58
+ <div class="col-md-3 col-sm-3">
59
+ </div>
60
+ <!-- Right Sidebar -->
61
+
62
+ </div>
63
+ </div>
64
+ </section>
65
+ <!-- Page Content -->
data/config/routes.rb CHANGED
@@ -1,5 +1,8 @@
1
1
  Phcscriptcdnpro::Engine.routes.draw do
2
2
 
3
+ namespace :frontpage do
4
+ resources :scriptlistings
5
+ end
3
6
  namespace :frontend do
4
7
  # Frontend Routes
5
8
  resources :cdnpages
@@ -5,11 +5,14 @@ module Phcscriptcdnpro
5
5
  require 'authrocket'
6
6
  require 'paper_trail'
7
7
 
8
- # PHCEngines & Theme Dependencies
8
+ # PHCThemes & PHCHelpers
9
9
  require 'phcnotifi'
10
10
  require 'phctitleseo'
11
11
  require 'phctheme1'
12
12
  require 'phcadmin2'
13
+
14
+ # PHCEngines
15
+ require 'phcpresspro'
13
16
  require 'phcaccountspro'
14
17
 
15
18
  # UI & Frontend Dependencies
@@ -1,3 +1,3 @@
1
1
  module Phcscriptcdnpro
2
- VERSION = "4.4.1"
2
+ VERSION = "4.5.0"
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: 4.4.1
4
+ version: 4.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-09 00:00:00.000000000 Z
11
+ date: 2017-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -140,6 +140,20 @@ dependencies:
140
140
  - - "~>"
141
141
  - !ruby/object:Gem::Version
142
142
  version: '3.6'
143
+ - !ruby/object:Gem::Dependency
144
+ name: phcpresspro
145
+ requirement: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - "~>"
148
+ - !ruby/object:Gem::Version
149
+ version: '6.6'
150
+ type: :runtime
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - "~>"
155
+ - !ruby/object:Gem::Version
156
+ version: '6.6'
143
157
  - !ruby/object:Gem::Dependency
144
158
  name: phcaccountspro
145
159
  requirement: !ruby/object:Gem::Requirement
@@ -589,7 +603,7 @@ files:
589
603
  - app/assets/javascripts/phcscriptcdnpro/application.js
590
604
  - app/assets/stylesheets/phcscriptcdnpro/application.scss
591
605
  - app/controllers/phcscriptcdnpro/application_controller.rb
592
- - app/controllers/phcscriptcdnpro/cdnsite/cdnpages_controller.rb
606
+ - app/controllers/phcscriptcdnpro/frontpage/scriptlistings_controller.rb
593
607
  - app/controllers/phcscriptcdnpro/script/authors_controller.rb
594
608
  - app/controllers/phcscriptcdnpro/script/extensions_controller.rb
595
609
  - app/controllers/phcscriptcdnpro/script/licences_controller.rb
@@ -600,6 +614,7 @@ files:
600
614
  - app/jobs/phcscriptcdnpro/application_job.rb
601
615
  - app/mailers/phcscriptcdnpro/application_mailer.rb
602
616
  - app/models/phcscriptcdnpro/application_record.rb
617
+ - app/models/phcscriptcdnpro/frontpage/scriptlisting.rb
603
618
  - app/models/phcscriptcdnpro/script.rb
604
619
  - app/models/phcscriptcdnpro/script/author.rb
605
620
  - app/models/phcscriptcdnpro/script/extension.rb
@@ -607,14 +622,14 @@ files:
607
622
  - app/models/phcscriptcdnpro/script/listing.rb
608
623
  - app/models/phcscriptcdnpro/script/url.rb
609
624
  - app/models/phcscriptcdnpro/script/version.rb
610
- - app/views/layouts/components/backend/footer/_footer.html.erb
611
- - app/views/layouts/components/backend/navigation/_top_bar.html.erb
612
- - app/views/layouts/components/backend/sidebars/_left_sidebar.html.erb
613
- - app/views/layouts/components/backend/sidebars/_right_sidebar.html.erb
614
625
  - app/views/layouts/phcscriptcdnpro/application.html.erb
626
+ - app/views/layouts/phcscriptcdnpro/components/backend/footer/_footer.html.erb
627
+ - app/views/layouts/phcscriptcdnpro/components/backend/navigation/_top_bar.html.erb
628
+ - app/views/layouts/phcscriptcdnpro/components/backend/sidebars/_left_sidebar.html.erb
629
+ - app/views/layouts/phcscriptcdnpro/components/backend/sidebars/_right_sidebar.html.erb
615
630
  - app/views/layouts/phcscriptcdnpro/frontend.html.erb
616
- - app/views/phcscriptcdnpro/cdnsite/cdnpages/index.html.erb
617
- - app/views/phcscriptcdnpro/cdnsite/cdnpages/show.html.erb
631
+ - app/views/phcscriptcdnpro/frontpage/scriptlistings/index.html.erb
632
+ - app/views/phcscriptcdnpro/frontpage/scriptlistings/show.html.erb
618
633
  - app/views/phcscriptcdnpro/script/authors/_form.html.erb
619
634
  - app/views/phcscriptcdnpro/script/authors/edit.html.erb
620
635
  - app/views/phcscriptcdnpro/script/authors/index.html.erb
@@ -1,20 +0,0 @@
1
- require_dependency "phcscriptcdnpro/application_controller"
2
-
3
- module Phcscriptcdnpro
4
- class Cdnsite::CdnpagesController < ApplicationController
5
-
6
- # Security & Action Filters
7
- layout '/layouts/phcscriptcdnpro/frontend.html.erb'
8
-
9
- # Script List FrontEnd
10
- def index
11
- @script_listings = Script::Listing.all
12
- end
13
-
14
- # Script List BackEnd
15
- def show
16
- @script_listing = Script::Listing.find(params[:id])
17
- end
18
-
19
- end
20
- end
@@ -1,20 +0,0 @@
1
- <% phc_title "PHC Script CDN" %>
2
- <% phc_title_tagline "Script Content Delivery Network" %>
3
-
4
- <section>
5
- <div class="container">
6
- <div class="row">
7
- <div class="col-md-12">
8
-
9
- <div class="list-group">
10
- <% @script_listings.each do |script_listing| %>
11
- <%= link_to phcscriptcdnpro.cdnsite_cdnpage_path(script_listing), class: "list-group-item" do %>
12
- <h4 class="list-group-item-heading"><%= script_listing.scripttitle %></h4>
13
- <% end %>
14
- <% end %>
15
- </div>
16
-
17
- </div>
18
- </div>
19
- </div>
20
- </section>
@@ -1,44 +0,0 @@
1
- <% phc_title "PHC Script CDN" %>
2
- <% phc_title_tagline "Script Content Delivery Network" %>
3
-
4
- <!-- Start Script CDN Detail -->
5
- <section>
6
- <div class="container">
7
-
8
- <div class="row nomargin">
9
- <% @script_listing.urls.each do |url| %>
10
- <div class="col-md-8 col-sm-8">
11
-
12
- <div class="panel panel-default">
13
-
14
- <div class="panel-body">
15
-
16
- <!-- Start Subtitle -->
17
- <div class="heading-title heading-border">
18
- <h2><%= url.listing.scripttitle %> <span><%= url.listing.scriptstatus %></span></h2>
19
- <ul class="list-inline categories nomargin">
20
- <li><%= url.listing.scriptstatus %></li>
21
- </ul>
22
- </div>
23
- <!-- End Subtitle -->
24
-
25
- <!-- Start Description -->
26
- <p class="font-lato size-18"><%= url.listing.scriptdescription %></p>
27
- <!-- End Description -->
28
-
29
- </div>
30
-
31
- <div class="panel-footer">
32
- <small><strong>Created:</strong> <%= l(url.created_at, format: :long) %> / <strong>Updated:</strong> <%= l(url.updated_at, format: :long) %></small>
33
- </div>
34
-
35
- </div>
36
-
37
- </div>
38
-
39
- <% end %>
40
- </div>
41
-
42
- </div>
43
- </section>
44
- <!-- End Script CDN Detail -->