phcdevworks_accounts_stripe 0.2.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +20 -20
- data/README.md +46 -1
- data/Rakefile +8 -8
- data/app/assets/config/phcdevworks_accounts_stripe_manifest.js +2 -3
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/application.css +15 -15
- data/app/controllers/phcdevworks_accounts_stripe/admin/customers_controller.rb +0 -0
- data/app/controllers/phcdevworks_accounts_stripe/admin/invoices_controller.rb +0 -0
- data/app/controllers/phcdevworks_accounts_stripe/admin/products_controller.rb +0 -0
- data/app/controllers/phcdevworks_accounts_stripe/admin/subscriptions_controller.rb +0 -0
- data/app/controllers/phcdevworks_accounts_stripe/application_controller.rb +0 -0
- data/app/controllers/phcdevworks_accounts_stripe/user/invoices_controller.rb +0 -0
- data/app/controllers/phcdevworks_accounts_stripe/user/product_controller.rb +0 -0
- data/app/controllers/phcdevworks_accounts_stripe/user/subscription_controller.rb +0 -0
- data/app/helpers/phcdevworks_accounts_stripe/admin/customers_helper.rb +0 -0
- data/app/helpers/phcdevworks_accounts_stripe/admin/invoices_helper.rb +0 -0
- data/app/helpers/phcdevworks_accounts_stripe/admin/plans_helper.rb +0 -0
- data/app/helpers/phcdevworks_accounts_stripe/admin/subscriptions_helper.rb +0 -0
- data/app/helpers/phcdevworks_accounts_stripe/application_helper.rb +0 -0
- data/app/helpers/phcdevworks_accounts_stripe/user/invoices_helper.rb +0 -0
- data/app/helpers/phcdevworks_accounts_stripe/user/plan_helper.rb +0 -0
- data/app/helpers/phcdevworks_accounts_stripe/user/subscription_helper.rb +0 -0
- data/app/jobs/phcdevworks_accounts_stripe/application_job.rb +4 -4
- data/app/mailers/phcdevworks_accounts_stripe/application_mailer.rb +6 -6
- data/app/models/phcdevworks_accounts_stripe/application_record.rb +0 -0
- data/app/views/layouts/phcdevworks_accounts_stripe/application.html.erb +36 -29
- data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/footer/_footer.html.erb +10 -8
- data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/navigation/_top_menu.html.erb +26 -25
- data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/sidebars/_side_menu.html.erb +491 -349
- data/app/views/phcdevworks_accounts_stripe/admin/customers/admin_customer_list.html.erb +44 -52
- data/app/views/phcdevworks_accounts_stripe/admin/invoices/admin_invoice_list.html.erb +61 -69
- data/app/views/phcdevworks_accounts_stripe/admin/products/admin_products_list.html.erb +46 -54
- data/app/views/phcdevworks_accounts_stripe/admin/subscriptions/admin_subscription_list.html.erb +48 -56
- data/app/views/phcdevworks_accounts_stripe/user/invoices/user_invoice_item.html.erb +0 -0
- data/app/views/phcdevworks_accounts_stripe/user/invoices/user_invoice_list.html.erb +0 -0
- data/app/views/phcdevworks_accounts_stripe/user/products/user_product_list.html.erb +0 -0
- data/app/views/phcdevworks_accounts_stripe/user/subscription/user_subscription_cancel.html.erb +0 -0
- data/app/views/phcdevworks_accounts_stripe/user/subscription/user_subscription_item.html.erb +0 -0
- data/config/initializers/stripe.rb +0 -0
- data/config/routes.rb +14 -17
- data/lib/phcdevworks_accounts_stripe/engine.rb +44 -47
- data/lib/phcdevworks_accounts_stripe/version.rb +3 -3
- data/lib/phcdevworks_accounts_stripe.rb +6 -6
- data/lib/tasks/phcdevworks_accounts_stripe_tasks.rake +4 -4
- metadata +41 -50
- data/app/assets/javascripts/phcdevworks_accounts_stripe/admin/invoices.coffee +0 -3
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/customers.css +0 -4
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/invoices.scss +0 -3
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/plans.css +0 -4
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/admin/subscriptions.css +0 -4
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/user/invoices.css +0 -4
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/user/plan.css +0 -4
- data/app/assets/stylesheets/phcdevworks_accounts_stripe/user/subscription.css +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43769b011ac594773b4ec664aaca48c131170e74832a5cd55bbb7431a68dd15e
|
4
|
+
data.tar.gz: 56a7128fcb6e67d00fa437ec87d095d6e702824b35d849ec4d076c4185790324
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bf0ae876a7c6f4c4de9567237c1dfe452e705c44e0be79706164c92e28244b7eb042c8c0322cee252e43591bacc1c14e22dbb297bb077b3d5d7ca1598800ff8
|
7
|
+
data.tar.gz: 4288b846bc83e3f920ac1c105d76c809a852a5cf60bd883ebe7af8143a1a760ff4df0ae683c5b2796079f570b0f6bd319458b7c48ff8c01686f334196cc1333b
|
data/MIT-LICENSE
CHANGED
@@ -1,20 +1,20 @@
|
|
1
|
-
Copyright
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1
|
+
Copyright 2022 PHCDevworks
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1 +1,46 @@
|
|
1
|
-
|
1
|
+
### PHCDevworks Accounts Stripe Addon
|
2
|
+
|
3
|
+
Rails Stripe Management System add-on for PHCDevworks Accounts engines.
|
4
|
+
|
5
|
+
### Administrative Views
|
6
|
+
* View invoices
|
7
|
+
* View subscribers
|
8
|
+
* View customers
|
9
|
+
|
10
|
+
#### Step 1 - Add PHCDevworks Accounts Devise & PHCDevworks Accounts Stripe to your gemfile run command
|
11
|
+
|
12
|
+
gem 'phcdevworks_accounts_devise'
|
13
|
+
gem 'phcdevworks_accounts_stripe'
|
14
|
+
bundle install
|
15
|
+
|
16
|
+
#### Step 2 - Copy Phcdevworks Account's Database Tables
|
17
|
+
To copy requried database migrations, copy each command individually to your terminal's command line.
|
18
|
+
|
19
|
+
rails phcdevworks_accounts_devise:install:migrations
|
20
|
+
rails db:migrate
|
21
|
+
|
22
|
+
#### Step 3 - Mount Phcdevworks Account Devise & PHCDevworks Account Stripe to Add Routes
|
23
|
+
Mount Phcdevworks Press by adding code below to your routes file.
|
24
|
+
|
25
|
+
mount PhcdevworksAccountsDevise::Engine, :at => '/'
|
26
|
+
mount PhcdevworksAccountsStripe::Engine => "/"
|
27
|
+
|
28
|
+
#### Step 4 - Recompile Assets
|
29
|
+
To properly function re-compile your application's assets to copy over required files.
|
30
|
+
|
31
|
+
rails assets:clobber
|
32
|
+
rails assets:precompile
|
33
|
+
|
34
|
+
#### Step 5 - Add ENV Variables
|
35
|
+
|
36
|
+
Secret Key = ENV['PHCDEV_STRIPE_SK']
|
37
|
+
Publishable Key = ENV['PHCDEV_STRIPE_PK']
|
38
|
+
|
39
|
+
#### Customizations - Generate Contact Form View (Customization)
|
40
|
+
All Phcdevworks Stripe views and layouts can be overwritten by copying files to your application.
|
41
|
+
|
42
|
+
rails generate phcdevworks_accounts_stripe:views
|
43
|
+
|
44
|
+
### Status
|
45
|
+
|
46
|
+
[![Gem Version](https://badge.fury.io/rb/phcdevworks_accounts_stripe.svg)](https://badge.fury.io/rb/phcdevworks_accounts_stripe) [![Publish to Github.com](https://github.com/phcdevworks/phcdevworks_accounts_stripe/actions/workflows/publish_gem_github_com.yml/badge.svg)](https://github.com/phcdevworks/phcdevworks_accounts_stripe/actions/workflows/publish_gem_github_com.yml) [![Publish to Rubygems.org](https://github.com/phcdevworks/phcdevworks_accounts_stripe/actions/workflows/publish_gem_rubygems_org.yml/badge.svg)](https://github.com/phcdevworks/phcdevworks_accounts_stripe/actions/workflows/publish_gem_rubygems_org.yml)
|
data/Rakefile
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
require "bundler/setup"
|
2
|
-
|
3
|
-
APP_RAKEFILE = File.expand_path("spec/test_app/Rakefile", __dir__)
|
4
|
-
load "rails/tasks/engine.rake"
|
5
|
-
|
6
|
-
load "rails/tasks/statistics.rake"
|
7
|
-
|
8
|
-
require "bundler/gem_tasks"
|
1
|
+
require "bundler/setup"
|
2
|
+
|
3
|
+
APP_RAKEFILE = File.expand_path("spec/test_app/Rakefile", __dir__)
|
4
|
+
load "rails/tasks/engine.rake"
|
5
|
+
|
6
|
+
load "rails/tasks/statistics.rake"
|
7
|
+
|
8
|
+
require "bundler/gem_tasks"
|
@@ -1,3 +1,2 @@
|
|
1
|
-
//=
|
2
|
-
//= link phcthemes_admin_panel_pack_coloradmin.
|
3
|
-
//= link phcthemes_admin_panel_pack_coloradmin.js
|
1
|
+
//= link coloradmin/default/phcthemes_admin_panel_pack_coloradmin.css
|
2
|
+
//= link coloradmin/phcthemes_admin_panel_pack_coloradmin.js
|
@@ -1,15 +1,15 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
-
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
-
* It is generally better to create a new file per style scope.
|
12
|
-
*
|
13
|
-
*= require_tree .
|
14
|
-
*= require_self
|
15
|
-
*/
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
+
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
+
* It is generally better to create a new file per style scope.
|
12
|
+
*
|
13
|
+
*= require_tree .
|
14
|
+
*= require_self
|
15
|
+
*/
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module PhcdevworksAccountsStripe
|
2
|
-
class ApplicationJob < ActiveJob::Base
|
3
|
-
end
|
4
|
-
end
|
1
|
+
module PhcdevworksAccountsStripe
|
2
|
+
class ApplicationJob < ActiveJob::Base
|
3
|
+
end
|
4
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
|
-
module PhcdevworksAccountsStripe
|
2
|
-
class ApplicationMailer < ActionMailer::Base
|
3
|
-
default from:
|
4
|
-
layout
|
5
|
-
end
|
6
|
-
end
|
1
|
+
module PhcdevworksAccountsStripe
|
2
|
+
class ApplicationMailer < ActionMailer::Base
|
3
|
+
default from: "from@example.com"
|
4
|
+
layout "mailer"
|
5
|
+
end
|
6
|
+
end
|
File without changes
|
@@ -3,14 +3,14 @@
|
|
3
3
|
<head>
|
4
4
|
|
5
5
|
<!-- SEO System -->
|
6
|
-
<% phc_seo_title "PHCDevworks Accounts" %>
|
7
|
-
<% phc_seo_description "Ruby on Rails
|
6
|
+
<% phc_seo_title "PHCDevworks Accounts Stripe" %>
|
7
|
+
<% phc_seo_description "Ruby on Rails 7 Stripe Addon for PHCDevworks Accounts plugin." %>
|
8
8
|
<!-- SEO System -->
|
9
9
|
|
10
10
|
<!-- SEO and Site Description -->
|
11
11
|
<meta charset="utf-8">
|
12
12
|
<title><%= yield(:phc_seo_title) %></title>
|
13
|
-
<meta
|
13
|
+
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
|
14
14
|
<meta name="description" content="<%= yield(:phc_seo_description) %>">
|
15
15
|
<!-- SEO and Site Description -->
|
16
16
|
|
@@ -20,47 +20,54 @@
|
|
20
20
|
<!-- Rails Security Tags -->
|
21
21
|
|
22
22
|
<!-- CSS Styles -->
|
23
|
-
|
23
|
+
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
|
24
|
+
<%= stylesheet_link_tag "coloradmin/default/phcthemes_admin_panel_pack_coloradmin", media: "all" %>
|
24
25
|
<!-- CSS Styles -->
|
25
26
|
|
26
|
-
<!-- JavaScript -->
|
27
|
-
<%= javascript_include_tag "phcthemes_admin_panel_pack_coloradmin" %>
|
28
|
-
<!-- JavaScript -->
|
29
|
-
|
30
27
|
</head>
|
31
28
|
<body>
|
32
29
|
|
33
|
-
<!-- Page Container -->
|
34
|
-
<div id="
|
30
|
+
<!-- -PHCDev- Page Container -->
|
31
|
+
<div id="app" class="app app-header-fixed app-sidebar-fixed app-with-wide-sidebar">
|
35
32
|
|
36
|
-
<!-- Page Header -->
|
37
|
-
<div id="header" class="header
|
33
|
+
<!-- -PHCDev- Page Container - Header -->
|
34
|
+
<div id="header" class="app-header">
|
38
35
|
<%= render "layouts/phcdevworks_accounts_stripe/components/backend/navigation/top_menu" %>
|
39
36
|
</div>
|
40
|
-
<!-- Page Header -->
|
37
|
+
<!-- -PHCDev- Page Container - Header -->
|
41
38
|
|
42
|
-
<!-- Page Sidebar -->
|
43
|
-
<div id="sidebar" class="sidebar">
|
39
|
+
<!-- -PHCDev- Page Container - Sidebar -->
|
40
|
+
<div id="sidebar" class="app-sidebar" data-disable-slide-animation="true">
|
44
41
|
<%= render "layouts/phcdevworks_accounts_stripe/components/backend/sidebars/side_menu" %>
|
45
42
|
</div>
|
46
|
-
<div class="sidebar-bg"></div>
|
47
|
-
|
48
|
-
|
49
|
-
<!-- Page Content -->
|
50
|
-
<div id="content" class="content">
|
51
|
-
<%= render "phcdevworks_notifications/bootstrap/notifications" %>
|
52
|
-
<%= yield %>
|
53
|
-
</div>
|
54
|
-
<!-- Page Content -->
|
43
|
+
<div class="app-sidebar-bg"></div>
|
44
|
+
<div class="app-sidebar-mobile-backdrop"><a href="#" data-dismiss="app-sidebar-mobile" class="stretched-link"></a></div>
|
45
|
+
<!-- -PHCDev- Page Container - Sidebar -->
|
55
46
|
|
56
|
-
<!--
|
57
|
-
<div id="
|
58
|
-
|
47
|
+
<!-- -PHCDev- Page Container - Content -->
|
48
|
+
<div id="app" class="app app-content-full-height">
|
49
|
+
<div id="content" class="app-content d-flex flex-column p-0">
|
50
|
+
<!-- -PHCDev- Page Container - Main -->
|
51
|
+
<div class="app-content-padding flex-grow-1 overflow-hidden" data-scrollbar="true" data-height="100%">
|
52
|
+
<%= render "phcdevworks_notifications/bootstrap/notifications" %>
|
53
|
+
<%= yield %>
|
54
|
+
</div>
|
55
|
+
<!-- -PHCDev- Page Container - Main -->
|
56
|
+
<!-- -PHCDev- Page Container - Footer -->
|
57
|
+
<div id="footer" class="app-footer m-0">
|
58
|
+
<%= render "layouts/phcdevworks_accounts_stripe/components/backend/footer/footer" %>
|
59
|
+
</div>
|
60
|
+
<!-- -PHCDev- Page Container - Footer -->
|
61
|
+
</div>
|
59
62
|
</div>
|
60
|
-
<!--
|
63
|
+
<!-- -PHCDev- Page Container - Content -->
|
61
64
|
|
62
65
|
</div>
|
63
|
-
<!-- Page Container -->
|
66
|
+
<!-- -PHCDev- Page Container -->
|
67
|
+
|
68
|
+
<!-- JavaScript -->
|
69
|
+
<%= javascript_include_tag "coloradmin/phcthemes_admin_panel_pack_coloradmin" %>
|
70
|
+
<!-- JavaScript -->
|
64
71
|
|
65
72
|
</body>
|
66
73
|
</html>
|
data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/footer/_footer.html.erb
CHANGED
@@ -1,15 +1,17 @@
|
|
1
|
-
<!-- -
|
1
|
+
<!-- -PHCDev- Page Container - Footer - Left -->
|
2
2
|
<span>
|
3
|
-
<!-- -
|
3
|
+
<!-- -PHCDev- Page Container - Footer - Left - Copyright -->
|
4
4
|
<i class="fab fa-osi font-weight-bolder"></i> 2012-<%= Time.now.year %> -
|
5
|
-
<span class="
|
6
|
-
<!-- -
|
5
|
+
<span class="phc_dev_strong_plugin">PHC</span><span class="phc_dev_light_plugin">Devworks</span> Accounts Stripe - Engine v<%= Gem.loaded_specs["phcdevworks_accounts_stripe"].version.to_s %>
|
6
|
+
<!-- -PHCDev- Page Container - Footer - Left - Copyright -->
|
7
7
|
</span>
|
8
|
-
<!-- -
|
8
|
+
<!-- -PHCDev- Page Container - Footer - Left -->
|
9
9
|
|
10
|
-
<!-- -
|
10
|
+
<!-- -PHCDev- Page Container - Footer - Right -->
|
11
11
|
<span class="float-right">
|
12
|
+
<!-- -PHCDev- Page Container - Footer - Right - Developed -->
|
12
13
|
Developed with <i class="fas fa-heart hanna_hearts"></i> by
|
13
|
-
<a class="phcnet_copyright text-dark" href="https://phcdevworks.com/"><u><span class="
|
14
|
+
<a class="phcnet_copyright text-dark" href="https://phcdevworks.com/"><u><span class="phc_dev_strong_plugin">PHC</span><span class="phc_dev_light_plugin">Devworks</span></u></a>
|
15
|
+
<!-- -PHCDev- Page Container - Footer - Right - Developed -->
|
14
16
|
</span>
|
15
|
-
<!-- -
|
17
|
+
<!-- -PHCDev- Page Container - Footer - Right -->
|
data/app/views/layouts/phcdevworks_accounts_stripe/components/backend/navigation/_top_menu.html.erb
CHANGED
@@ -1,40 +1,41 @@
|
|
1
|
-
<!-- -
|
1
|
+
<!-- -PHCDev- Topbar - Navigation Header -->
|
2
2
|
<div class="navbar-header">
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
<button type="button" class="navbar-toggle" data-click="sidebar-toggled">
|
9
|
-
<span class="icon-bar"></span>
|
10
|
-
<span class="icon-bar"></span>
|
11
|
-
<span class="icon-bar"></span>
|
4
|
+
<button type="button" class="navbar-mobile-toggler" data-toggle="app-sidebar-mobile">
|
5
|
+
<span class="icon-bar"></span>
|
6
|
+
<span class="icon-bar"></span>
|
7
|
+
<span class="icon-bar"></span>
|
12
8
|
</button>
|
13
9
|
|
10
|
+
<%= link_to phcdevworks_accounts_devise.user_path, class: "navbar-brand" do %>
|
11
|
+
<span class="phc_dev_strong_plugin_logo">PHC</span><span class="phc_dev_light_plugin_logo">Devworks</span>
|
12
|
+
<% end %>
|
13
|
+
|
14
14
|
</div>
|
15
|
-
<!-- -
|
15
|
+
<!-- -PHCDev- Topbar - Navigation Header -->
|
16
16
|
|
17
|
-
<!-- -
|
17
|
+
<!-- -PHCDev- Topbar - Navigation Main -->
|
18
18
|
<% if current_user %>
|
19
|
-
<
|
20
|
-
|
21
|
-
|
22
|
-
<li class="dropdown navbar-user">
|
23
|
-
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
|
19
|
+
<div class="navbar-nav">
|
20
|
+
<div class="navbar-item navbar-user dropdown">
|
21
|
+
<a href="#" class="navbar-link dropdown-toggle d-flex align-items-center" data-bs-toggle="dropdown">
|
24
22
|
<%= image_tag current_user.gravatar_url %>
|
25
|
-
<span
|
23
|
+
<span>
|
24
|
+
<span class="d-none d-md-inline"><%= current_user.firstname + " " + current_user.lastname %></span>
|
25
|
+
<b class="caret"></b>
|
26
|
+
</span>
|
26
27
|
</a>
|
27
|
-
<div class="dropdown-menu dropdown-menu-
|
28
|
-
<%= link_to
|
28
|
+
<div class="dropdown-menu dropdown-menu-end me-1">
|
29
|
+
<%= link_to phcdevworks_accounts_devise.edit_user_registration_path, class: "dropdown-item" do %>
|
29
30
|
<i class="fad fa-cogs"></i> Account Settings
|
30
31
|
<% end %>
|
31
|
-
<%= link_to
|
32
|
+
<%= link_to phcdevworks_accounts_devise.destroy_user_session_path, method: :delete, class: "dropdown-item" do %>
|
32
33
|
<i class="fad fa-sign-out-alt"></i> Logout
|
33
34
|
<% end %>
|
34
35
|
</div>
|
35
|
-
</
|
36
|
-
|
37
|
-
|
38
|
-
</ul>
|
36
|
+
</div>
|
37
|
+
</div>
|
39
38
|
<% end %>
|
40
|
-
|
39
|
+
|
40
|
+
</div>
|
41
|
+
<!-- -PHCDev- Topbar - Navigation Main -->
|