phcpresspro 70.1.0 → 70.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/app/assets/javascripts/phcpresspro/website/pages.coffee +3 -0
- data/app/assets/stylesheets/phcpresspro/website/pages.scss +3 -0
- data/app/controllers/phcpresspro/api/v1/post_index.json.rabl +2 -0
- data/app/controllers/phcpresspro/api/v1/post_single.json.rabl +2 -0
- data/app/controllers/phcpresspro/website/pages_controller.rb +20 -0
- data/app/helpers/phcpresspro/website/pages_helper.rb +4 -0
- data/app/models/phcpresspro/website.rb +7 -0
- data/app/models/phcpresspro/website/page.rb +4 -0
- data/app/views/layouts/phcpresspro/application.html.erb +1 -1
- data/app/views/phcpresspro/website/pages/post_index.html.erb +0 -0
- data/app/views/phcpresspro/website/pages/post_single.html.erb +0 -0
- data/config/routes.rb +4 -0
- data/db/migrate/20190317190053_create_phcpresspro_website_pages.rb +8 -0
- data/lib/phcpresspro/version.rb +1 -1
- metadata +14 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac338d308508bd5d18e427d327b4f5b7727830744067c0aad2c679e65c90021e
|
4
|
+
data.tar.gz: 88f1e377f488b06b0f24e5a067aed7f7e69e229b28e3e5a499446a9d233fbdef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 284dcbd97f90c56611912ad9ef480a466d214b6e806941dc99297bd565d86b807083d4b226086c1474aa9d0143bf590776b266dfad29ddd6a3436f009d3cbd74
|
7
|
+
data.tar.gz: 266969f9e9c5a77b05a08cd7033a7ceef1abb323b77bed71aa88935a95ca1cc1eb0fc85250adf0e3038879754c9f10897520b70c1724378b1fc4591cce0b35a0
|
data/MIT-LICENSE
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
require_dependency "phcpresspro/application_controller"
|
2
|
+
|
3
|
+
module Phcpresspro
|
4
|
+
class Website::PagesController < ApplicationController
|
5
|
+
|
6
|
+
# Security & Action Filters
|
7
|
+
before_action :set_website_page, only: [:show]
|
8
|
+
|
9
|
+
# Index for All Published Posts
|
10
|
+
def post_index
|
11
|
+
@phcpresspro_posts_index = Article::Post.where(pststatus: "published")
|
12
|
+
end
|
13
|
+
|
14
|
+
# Single Page for Published Post
|
15
|
+
def post_single
|
16
|
+
@phcpresspro_posts_single = Article::Post.friendly.find(params[:id])
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
|
5
5
|
<% phc_seo_title "PHCPress(Pro) CMS" %>
|
6
|
-
<% phc_seo_description "
|
6
|
+
<% phc_seo_description "Content Management System by PHCDevworks" %>
|
7
7
|
|
8
8
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
9
9
|
<title><%= yield(:phc_seo_title) %></title>
|
File without changes
|
File without changes
|
data/config/routes.rb
CHANGED
@@ -9,6 +9,10 @@ Phcpresspro::Engine.routes.draw do
|
|
9
9
|
resources :posts, class_name: 'Phcpresspro::Articles::Post'
|
10
10
|
end
|
11
11
|
|
12
|
+
# Application FrontEnd
|
13
|
+
get 'blog/index', to: 'website/pages#post_index'
|
14
|
+
get 'blog/article', to: 'website/pages#post_single'
|
15
|
+
|
12
16
|
# Application API
|
13
17
|
namespace :api do
|
14
18
|
namespace :v1 do
|
data/lib/phcpresspro/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcpresspro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 70.
|
4
|
+
version: 70.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BradPotts
|
@@ -428,14 +428,14 @@ dependencies:
|
|
428
428
|
requirements:
|
429
429
|
- - "~>"
|
430
430
|
- !ruby/object:Gem::Version
|
431
|
-
version: '58.
|
431
|
+
version: '58.2'
|
432
432
|
type: :runtime
|
433
433
|
prerelease: false
|
434
434
|
version_requirements: !ruby/object:Gem::Requirement
|
435
435
|
requirements:
|
436
436
|
- - "~>"
|
437
437
|
- !ruby/object:Gem::Version
|
438
|
-
version: '58.
|
438
|
+
version: '58.2'
|
439
439
|
- !ruby/object:Gem::Dependency
|
440
440
|
name: sqlite3
|
441
441
|
requirement: !ruby/object:Gem::Requirement
|
@@ -653,15 +653,21 @@ files:
|
|
653
653
|
- app/assets/javascripts/phcpresspro/article/categories.js
|
654
654
|
- app/assets/javascripts/phcpresspro/article/posts.js
|
655
655
|
- app/assets/javascripts/phcpresspro/custom/custom.js
|
656
|
+
- app/assets/javascripts/phcpresspro/website/pages.coffee
|
656
657
|
- app/assets/stylesheets/phcpresspro/application.scss
|
657
658
|
- app/assets/stylesheets/phcpresspro/article/categories.scss
|
658
659
|
- app/assets/stylesheets/phcpresspro/article/posts.scss
|
660
|
+
- app/assets/stylesheets/phcpresspro/website/pages.scss
|
661
|
+
- app/controllers/phcpresspro/api/v1/post_index.json.rabl
|
662
|
+
- app/controllers/phcpresspro/api/v1/post_single.json.rabl
|
659
663
|
- app/controllers/phcpresspro/application_controller.rb
|
660
664
|
- app/controllers/phcpresspro/article/categories_controller.rb
|
661
665
|
- app/controllers/phcpresspro/article/posts_controller.rb
|
666
|
+
- app/controllers/phcpresspro/website/pages_controller.rb
|
662
667
|
- app/helpers/phcpresspro/application_helper.rb
|
663
668
|
- app/helpers/phcpresspro/article/categories_helper.rb
|
664
669
|
- app/helpers/phcpresspro/article/posts_helper.rb
|
670
|
+
- app/helpers/phcpresspro/website/pages_helper.rb
|
665
671
|
- app/jobs/phcpresspro/application_job.rb
|
666
672
|
- app/mailers/phcpresspro/application_mailer.rb
|
667
673
|
- app/models/phcpresspro/application_record.rb
|
@@ -670,6 +676,8 @@ files:
|
|
670
676
|
- app/models/phcpresspro/article/post.rb
|
671
677
|
- app/models/phcpresspro/category_versions.rb
|
672
678
|
- app/models/phcpresspro/post_versions.rb
|
679
|
+
- app/models/phcpresspro/website.rb
|
680
|
+
- app/models/phcpresspro/website/page.rb
|
673
681
|
- app/views/layouts/phcpresspro/application.html.erb
|
674
682
|
- app/views/layouts/phcpresspro/components/backend/footer/_footer.html.erb
|
675
683
|
- app/views/layouts/phcpresspro/components/backend/navigation/_top_menu.html.erb
|
@@ -684,6 +692,8 @@ files:
|
|
684
692
|
- app/views/phcpresspro/article/posts/index.html.erb
|
685
693
|
- app/views/phcpresspro/article/posts/new.html.erb
|
686
694
|
- app/views/phcpresspro/article/posts/show.html.erb
|
695
|
+
- app/views/phcpresspro/website/pages/post_index.html.erb
|
696
|
+
- app/views/phcpresspro/website/pages/post_single.html.erb
|
687
697
|
- config/routes.rb
|
688
698
|
- db/migrate/20170509002355_create_phcpresspro_friendly_id_slugs.rb
|
689
699
|
- db/migrate/20170517064030_create_phcpresspro_post_versions.rb
|
@@ -691,6 +701,7 @@ files:
|
|
691
701
|
- db/migrate/20190315010932_create_phcpresspro_article_posts.rb
|
692
702
|
- db/migrate/20190315040834_create_phcpresspro_article_categories.rb
|
693
703
|
- db/migrate/20190315173237_create_join_table_categories_posts.rb
|
704
|
+
- db/migrate/20190317190053_create_phcpresspro_website_pages.rb
|
694
705
|
- lib/phcpresspro.rb
|
695
706
|
- lib/phcpresspro/engine.rb
|
696
707
|
- lib/phcpresspro/version.rb
|