phcdevworks_press 7.0.0 → 7.1.4
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 +6 -3
- data/app/views/phcdevworks_press/article/posts/_form.html.erb +1 -3
- 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/db/migrate/20200712064740_create_phcdevworks_press_review_posts.rb +2 -1
- data/db/migrate/20200712064920_create_phcdevworks_press_list_items.rb +1 -1
- data/lib/phcdevworks_press/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55e617fb9f808ab3ce2240214167eaefb631cf555e106eb5365586cd7a423a98
|
4
|
+
data.tar.gz: c481f97a1c6c76c66262c3a60c80cabb7d661c91b881ecbdbdc438f64aa09e73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2ce7ebac905ba6795b2e0e0707c74c1d5d2fa2309f762e211af975a89840a6623024cc10425092e7eef93980d68c74f03b0394f7f780c52d8630d77b0766c28
|
7
|
+
data.tar.gz: 6f1bd70c164e0350a08224ef338c145177de0387a248f124fa43011401ae024b95939fea3f869d0434e926c51ac2117834548cde225405780ec47e21549d8ac4
|
@@ -8,13 +8,16 @@ module PhcdevworksPress
|
|
8
8
|
|
9
9
|
# INDEX
|
10
10
|
def index
|
11
|
-
@
|
12
|
-
@
|
11
|
+
@phcdevworks_cms_press_article_index = Article::Post.where(article_post_status: "published").order("created_at DESC")
|
12
|
+
@phcdevworks_cms_press_list_index = List::Post.where(list_post_status: "published").order("created_at DESC")
|
13
|
+
@phcdevworks_cms_press_review_index = Review::Post.where(review_post_status: "published").order("created_at DESC")
|
13
14
|
end
|
14
15
|
|
15
16
|
# SHOW
|
16
17
|
def show
|
17
|
-
@
|
18
|
+
@phcdevworks_cms_press_article_single = Article::Post.friendly.find(params[:id])
|
19
|
+
@phcdevworks_cms_press_list_single = List::Post.friendly.find(params[:id])
|
20
|
+
@phcdevworks_cms_press_review_single = Review::Post.friendly.find(params[:id])
|
18
21
|
end
|
19
22
|
|
20
23
|
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.
|
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>
|
data/config/routes.rb
CHANGED
@@ -2,10 +2,10 @@ class CreatePhcdevworksPressListItems < ActiveRecord::Migration[6.0]
|
|
2
2
|
def change
|
3
3
|
create_table :phcdevworks_press_list_items do |t|
|
4
4
|
|
5
|
+
t.integer :list_item_number
|
5
6
|
t.string :list_item_title
|
6
7
|
t.text :list_item_text
|
7
8
|
t.string :list_item_url
|
8
|
-
t.integer :list_item_number
|
9
9
|
|
10
10
|
t.string :optimization_id
|
11
11
|
|
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.
|
4
|
+
version: 7.1.4
|
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-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|