phcpresspro 83.0.0 → 84.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/phcpresspro/article/categories_controller.rb +2 -1
- data/app/controllers/phcpresspro/article/posts_controller.rb +2 -1
- data/app/controllers/phcpresspro/blog/articles_controller.rb +1 -1
- data/app/{controllers → views}/phcpresspro/api/v1/post_index.json.rabl +0 -0
- data/app/{controllers → views}/phcpresspro/api/v1/post_single.json.rabl +0 -0
- data/app/views/phcpresspro/article/categories/index.html.erb +3 -3
- data/lib/phcpresspro/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42f1c629a4bbef831f3aeeee7bd26aea041217028f03384b7474e186a3f5a9ed
|
4
|
+
data.tar.gz: 25271adaab537d6e3720cb268d691a5ea6d6acd91b5957c1cad76bb3f45b3dd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca2e7de50eb74108e99446b0074ff5093479bc84131f20e519e4e7198d10b7b724ec0af918082114e9f556b8f54bd78079f71a15a6d52eff84e0ec79cb262cea
|
7
|
+
data.tar.gz: b601cd104e226e99f670d2d999872ba346e81603c5adb82efb151804691b081ca9a42476c86f02c224e0b55418df86487412c38ad1241948d4356d91760a8d54
|
@@ -11,7 +11,7 @@ module Phcpresspro
|
|
11
11
|
|
12
12
|
# INDEX
|
13
13
|
def index
|
14
|
-
@article_categories = Phcpresspro::Article::Category.
|
14
|
+
@article_categories = Phcpresspro::Article::Category.where(org_id: current_user.org_id)
|
15
15
|
end
|
16
16
|
|
17
17
|
# SHOW
|
@@ -33,6 +33,7 @@ module Phcpresspro
|
|
33
33
|
def create
|
34
34
|
@article_category = Phcpresspro::Article::Category.new(article_category_params)
|
35
35
|
@article_category.user_id = current_user.id
|
36
|
+
@article_category.org_id = current_user.org_id
|
36
37
|
if @article_category.save
|
37
38
|
redirect_to article_categories_url, :flash => { :success => 'Category was successfully created.' }
|
38
39
|
else
|
@@ -11,7 +11,7 @@ module Phcpresspro
|
|
11
11
|
|
12
12
|
# INDEX
|
13
13
|
def index
|
14
|
-
@article_posts = Phcpresspro::Article::Post.
|
14
|
+
@article_posts = Phcpresspro::Article::Post.where(org_id: current_user.org_id)
|
15
15
|
end
|
16
16
|
|
17
17
|
# SHOW
|
@@ -33,6 +33,7 @@ module Phcpresspro
|
|
33
33
|
def create
|
34
34
|
@article_post = Phcpresspro::Article::Post.new(article_post_params)
|
35
35
|
@article_post.user_id = current_user.id
|
36
|
+
@article_post.org_id = current_user.org_id
|
36
37
|
if @article_post.save
|
37
38
|
redirect_to article_posts_url, :flash => { :success => 'Post was successfully created.' }
|
38
39
|
else
|
File without changes
|
File without changes
|
@@ -43,10 +43,10 @@
|
|
43
43
|
<tbody>
|
44
44
|
<% @article_categories.each do |article_category| %>
|
45
45
|
<tr>
|
46
|
-
<td><%= link_to article_category.category_name, phcpresspro.edit_article_category_path(article_category) %></td>
|
47
|
-
<td>
|
46
|
+
<td style="width: 70%"><%= link_to article_category.category_name, phcpresspro.edit_article_category_path(article_category) %></td>
|
47
|
+
<td style="width: 30%">
|
48
48
|
<div class="btn-group d-flex" role="group">
|
49
|
-
<%= link_to '
|
49
|
+
<%= link_to 'Update Category', edit_article_category_path(article_category), class: "btn btn-primary btn-xs" %>
|
50
50
|
<%= link_to 'Remove Category', article_category, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
|
51
51
|
</div>
|
52
52
|
</td>
|
data/lib/phcpresspro/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcpresspro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 84.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BradPotts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -638,8 +638,6 @@ files:
|
|
638
638
|
- app/assets/config/phcpresspro_manifest.js
|
639
639
|
- app/assets/javascripts/phcpresspro/application.js
|
640
640
|
- app/assets/stylesheets/phcpresspro/application.scss
|
641
|
-
- app/controllers/phcpresspro/api/v1/post_index.json.rabl
|
642
|
-
- app/controllers/phcpresspro/api/v1/post_single.json.rabl
|
643
641
|
- app/controllers/phcpresspro/application_controller.rb
|
644
642
|
- app/controllers/phcpresspro/article/categories_controller.rb
|
645
643
|
- app/controllers/phcpresspro/article/posts_controller.rb
|
@@ -660,6 +658,8 @@ files:
|
|
660
658
|
- app/views/layouts/phcpresspro/components/backend/navigation/_top_menu.html.erb
|
661
659
|
- app/views/layouts/phcpresspro/components/backend/sidebars/_side_menu.html.erb
|
662
660
|
- app/views/layouts/phcpresspro/frontend.html.erb
|
661
|
+
- app/views/phcpresspro/api/v1/post_index.json.rabl
|
662
|
+
- app/views/phcpresspro/api/v1/post_single.json.rabl
|
663
663
|
- app/views/phcpresspro/article/categories/_form.html.erb
|
664
664
|
- app/views/phcpresspro/article/categories/edit.html.erb
|
665
665
|
- app/views/phcpresspro/article/categories/index.html.erb
|