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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa0c83f9c48f79ffb394c95854696e6da4311d4a1be67600255a1be0ad0454c6
4
- data.tar.gz: 02125c3a9958784f819746434e21465616fc589b60ef7e18422773c557d10e2b
3
+ metadata.gz: fc7783d475d54e14b3a1be7b2e5b53351c4731a50b5cd146f00c3b14ac87f79c
4
+ data.tar.gz: afaad43b1b56bc8b169cfb6bfc110d21ae4993b6935c4615a9a9e102035e9d8b
5
5
  SHA512:
6
- metadata.gz: a1d19b6a0d249794c0964dbe27915b9520f134764ad35d22e4eaad4d57305f5bfc25b48e9a6952d87b80bb03ab9f47bb518832c24cd742279c66ac1bbdf3876f
7
- data.tar.gz: 152bd62135c727345012b8e0719d78a5542fe729070c8d87aa1543b40b6ad0aa806ed43736dba90766194912f708a84eff08ef86f6f576e007bc05b4f62d1d0e
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
 
@@ -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>Admin</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
- <% end %>
295
-
296
- <% if current_user %>
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
@@ -1,5 +1,8 @@
1
1
  PhcdevworksCoreModules::Engine.routes.draw do
2
2
 
3
+ namespace :affiliate do
4
+ resources :links
5
+ end
3
6
  # Routes for Posts
4
7
  namespace :post do
5
8
  resources :categories, class_name: 'Post::Category'
data/config/spring.rb ADDED
@@ -0,0 +1,2 @@
1
+ Spring.application_root = './spec/test_app'
2
+
@@ -40,6 +40,7 @@ module PhcdevworksCoreModules
40
40
  g.test_framework :rspec
41
41
  g.fixture_replacement :factory_bot
42
42
  g.factory_bot dir: 'spec/factories'
43
+ g.factory_bot suffix: "factory"
43
44
  end
44
45
 
45
46
  end
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksCoreModules
2
- VERSION = "7.1.1"
2
+ VERSION = "7.1.2"
3
3
  end
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.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-03-07 00:00:00.000000000 Z
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