phcdevworks_core_modules 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/phcdevworks_core_modules/modules/category.rb +4 -1
- data/app/views/layouts/phcdevworks_core_modules/components/backend/sidebars/_side_menu.html.erb +8 -8
- data/lib/phcdevworks_core_modules/engine.rb +1 -1
- data/lib/phcdevworks_core_modules/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: 1450d119bb7e7991034bed0a128b19e57ca40653d2372cd6ebda0a483bc253cc
|
4
|
+
data.tar.gz: f7dd485a1f4537e05c40cbbb8fa2cdf1bf4f3a06066f08c88e1645b85b15d6b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '047875babb6ba572cc63239dccaa7e19104b89e366bb1052927ff11153c18a84dea8bb8185a18edb597a3315425b82ceba80070f4e6206b38fc1e23201161f54'
|
7
|
+
data.tar.gz: 228c903a68bcd6b21617096708d69f82cd61ec80d362682ea847fac1960f9b8f04b7979e12554ba883e591219fd9dec8efe9133121dbb65e4e8f8556a3f8fb07
|
@@ -8,8 +8,11 @@ module PhcdevworksCoreModules
|
|
8
8
|
has_paper_trail :class_name => "PhcdevworksCoreModules::CoreCategoryVersions"
|
9
9
|
|
10
10
|
# Relationships
|
11
|
-
has_and_belongs_to_many :posts, class_name: "Article::Post", :join_table => "phcdevworks_press_categories_posts", :dependent => :destroy
|
12
11
|
belongs_to :user, class_name: "PhcdevworksAccounts::User"
|
12
|
+
has_and_belongs_to_many :posts, class_name: "PhcdevworksPress::Article::Post", :join_table => "phcdevworks_press_categories_posts", :dependent => :destroy
|
13
|
+
has_and_belongs_to_many :posts, class_name: "PhcdevworksPortfolio::Project::Post", :join_table => "phcdevworks_portfolio_categories_posts", :dependent => :destroy
|
14
|
+
has_and_belongs_to_many :posts, class_name: "PhcdevworksTutorials::Tutorial::Post", :join_table => "phcdevworks_tutorials_categories_posts", :dependent => :destroy
|
15
|
+
has_and_belongs_to_many :posts, class_name: "PhcdevworksTutorials::Command::Post", :join_table => "phcdevworks_tutorials_categories_commands", :dependent => :destroy
|
13
16
|
|
14
17
|
# Form Fields Validation
|
15
18
|
validates :category_name,
|
data/app/views/layouts/phcdevworks_core_modules/components/backend/sidebars/_side_menu.html.erb
CHANGED
@@ -60,8 +60,8 @@
|
|
60
60
|
<span>Member"s Directory</span>
|
61
61
|
</a>
|
62
62
|
<ul class="sub-menu">
|
63
|
-
<li class="<%= phc_menu_active_controller("phcdevworks_members/
|
64
|
-
<li class="<%= phc_menu_active_controller("phcdevworks_members/
|
63
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_members/modules/categories") %>"><%= link_to("Directory Index", phcdevworks_members.directory_categories_path) %></li>
|
64
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_members/modules/categories#new") %>"><%= link_to("New Directory Listing", phcdevworks_members.new_directory_category_path) %></li>
|
65
65
|
</ul>
|
66
66
|
</li>
|
67
67
|
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Members -->
|
@@ -88,8 +88,8 @@
|
|
88
88
|
<span>Project Categories</span>
|
89
89
|
</a>
|
90
90
|
<ul class="sub-menu">
|
91
|
-
<li class="<%= phc_menu_active_controller("
|
92
|
-
<li class="<%= phc_menu_active_controller("
|
91
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_core_modules/project/posts") %>"><%= link_to("Category List", phcdevworks_core_modules.modules_categories_path) %></li>
|
92
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_core_modules/project/posts#new") %>"><%= link_to("New Category", phcdevworks_core_modules.new_modules_category_path) %></li>
|
93
93
|
</ul>
|
94
94
|
</li>
|
95
95
|
<li class="has-sub">
|
@@ -127,8 +127,8 @@
|
|
127
127
|
<span>Article Categories</span>
|
128
128
|
</a>
|
129
129
|
<ul class="sub-menu">
|
130
|
-
<li class="<%= phc_menu_active_controller("
|
131
|
-
<li class="<%= phc_menu_active_controller("
|
130
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_core_modules/modules/categories") %>"><%= link_to("Category Index", phcdevworks_core_modules.modules_categories_path) %></li>
|
131
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_core_modules/modules/categories#new") %>"><%= link_to("New Category", phcdevworks_core_modules.new_modules_category_path) %></li>
|
132
132
|
</ul>
|
133
133
|
</li>
|
134
134
|
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Press -->
|
@@ -224,8 +224,8 @@
|
|
224
224
|
<span>Tutorial Categories</span>
|
225
225
|
</a>
|
226
226
|
<ul class="sub-menu">
|
227
|
-
<li class="<%= phc_menu_active_controller("
|
228
|
-
<li class="<%= phc_menu_active_controller("
|
227
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_core_modules/tutorials/categories") %>"><%= link_to "Category Index", phcdevworks_core_modules.modules_categories_path %></li>
|
228
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_core_modules/tutorials/categories#new") %>"><%= link_to "New Category", phcdevworks_core_modules.new_modules_category_path %></li>
|
229
229
|
</ul>
|
230
230
|
</li>
|
231
231
|
<li class="nav-header">Command Lists & Items</li>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcdevworks_core_modules
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PHCDevworks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|