phcdevworks_core_modules 7.1.1 → 7.1.2
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/affiliate/link.rb +8 -0
- data/app/views/layouts/phcdevworks_core_modules/components/backend/sidebars/_side_menu.html.erb +68 -6
- data/config/routes.rb +3 -0
- data/config/spring.rb +2 -0
- data/lib/phcdevworks_core_modules/engine.rb +1 -0
- data/lib/phcdevworks_core_modules/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc7783d475d54e14b3a1be7b2e5b53351c4731a50b5cd146f00c3b14ac87f79c
|
4
|
+
data.tar.gz: afaad43b1b56bc8b169cfb6bfc110d21ae4993b6935c4615a9a9e102035e9d8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fbdcc7e39f9b295cabdad951d97404f5ba92027d1e194eb9519ccf61a701476817d7169f832eb4c555fc42f5cc95213fa5ade945845d17f6824b01a81d9bc61
|
7
|
+
data.tar.gz: 59f24bd7eca72e2f6ae69bf8626cc43a84aef68920db50a6aa96973f502fa9e800691fd3770887728799e27a107587cf09355e3d8cf952ba6d9ad65245f3c2d4
|
@@ -4,6 +4,14 @@ module PhcdevworksCoreModules
|
|
4
4
|
# Clean URL Initialize
|
5
5
|
extend FriendlyId
|
6
6
|
|
7
|
+
# Validations
|
8
|
+
validates :affiliate_link_name, presence: true
|
9
|
+
validates :affiliate_link_button_text, presence: false
|
10
|
+
validates :affiliate_link_url, presence: true
|
11
|
+
validates :affiliate_link_original_url, presence: false
|
12
|
+
|
13
|
+
|
14
|
+
|
7
15
|
# Paper Trail Initialize
|
8
16
|
has_paper_trail versions: {class_name: "PhcdevworksCoreModules::AffiliateLinkVersions"}
|
9
17
|
|
data/app/views/layouts/phcdevworks_core_modules/components/backend/sidebars/_side_menu.html.erb
CHANGED
@@ -277,25 +277,87 @@
|
|
277
277
|
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
|
278
278
|
<% end %>
|
279
279
|
|
280
|
+
<li class="nav-header">Administration</li>
|
281
|
+
<% if defined?phcdevworks_accounts_stripe && current_user && current_user.admin %>
|
282
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Accounts Stripe -->
|
283
|
+
<li class="has-sub">
|
284
|
+
<a href="javascript:;">
|
285
|
+
<b class="caret"></b>
|
286
|
+
<i class="fab fa-cc-stripe"></i>
|
287
|
+
<span>Subscriptions</span>
|
288
|
+
</a>
|
289
|
+
<ul class="sub-menu">
|
290
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/subscriptions#admin_subscription_list") %>"><%= link_to("Subscription Index", phcdevworks_accounts_stripe.admin_subscriptions_path) %></li>
|
291
|
+
</ul>
|
292
|
+
</li>
|
293
|
+
<li class="has-sub">
|
294
|
+
<a href="javascript:;">
|
295
|
+
<b class="caret"></b>
|
296
|
+
<i class="fad fa-money-check-alt"></i>
|
297
|
+
<span>Plans</span>
|
298
|
+
</a>
|
299
|
+
<ul class="sub-menu">
|
300
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/products#admin_products_list") %>"><%= link_to("Product List", phcdevworks_accounts_stripe.admin_products_path) %></li>
|
301
|
+
</ul>
|
302
|
+
</li>
|
303
|
+
<li class="has-sub">
|
304
|
+
<a href="javascript:;">
|
305
|
+
<b class="caret"></b>
|
306
|
+
<i class="fad fa-users"></i>
|
307
|
+
<span>Customers</span>
|
308
|
+
</a>
|
309
|
+
<ul class="sub-menu">
|
310
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/customers#admin_customer_list") %>"><%= link_to("Customer List", phcdevworks_accounts_stripe.admin_customers_path) %></li>
|
311
|
+
</ul>
|
312
|
+
</li>
|
313
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Accounts Stripe -->
|
314
|
+
<% end %>
|
315
|
+
|
280
316
|
<% if current_user && current_user.admin? %>
|
281
317
|
<!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
|
282
|
-
<li class="nav-header">User Administration</li>
|
283
318
|
<li class="has-sub">
|
284
319
|
<a href="javascript:;">
|
285
320
|
<b class="caret"></b>
|
286
321
|
<i class="fad fa-user"></i>
|
287
|
-
<span>
|
322
|
+
<span>User Auth</span>
|
288
323
|
</a>
|
289
324
|
<ul class="sub-menu">
|
290
325
|
<li class="<%= phc_menu_active_controller("phcdevworks_accounts/admin/users") %>"><%= link_to "User List", phcdevworks_accounts.admin_users_all_path %></li>
|
291
326
|
</ul>
|
292
327
|
</li>
|
293
328
|
<!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
|
294
|
-
|
295
|
-
|
296
|
-
|
329
|
+
<% end %>
|
330
|
+
|
331
|
+
<li class="nav-header">Your Account</li>
|
332
|
+
<% if defined?phcdevworks_accounts_stripe && current_user %>
|
333
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Accounts Stripe -->
|
334
|
+
<li class="has-sub">
|
335
|
+
<a href="javascript:;">
|
336
|
+
<b class="caret"></b>
|
337
|
+
<i class="fad fa-money-check-alt"></i>
|
338
|
+
<span>Plan Settings</span>
|
339
|
+
</a>
|
340
|
+
<ul class="sub-menu">
|
341
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/subscriptions#admin_subscription_list") %>"><%= link_to("Your Subscription", phcdevworks_accounts_stripe.user_subscription_path) %></li>
|
342
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/products#admin_product_list") %>"><%= link_to("Switch Subscriptions", phcdevworks_accounts_stripe.user_subscription_path) %></li>
|
343
|
+
</ul>
|
344
|
+
</li>
|
345
|
+
<li class="has-sub">
|
346
|
+
<a href="javascript:;">
|
347
|
+
<b class="caret"></b>
|
348
|
+
<i class="fad fa-file-invoice"></i>
|
349
|
+
<span>Invoices</span>
|
350
|
+
</a>
|
351
|
+
<ul class="sub-menu">
|
352
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/user/invoices#admin_customer_list") %>"><%= link_to("Current Invoice", phcdevworks_accounts_stripe.user_invoices_path) %></li>
|
353
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/user/invoices#admin_customer_list") %>"><%= link_to("Past Invoices", phcdevworks_accounts_stripe.admin_customers_path) %></li>
|
354
|
+
</ul>
|
355
|
+
</li>
|
356
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Accounts Stripe -->
|
357
|
+
<% end %>
|
358
|
+
|
359
|
+
<% if current_user %>
|
297
360
|
<!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts User Options -->
|
298
|
-
<li class="nav-header">Your Account</li>
|
299
361
|
<li class="has-sub">
|
300
362
|
<a href="javascript:;">
|
301
363
|
<b class="caret"></b>
|
data/config/routes.rb
CHANGED
data/config/spring.rb
ADDED
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: 7.1.
|
4
|
+
version: 7.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PHCDevworks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -376,6 +376,7 @@ files:
|
|
376
376
|
- app/views/phcdevworks_core_modules/post/categories/new.html.erb
|
377
377
|
- app/views/phcdevworks_core_modules/post/categories/show.html.erb
|
378
378
|
- config/routes.rb
|
379
|
+
- config/spring.rb
|
379
380
|
- db/migrate/20170517064427_create_phcdevworks_core_modules_post_category_versions.rb
|
380
381
|
- db/migrate/20200705223718_create_phcdevworks_core_modules_marketing_optimizations.rb
|
381
382
|
- db/migrate/20200705225433_create_phcdevworks_core_modules_marketing_optimization_versions.rb
|