phcdevworks_portfolio 0.2.0 → 0.3.0
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/phcdevworks_portfolio/website/pages.coffee +3 -0
- data/app/assets/stylesheets/phcdevworks_portfolio/website/pages.scss +3 -0
- data/app/controllers/phcdevworks_portfolio/website/pages_controller.rb +20 -0
- data/app/helpers/phcdevworks_portfolio/website/pages_helper.rb +4 -0
- data/app/views/layouts/phcdevworks_portfolio/frontend.html.erb +0 -0
- data/app/views/phcdevworks_portfolio/website/pages/index.html.erb +0 -0
- data/app/views/phcdevworks_portfolio/website/pages/show.html.erb +0 -0
- data/config/routes.rb +6 -1
- data/lib/phcdevworks_portfolio/version.rb +1 -1
- metadata +9 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06ac663c4bf3aa9e874e7e83fe6ed4767a49e379ccdfec9b0b4ee4e070743a7d
|
4
|
+
data.tar.gz: e5797d9ed1661c68bf9290045c204704c4d48575cef19f168f54d4ee8e373dbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4e21e4c59ba23897c2958e3e6a35e7751c9005d6703c7f5fa1029d3b2ed7fd6a288e1c09c4afd8347bbd60f19a020b049f2cd2f0c5dbd6ebbdc5bb01b9ace3c
|
7
|
+
data.tar.gz: af9c941c4352fcdc5702ef77c197b8dc375e7b6a9a7950e01c5628ee392ec6dcce8f0c0a57ed7fb4419a958c9350d787fd64acffef9c52716cdbe5b2e049b192
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require_dependency "phcdevworks_portfolio/application_controller"
|
2
|
+
|
3
|
+
module PhcdevworksPortfolio
|
4
|
+
class Website::PagesController < ApplicationController
|
5
|
+
|
6
|
+
# Layout
|
7
|
+
layout 'phcdevworks_portfolio/frontend'
|
8
|
+
|
9
|
+
# INDEX
|
10
|
+
def index
|
11
|
+
@phcdevworks_projects_index = Project::Post.where(project_post_status: "published")
|
12
|
+
end
|
13
|
+
|
14
|
+
# SHOW
|
15
|
+
def show
|
16
|
+
@phcdevworks_projects_single = Project::Post.friendly.find(params[:id])
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
data/config/routes.rb
CHANGED
@@ -2,7 +2,12 @@ PhcdevworksPortfolio::Engine.routes.draw do
|
|
2
2
|
|
3
3
|
# Project Routes
|
4
4
|
namespace :project do
|
5
|
-
resources :posts
|
5
|
+
resources :posts, class_name: "Project::Post"
|
6
|
+
end
|
7
|
+
|
8
|
+
# Frontend Routes
|
9
|
+
namespace :website do
|
10
|
+
resources :pages, only: [:index, :show]
|
6
11
|
end
|
7
12
|
|
8
13
|
# Mount Routes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcdevworks_portfolio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PHCDevworks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -253,12 +253,16 @@ files:
|
|
253
253
|
- app/assets/config/phcdevworks_portfolio_manifest.js
|
254
254
|
- app/assets/javascripts/phcdevworks_portfolio/application.js
|
255
255
|
- app/assets/javascripts/phcdevworks_portfolio/project/posts.coffee
|
256
|
+
- app/assets/javascripts/phcdevworks_portfolio/website/pages.coffee
|
256
257
|
- app/assets/stylesheets/phcdevworks_portfolio/application.scss
|
257
258
|
- app/assets/stylesheets/phcdevworks_portfolio/project/posts.scss
|
259
|
+
- app/assets/stylesheets/phcdevworks_portfolio/website/pages.scss
|
258
260
|
- app/controllers/phcdevworks_portfolio/application_controller.rb
|
259
261
|
- app/controllers/phcdevworks_portfolio/project/posts_controller.rb
|
262
|
+
- app/controllers/phcdevworks_portfolio/website/pages_controller.rb
|
260
263
|
- app/helpers/phcdevworks_portfolio/application_helper.rb
|
261
264
|
- app/helpers/phcdevworks_portfolio/project/posts_helper.rb
|
265
|
+
- app/helpers/phcdevworks_portfolio/website/pages_helper.rb
|
262
266
|
- app/jobs/phcdevworks_portfolio/application_job.rb
|
263
267
|
- app/mailers/phcdevworks_portfolio/application_mailer.rb
|
264
268
|
- app/models/phcdevworks_portfolio/application_record.rb
|
@@ -268,11 +272,14 @@ files:
|
|
268
272
|
- app/views/layouts/phcdevworks_portfolio/components/backend/footer/_footer.html.erb
|
269
273
|
- app/views/layouts/phcdevworks_portfolio/components/backend/navigation/_top_menu.html.erb
|
270
274
|
- app/views/layouts/phcdevworks_portfolio/components/backend/sidebars/_side_menu.html.erb
|
275
|
+
- app/views/layouts/phcdevworks_portfolio/frontend.html.erb
|
271
276
|
- app/views/phcdevworks_portfolio/project/posts/_form.html.erb
|
272
277
|
- app/views/phcdevworks_portfolio/project/posts/edit.html.erb
|
273
278
|
- app/views/phcdevworks_portfolio/project/posts/index.html.erb
|
274
279
|
- app/views/phcdevworks_portfolio/project/posts/new.html.erb
|
275
280
|
- app/views/phcdevworks_portfolio/project/posts/show.html.erb
|
281
|
+
- app/views/phcdevworks_portfolio/website/pages/index.html.erb
|
282
|
+
- app/views/phcdevworks_portfolio/website/pages/show.html.erb
|
276
283
|
- config/routes.rb
|
277
284
|
- db/migrate/20191014112330_create_phcdevworks_portfolio_project_posts.rb
|
278
285
|
- lib/phcdevworks_portfolio.rb
|