phcdevworks_press 7.1.2 → 7.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/phcdevworks_press/blog/articles_controller.rb +21 -13
- data/app/controllers/phcdevworks_press/blog/lists_controller.rb +29 -0
- data/app/controllers/phcdevworks_press/blog/reviews_controller.rb +29 -0
- data/app/views/phcdevworks_press/article/posts/_form.html.erb +0 -2
- data/app/views/phcdevworks_press/list/posts/_form.html.erb +0 -2
- data/app/views/phcdevworks_press/review/posts/_form.html.erb +0 -2
- data/config/routes.rb +2 -0
- data/lib/phcdevworks_press/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7a75ef1590d8613834f57427b9b0f92b832a45accb31463478a6283afcdc001
|
4
|
+
data.tar.gz: 978d322ab7297aff38649c803384de2e5b2fd3e8e2386ba22918a3d01fe4af4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b08083c20bf97c8c7f2133553148c0a5482b4403a6600547b7fbcb170f8bdb779f6d6426a485629e352ce20040cb6dee27c809c45e0c8120758ee1e4d4b46d9e
|
7
|
+
data.tar.gz: 5d1a015617d5af64cef35e666da9f1e036b068949833f01b69469c7d436a5b0e5456c384c318b8c383ec935f2a48f7435e3f1be078ce47bd40d0a8140cf2f9bb
|
@@ -1,21 +1,29 @@
|
|
1
1
|
require_dependency "phcdevworks_press/application_controller"
|
2
2
|
|
3
3
|
module PhcdevworksPress
|
4
|
-
|
4
|
+
class Blog::ListsController < ApplicationController
|
5
5
|
|
6
|
-
|
7
|
-
|
6
|
+
# Filters
|
7
|
+
before_action :phc_blog_index_all
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
@phcdevworks_cms_press_index = Article::Post.where(article_post_status: "published").order("created_at DESC")
|
12
|
-
@phcdevworks_cms_press_randomizer = Article::Post.order('RANDOM()').limit(1)
|
13
|
-
end
|
9
|
+
# Layout
|
10
|
+
layout "phcdevworks_press/frontend"
|
14
11
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
12
|
+
# INDEX
|
13
|
+
def index
|
14
|
+
end
|
15
|
+
|
16
|
+
# SHOW
|
17
|
+
def show
|
18
|
+
@phcdevworks_cms_press_article_single = Article::Post.friendly.find(params[:id])
|
19
|
+
end
|
19
20
|
|
20
|
-
|
21
|
+
# Index All for Blog
|
22
|
+
def phc_blog_index_all
|
23
|
+
@phcdevworks_cms_press_article_index = Article::Post.where(article_post_status: "published").order("created_at DESC")
|
24
|
+
@phcdevworks_cms_press_list_index = List::Post.where(list_post_status: "published").order("created_at DESC")
|
25
|
+
@phcdevworks_cms_press_review_index = Review::Post.where(review_post_status: "published").order("created_at DESC")
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
21
29
|
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require_dependency "phcdevworks_press/application_controller"
|
2
|
+
|
3
|
+
module PhcdevworksPress
|
4
|
+
class Blog::ListsController < ApplicationController
|
5
|
+
|
6
|
+
# Filters
|
7
|
+
before_action :phc_blog_index_all
|
8
|
+
|
9
|
+
# Layout
|
10
|
+
layout "phcdevworks_press/frontend"
|
11
|
+
|
12
|
+
# INDEX
|
13
|
+
def index
|
14
|
+
end
|
15
|
+
|
16
|
+
# SHOW
|
17
|
+
def show
|
18
|
+
@phcdevworks_cms_press_list_single = List::Post.friendly.find(params[:id])
|
19
|
+
end
|
20
|
+
|
21
|
+
# Index All for Blog
|
22
|
+
def phc_blog_index_all
|
23
|
+
@phcdevworks_cms_press_article_index = Article::Post.where(article_post_status: "published").order("created_at DESC")
|
24
|
+
@phcdevworks_cms_press_list_index = List::Post.where(list_post_status: "published").order("created_at DESC")
|
25
|
+
@phcdevworks_cms_press_review_index = Review::Post.where(review_post_status: "published").order("created_at DESC")
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require_dependency "phcdevworks_press/application_controller"
|
2
|
+
|
3
|
+
module PhcdevworksPress
|
4
|
+
class Blog::ReviewsController < ApplicationController
|
5
|
+
|
6
|
+
# Filters
|
7
|
+
before_action :phc_blog_index_all
|
8
|
+
|
9
|
+
# Layout
|
10
|
+
layout "phcdevworks_press/frontend"
|
11
|
+
|
12
|
+
# INDEX
|
13
|
+
def index
|
14
|
+
end
|
15
|
+
|
16
|
+
# SHOW
|
17
|
+
def show
|
18
|
+
@phcdevworks_cms_press_review_single = Review::Post.friendly.find(params[:id])
|
19
|
+
end
|
20
|
+
|
21
|
+
# Index All for Blog
|
22
|
+
def phc_blog_index_all
|
23
|
+
@phcdevworks_cms_press_article_index = Article::Post.where(article_post_status: "published").order("created_at DESC")
|
24
|
+
@phcdevworks_cms_press_list_index = List::Post.where(list_post_status: "published").order("created_at DESC")
|
25
|
+
@phcdevworks_cms_press_review_index = Review::Post.where(review_post_status: "published").order("created_at DESC")
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
end
|
@@ -32,8 +32,6 @@
|
|
32
32
|
</div>
|
33
33
|
<% if form.object.article_post_image.attached? %>
|
34
34
|
<%= image_tag main_app.url_for(form.object.article_post_image), class: "img-responsive img-thumbnail" %>
|
35
|
-
<%= form.label :remove_article_post_image %>
|
36
|
-
<%= form.check_box :remove_article_post_image %>
|
37
35
|
<% end %>
|
38
36
|
</div>
|
39
37
|
</div>
|
@@ -33,8 +33,6 @@
|
|
33
33
|
</div>
|
34
34
|
<% if form.object.list_post_image.attached? %>
|
35
35
|
<%= image_tag main_app.url_for(form.object.list_post_image), class: "img-responsive img-thumbnail" %>
|
36
|
-
<%= form.label :remove_list_post_image %>
|
37
|
-
<%= form.check_box :remove_list_post_image %>
|
38
36
|
<% end %>
|
39
37
|
</div>
|
40
38
|
</div>
|
@@ -33,8 +33,6 @@
|
|
33
33
|
</div>
|
34
34
|
<% if form.object.review_post_image.attached? %>
|
35
35
|
<%= image_tag main_app.url_for(form.object.review_post_image), class: "img-responsive img-thumbnail" %>
|
36
|
-
<%= form.label :remove_review_post_image %>
|
37
|
-
<%= form.check_box :remove_review_post_image %>
|
38
36
|
<% end %>
|
39
37
|
</div>
|
40
38
|
</div>
|
data/config/routes.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcdevworks_press
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.1.
|
4
|
+
version: 7.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PHCDevworks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -296,6 +296,8 @@ files:
|
|
296
296
|
- app/controllers/phcdevworks_press/application_controller.rb
|
297
297
|
- app/controllers/phcdevworks_press/article/posts_controller.rb
|
298
298
|
- app/controllers/phcdevworks_press/blog/articles_controller.rb
|
299
|
+
- app/controllers/phcdevworks_press/blog/lists_controller.rb
|
300
|
+
- app/controllers/phcdevworks_press/blog/reviews_controller.rb
|
299
301
|
- app/controllers/phcdevworks_press/list/items_controller.rb
|
300
302
|
- app/controllers/phcdevworks_press/list/posts_controller.rb
|
301
303
|
- app/controllers/phcdevworks_press/review/posts_controller.rb
|