phcdevworks_accounts 3.2.1 → 3.2.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: 56ded5219b19879575e5eaaa018aeb8c63f9805055eba9489711ab8a0c92c21b
4
- data.tar.gz: b9af622f908a0c65cd7b1fe9218d9784f89b7a06d8dfff5bee2ce43af4620ade
3
+ metadata.gz: de586027378f7a02c9c8007e4963b7279c3c49361cd3e1203f6dcbec6d4fc19a
4
+ data.tar.gz: adc5bbfe8783182cbb1378d8a9678d44618fe4f747d2ab5c2e9acd6bf8253a55
5
5
  SHA512:
6
- metadata.gz: bd4403db5a75ffbe28ba4a3f4b7ef5973530cf7ac2c48d299056142fa8f905bda408b990dae6bbe061a1698ab60c558b8808c423ab75aef0ca16a8495abbfd4e
7
- data.tar.gz: 22aebf077a5f2494cb97db68ce5d5d899f03495ddedcc477f1025706c3046a89d092316849690071b773a4331198714a760f2613cbd124220f2c3084be318ce4
6
+ metadata.gz: 013c6a26916f4352859b13c6692cf411792ca9a35026be37148167c3090703c2fd4156b5d8d770e29a9a63fdb1b3bc952146998b92f01690fb1586654fdde4c1
7
+ data.tar.gz: 45601f4f7000e5efb402d33f23c94c10e9f0326cab1d1fec2eae506653840fc8fdd5e5fd6489e760b09970ee873caf2291feb717ffe921c5879cd16664f31998
@@ -278,13 +278,48 @@
278
278
  <% end %>
279
279
 
280
280
  <% if current_user && current_user.admin? %>
281
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
282
281
  <li class="nav-header">Administration</li>
282
+ <% if defined?phcdevworks_accounts_stripe %>
283
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Accounts Stripe -->
284
+ <li class="has-sub">
285
+ <a href="javascript:;">
286
+ <b class="caret"></b>
287
+ <i class="fab fa-cc-visa"></i>
288
+ <span>Accounting</span>
289
+ </a>
290
+ <ul class="sub-menu">
291
+ <li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/subscriptions#admin_subscription_list") %>"><%= link_to("Invoices", phcdevworks_accounts_stripe.admin_invoices_path) %></li>
292
+ <li class="<%= phc_menu_active_controller("phcdevworks_accounts_stripe/admin/subscriptions#admin_subscription_list") %>"><%= link_to("Subscriptions", phcdevworks_accounts_stripe.admin_subscriptions_path) %></li>
293
+ </ul>
294
+ </li>
295
+ <li class="has-sub">
296
+ <a href="javascript:;">
297
+ <b class="caret"></b>
298
+ <i class="fad fa-money-check-alt"></i>
299
+ <span>Services</span>
300
+ </a>
301
+ <ul class="sub-menu">
302
+ <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>
303
+ </ul>
304
+ </li>
305
+ <li class="has-sub">
306
+ <a href="javascript:;">
307
+ <b class="caret"></b>
308
+ <i class="fad fa-users"></i>
309
+ <span>Customers</span>
310
+ </a>
311
+ <ul class="sub-menu">
312
+ <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>
313
+ </ul>
314
+ </li>
315
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Accounts Stripe -->
316
+ <% end %>
317
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
283
318
  <li class="has-sub">
284
319
  <a href="javascript:;">
285
320
  <b class="caret"></b>
286
- <i class="fad fa-user"></i>
287
- <span>User Auth</span>
321
+ <i class="fad fa-user-lock"></i>
322
+ <span>User Logins</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>
@@ -294,13 +329,40 @@
294
329
  <% end %>
295
330
 
296
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>Your Subscription</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>Your 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
+
297
359
  <% if current_user %>
298
360
  <!-- -PHC- Sidebar - Sidebar Navigation - PHCAccounts User Options -->
299
361
  <li class="has-sub">
300
362
  <a href="javascript:;">
301
363
  <b class="caret"></b>
302
364
  <i class="fad fa-user"></i>
303
- <span>Accounts Settings</span>
365
+ <span>Login Settings</span>
304
366
  </a>
305
367
  <ul class="sub-menu">
306
368
  <li class="<%= phc_menu_active_controller("phcdevworks_accounts/user/edit") %>"><%= link_to "Settings", phcdevworks_accounts.edit_user_registration_path %></li>
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksAccounts
2
- VERSION = "3.2.1"
2
+ VERSION = "3.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcdevworks_accounts
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.2.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-04-10 00:00:00.000000000 Z
11
+ date: 2021-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails