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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3bb90277a5d7d57ce20b5ae8ff24ec31a5c1be8a25c9c9000e63e2f62c96f095
4
- data.tar.gz: 1c1654ca8a48ec5e83bb7d8171462f14bb51fc9b4615f417a59aee812b451f89
3
+ metadata.gz: 42f1c629a4bbef831f3aeeee7bd26aea041217028f03384b7474e186a3f5a9ed
4
+ data.tar.gz: 25271adaab537d6e3720cb268d691a5ea6d6acd91b5957c1cad76bb3f45b3dd1
5
5
  SHA512:
6
- metadata.gz: 5d858e20043c7099ac9c365596434b8ae2b54fcac4deb870f445494e12f09c9b67cbcc2f1b361b6adbca46e09afdabcb51c6acd36c608072cf225be72b0c4845
7
- data.tar.gz: b80357105d349f61e091717350e311890d2679062bd91d3cd677a66079c4e82e0f3ea83a36835fe16fd20d42ccfdab854e95fb145700187e4d043a1cfedc55fb
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.all
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.all
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
@@ -8,7 +8,7 @@ module Phcpresspro
8
8
 
9
9
  # INDEX
10
10
  def index
11
- @phcpress_posts_index = Article::Post.where(pststatus: "published")
11
+ @phcpress_posts_index = Article::Post.where(org_id: current_user.org_id, pststatus: "published")
12
12
  end
13
13
 
14
14
  # SHOW
@@ -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 'Edit Category', edit_article_category_path(article_category), class: "btn btn-primary btn-xs" %>
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>
@@ -1,3 +1,3 @@
1
1
  module Phcpresspro
2
- VERSION = "83.0.0"
2
+ VERSION = "84.0.0"
3
3
  end
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: 83.0.0
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-18 00:00:00.000000000 Z
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