phcdevworks_press 7.1.1 → 7.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '078d5403fcd30451558d715f48e464223a8e26b259d3122f8dfdf3d0185904c3'
4
- data.tar.gz: 8329ad8cf61ec0915a11fe4ce4512ca2d2cab4341956aadd987a01d21a08e9b7
3
+ metadata.gz: e549a55b9e83d22b8cb8706d5c240fc2b92d8e269f98b33e25981e7c0c66aaa7
4
+ data.tar.gz: 730b9ed75d5c891c3c9389800e5d18bd26cabbf6649a607806e8543cecb49ffb
5
5
  SHA512:
6
- metadata.gz: 398b8a4f5d8f64da050a16f7887423dc0eeae8cf1ebe55af9a41d433465bc0c2dbf1b9ac9b849a22c6409339912842e1c28140b382f9e0adf16e1f01b724435b
7
- data.tar.gz: fd920e792fb2c0aff70452bfea9f64b77da25d61c45358698bea6db67570ccb981b467a4376dc93a5514cee2436513e841501e785671a553261fe6dab17e1eb2
6
+ metadata.gz: a75bbfd3847c0470144f92d221802f43bf39dcd292b3046d1dff9e5feabbba1a5ec28b34cb92d3ca728480aadd43314e651a0f2d2d758b64ad0095feab8f0a88
7
+ data.tar.gz: 469247e142152b710d168620b9e6288d463afa8d056ac7592dcd96378f8ef6d956871a85b253a9b3d64c424942d1917cc88b173dc1addfeea87aee7e103251c2
@@ -8,13 +8,12 @@ module PhcdevworksPress
8
8
 
9
9
  # INDEX
10
10
  def index
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)
11
+ @phcdevworks_cms_press_article_index = Article::Post.where(article_post_status: "published").order("created_at DESC")
13
12
  end
14
13
 
15
14
  # SHOW
16
15
  def show
17
- @phcdevworks_cms_press_single = Article::Post.friendly.find(params[:id])
16
+ @phcdevworks_cms_press_article_single = Article::Post.friendly.find(params[:id])
18
17
  end
19
18
 
20
19
  end
@@ -0,0 +1,20 @@
1
+ require_dependency "phcdevworks_press/application_controller"
2
+
3
+ module PhcdevworksPress
4
+ class Blog::ListsController < ApplicationController
5
+
6
+ # Layout
7
+ layout "phcdevworks_press/frontend"
8
+
9
+ # INDEX
10
+ def index
11
+ @phcdevworks_cms_press_list_index = List::Post.where(list_post_status: "published").order("created_at DESC")
12
+ end
13
+
14
+ # SHOW
15
+ def show
16
+ @phcdevworks_cms_press_list_single = List::Post.friendly.find(params[:id])
17
+ end
18
+
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ require_dependency "phcdevworks_press/application_controller"
2
+
3
+ module PhcdevworksPress
4
+ class Blog::ReviewsController < ApplicationController
5
+
6
+ # Layout
7
+ layout "phcdevworks_press/frontend"
8
+
9
+ # INDEX
10
+ def index
11
+ @phcdevworks_cms_press_review_index = Review::Post.where(review_post_status: "published").order("created_at DESC")
12
+ end
13
+
14
+ # SHOW
15
+ def show
16
+ @phcdevworks_cms_press_review_single = Review::Post.friendly.find(params[:id])
17
+ end
18
+
19
+ end
20
+ end
@@ -31,9 +31,7 @@
31
31
  <%= form.file_field :article_post_image, class: "form-control" %>
32
32
  </div>
33
33
  <% if form.object.article_post_image.attached? %>
34
- <%= image_tag main_app.url_for(form.object.post_image), class: "img-responsive img-thumbnail" %>
35
- <%= form.label :remove_article_post_image %>
36
- <%= form.check_box :remove_article_post_image %>
34
+ <%= image_tag main_app.url_for(form.object.article_post_image), class: "img-responsive img-thumbnail" %>
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>
@@ -20,6 +20,8 @@ PhcdevworksPress::Engine.routes.draw do
20
20
  # Frontend Routes
21
21
  namespace :blog do
22
22
  resources :articles, only: [:index, :show]
23
+ resources :lists, only: [:index, :show]
24
+ resources :reviews, only: [:index, :show]
23
25
  end
24
26
 
25
27
  # API Routes
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksPress
2
- VERSION = "7.1.1"
2
+ VERSION = "7.1.6"
3
3
  end
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.1
4
+ version: 7.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-25 00:00:00.000000000 Z
11
+ date: 2020-09-02 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