phcscriptcdnpro 78.4.0 → 79.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/Rakefile +4 -18
  4. data/app/assets/config/phcscriptcdnpro_manifest.js +2 -2
  5. data/app/controllers/phcscriptcdnpro/application_controller.rb +4 -5
  6. data/app/controllers/phcscriptcdnpro/script/authors_controller.rb +1 -1
  7. data/app/controllers/phcscriptcdnpro/script/extensions_controller.rb +1 -1
  8. data/app/controllers/phcscriptcdnpro/script/licences_controller.rb +1 -1
  9. data/app/controllers/phcscriptcdnpro/script/listings_controller.rb +1 -1
  10. data/app/controllers/phcscriptcdnpro/script/urls_controller.rb +2 -2
  11. data/app/controllers/phcscriptcdnpro/script/versions_controller.rb +1 -1
  12. data/app/models/phcscriptcdnpro/script/url.rb +16 -16
  13. data/app/views/layouts/phcscriptcdnpro/application.html.erb +58 -64
  14. data/app/views/layouts/phcscriptcdnpro/components/backend/footer/_footer.html.erb +14 -6
  15. data/app/views/layouts/phcscriptcdnpro/components/backend/navigation/_top_menu.html.erb +41 -37
  16. data/app/views/layouts/phcscriptcdnpro/components/backend/sidebars/_side_menu.html.erb +921 -189
  17. data/app/views/phcscriptcdnpro/script/authors/_form.html.erb +15 -15
  18. data/app/views/phcscriptcdnpro/script/authors/edit.html.erb +21 -17
  19. data/app/views/phcscriptcdnpro/script/authors/index.html.erb +26 -25
  20. data/app/views/phcscriptcdnpro/script/authors/new.html.erb +21 -17
  21. data/app/views/phcscriptcdnpro/script/authors/show.html.erb +15 -15
  22. data/app/views/phcscriptcdnpro/script/extensions/_form.html.erb +13 -13
  23. data/app/views/phcscriptcdnpro/script/extensions/edit.html.erb +21 -17
  24. data/app/views/phcscriptcdnpro/script/extensions/index.html.erb +26 -25
  25. data/app/views/phcscriptcdnpro/script/extensions/new.html.erb +21 -17
  26. data/app/views/phcscriptcdnpro/script/extensions/show.html.erb +15 -15
  27. data/app/views/phcscriptcdnpro/script/licences/_form.html.erb +29 -29
  28. data/app/views/phcscriptcdnpro/script/licences/edit.html.erb +21 -17
  29. data/app/views/phcscriptcdnpro/script/licences/index.html.erb +26 -25
  30. data/app/views/phcscriptcdnpro/script/licences/new.html.erb +21 -17
  31. data/app/views/phcscriptcdnpro/script/licences/show.html.erb +15 -15
  32. data/app/views/phcscriptcdnpro/script/listings/_form.html.erb +34 -34
  33. data/app/views/phcscriptcdnpro/script/listings/edit.html.erb +21 -17
  34. data/app/views/phcscriptcdnpro/script/listings/index.html.erb +26 -25
  35. data/app/views/phcscriptcdnpro/script/listings/new.html.erb +21 -17
  36. data/app/views/phcscriptcdnpro/script/listings/show.html.erb +15 -15
  37. data/app/views/phcscriptcdnpro/script/urls/_form.html.erb +19 -19
  38. data/app/views/phcscriptcdnpro/script/urls/edit.html.erb +21 -17
  39. data/app/views/phcscriptcdnpro/script/urls/index.html.erb +26 -25
  40. data/app/views/phcscriptcdnpro/script/urls/new.html.erb +21 -17
  41. data/app/views/phcscriptcdnpro/script/urls/show.html.erb +15 -15
  42. data/app/views/phcscriptcdnpro/script/versions/_form.html.erb +10 -10
  43. data/app/views/phcscriptcdnpro/script/versions/edit.html.erb +21 -17
  44. data/app/views/phcscriptcdnpro/script/versions/index.html.erb +26 -25
  45. data/app/views/phcscriptcdnpro/script/versions/new.html.erb +21 -17
  46. data/app/views/phcscriptcdnpro/script/versions/show.html.erb +15 -15
  47. data/config/routes.rb +18 -21
  48. data/db/migrate/20160821183652_create_phcscriptcdnpro_script_listings.rb +33 -0
  49. data/db/migrate/20160821183714_create_phcscriptcdnpro_script_authors.rb +22 -0
  50. data/db/migrate/20160821183735_create_phcscriptcdnpro_script_extensions.rb +20 -0
  51. data/db/migrate/20160821183805_create_phcscriptcdnpro_script_licences.rb +26 -0
  52. data/db/migrate/20160821183830_create_phcscriptcdnpro_script_urls.rb +24 -0
  53. data/db/migrate/20160821183946_create_phcscriptcdnpro_script_versions.rb +18 -0
  54. data/db/migrate/20170509002355_create_phcscriptcdnpro_friendly_id_slugs.rb +18 -0
  55. data/db/migrate/20170517064030_create_phcscriptcdnpro_extension_versions.rb +17 -0
  56. data/db/migrate/20170517064049_create_phcscriptcdnpro_listing_versions.rb +17 -0
  57. data/db/migrate/20170517064114_create_phcscriptcdnpro_scriptversion_versions.rb +17 -0
  58. data/db/migrate/20170517064150_create_phcscriptcdnpro_url_versions.rb +17 -0
  59. data/db/migrate/20170517064208_create_phcscriptcdnpro_author_versions.rb +17 -0
  60. data/db/migrate/20170517064427_create_phcscriptcdnpro_licence_versions.rb +17 -0
  61. data/lib/phcscriptcdnpro/engine.rb +30 -56
  62. data/lib/phcscriptcdnpro/version.rb +1 -1
  63. data/lib/phcscriptcdnpro.rb +2 -0
  64. metadata +73 -389
  65. data/app/assets/javascripts/phcscriptcdnpro/application.js +0 -2
  66. data/app/assets/stylesheets/phcscriptcdnpro/application.scss +0 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 56a15eae68ac01235253ba754645c03534b83f9e9e52245ae4a33f8d8301b8a9
4
- data.tar.gz: 004a4a21bce4b0f3a5ff99919a0f187f2d797ea0c3550bd13e987db76f28c87d
3
+ metadata.gz: '086dc212606a6d5d8fe1ba8f6a155e884312888b891d6e2eceeebe8d8cb53ede'
4
+ data.tar.gz: 81990219b494b51535f04b11aaf3d6d7f9ad20d07414e7882fa9e24b1b434546
5
5
  SHA512:
6
- metadata.gz: 5896bb6e5c8094b50e9470ba063980887ba5272b799cee7bc83eb67279454f5e3273ad57eeaa9a6c544dd4d710a8d36703b6d881ed2ebb4238632f2b93a58c22
7
- data.tar.gz: 26b77f3b26b1a4b6e33d723f3096275a3724f02f53f62ad8c8c0fef363cb3a0857a6992883e1b504f30c4b377afd5d390b66d3d870bb55b0859ee96773f9c523
6
+ metadata.gz: 8a0480f9b59d7cbdcd443772ddf2e3525feffdbf6c89a21ece07a3bfeddba4bcf8ebd575e5681d4cee433aa8cee0bb6f6fedccc9a2d9bbe17cb7b3444957327c
7
+ data.tar.gz: 3c30aa01a483212ff2a68b56fa29a95cb5d972fbc307a6d2f393dacd0cddbfe5ec07d853e9739631cc5c97bf13229f2aecb2928972402e2431a4a705ae7e1cb2
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2012-2019 BradPotts - PHCNetCo/PHCDevworks/PHCNetworks
1
+ Copyright 2022 - BradPotts
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/Rakefile CHANGED
@@ -1,22 +1,8 @@
1
- begin
2
- require 'bundler/setup'
3
- rescue LoadError
4
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
- end
6
-
7
- require 'rdoc/task'
8
-
9
- RDoc::Task.new(:rdoc) do |rdoc|
10
- rdoc.rdoc_dir = 'rdoc'
11
- rdoc.title = 'Phcscriptcdnpro'
12
- rdoc.options << '--line-numbers'
13
- rdoc.rdoc_files.include('README.md')
14
- rdoc.rdoc_files.include('lib/**/*.rb')
15
- end
1
+ require "bundler/setup"
16
2
 
17
3
  APP_RAKEFILE = File.expand_path("spec/test_app/Rakefile", __dir__)
18
- load 'rails/tasks/engine.rake'
4
+ load "rails/tasks/engine.rake"
19
5
 
20
- load 'rails/tasks/statistics.rake'
6
+ load "rails/tasks/statistics.rake"
21
7
 
22
- require 'bundler/gem_tasks'
8
+ require "bundler/gem_tasks"
@@ -1,2 +1,2 @@
1
- //= link_directory ../javascripts/phcscriptcdnpro .js
2
- //= link_directory ../stylesheets/phcscriptcdnpro .scss
1
+ //= link coloradmin/default/phcthemes_admin_panel_pack_coloradmin.css
2
+ //= link coloradmin/phcthemes_admin_panel_pack_coloradmin.js
@@ -5,11 +5,10 @@ module Phcscriptcdnpro
5
5
  protect_from_forgery with: :exception
6
6
 
7
7
  # Load Requried Helper Files
8
- helper Phcaccountspro::Engine.helpers
9
- helper Phccorehelpers::Engine.helpers
10
- helper Phcmenus::Engine.helpers
11
- helper Phctitleseo::Engine.helpers
12
- helper Phcnotifi::Engine.helpers
8
+ helper PhcdevworksActiveMenus::Engine.helpers
9
+ helper PhcdevworksNotifications::Engine.helpers
10
+ helper PhcdevworksTitleseo::Engine.helpers
11
+ helper PhcdevworksCore::Engine.helpers
13
12
 
14
13
  # Papertrail Whodunnit Username
15
14
  def user_for_paper_trail
@@ -4,7 +4,7 @@ module Phcscriptcdnpro
4
4
  class Script::AuthorsController < ApplicationController
5
5
 
6
6
  # Include Core Helpers, Security & Action Filters
7
- include Phccorehelpers::PhcpluginsproHelper
7
+ include PhcdevworksCore::PhcdevPluginsHelper
8
8
  before_action :authenticate_user!
9
9
  before_action :set_paper_trail_whodunnit
10
10
  before_action :set_script_author, only: [:show, :edit, :update, :destroy]
@@ -4,7 +4,7 @@ module Phcscriptcdnpro
4
4
  class Script::ExtensionsController < ApplicationController
5
5
 
6
6
  # Include Core Helpers, Security & Action Filters
7
- include Phccorehelpers::PhcpluginsproHelper
7
+ include PhcdevworksCore::PhcdevPluginsHelper
8
8
  before_action :authenticate_user!
9
9
  before_action :set_paper_trail_whodunnit
10
10
  before_action :set_script_extension, only: [:show, :edit, :update, :destroy]
@@ -4,7 +4,7 @@ module Phcscriptcdnpro
4
4
  class Script::LicencesController < ApplicationController
5
5
 
6
6
  # Include Core Helpers, Security & Action Filters
7
- include Phccorehelpers::PhcpluginsproHelper
7
+ include PhcdevworksCore::PhcdevPluginsHelper
8
8
  before_action :authenticate_user!
9
9
  before_action :set_paper_trail_whodunnit
10
10
  before_action :set_script_licence, only: [:show, :edit, :update, :destroy]
@@ -4,7 +4,7 @@ module Phcscriptcdnpro
4
4
  class Script::ListingsController < ApplicationController
5
5
 
6
6
  # Include Core Helpers, Security & Action Filters
7
- include Phccorehelpers::PhcpluginsproHelper
7
+ include PhcdevworksCore::PhcdevPluginsHelper
8
8
  before_action :authenticate_user!
9
9
  before_action :set_paper_trail_whodunnit
10
10
  before_action :set_script_listing, only: [:show, :edit, :update, :destroy]
@@ -4,7 +4,7 @@ module Phcscriptcdnpro
4
4
  class Script::UrlsController < ApplicationController
5
5
 
6
6
  # Include Core Helpers, Security & Action Filters
7
- include Phccorehelpers::PhcpluginsproHelper
7
+ include PhcdevworksCore::PhcdevPluginsHelper
8
8
  before_action :authenticate_user!
9
9
  before_action :set_paper_trail_whodunnit
10
10
  before_action :set_script_url, only: [:show, :edit, :update, :destroy]
@@ -18,7 +18,7 @@ module Phcscriptcdnpro
18
18
  # SHOW
19
19
  def show
20
20
  script_listing = Script::Listing.find(params[:listing_id])
21
- @script_url = script_listing.urls.friendly.find(params[:id])
21
+ @script_url = script_listing.urls.friendly_id.find(params[:id])
22
22
  end
23
23
 
24
24
  # NEW
@@ -4,7 +4,7 @@ module Phcscriptcdnpro
4
4
  class Script::VersionsController < ApplicationController
5
5
 
6
6
  # Include Core Helpers, Security & Action Filters
7
- include Phccorehelpers::PhcpluginsproHelper
7
+ include PhcdevworksCore::PhcdevPluginsHelper
8
8
  before_action :authenticate_user!
9
9
  before_action :set_paper_trail_whodunnit
10
10
  before_action :set_script_version, only: [:show, :edit, :update, :destroy]
@@ -1,24 +1,24 @@
1
1
  module Phcscriptcdnpro
2
- class Script::Url < ApplicationRecord
2
+ class Script::Url < ApplicationRecord
3
3
 
4
- # Paper Trail Initialize
5
- has_paper_trail :class_name => 'Phcscriptcdnpro::UrlVersions'
4
+ # Paper Trail Initialize
5
+ has_paper_trail :class_name => 'Phcscriptcdnpro::UrlVersions'
6
6
 
7
- # Relationships
8
- belongs_to :listing, class_name: 'Phcscriptcdnpro::Script::Listing'
9
- belongs_to :extension, class_name: 'Phcscriptcdnpro::Script::Extension'
10
- belongs_to :version, class_name: 'Phcscriptcdnpro::Script::Version', optional: true
7
+ # Relationships
8
+ belongs_to :listing, class_name: 'Phcscriptcdnpro::Script::Listing'
9
+ belongs_to :extension, class_name: 'Phcscriptcdnpro::Script::Extension'
10
+ belongs_to :version, class_name: 'Phcscriptcdnpro::Script::Version', optional: true
11
11
 
12
- # Form Fields Validation
13
- validates :script_url,
14
- presence: true,
15
- format: { with: URI::regexp(%w(http https)), message: "Please follow this URL format http or https://www.**********.com" }
12
+ # Form Fields Validation
13
+ validates :script_url,
14
+ presence: true,
15
+ format: { with: URI::regexp(%w(http https)), message: "Please follow this URL format http or https://www.**********.com" }
16
16
 
17
- validates :script_url_release,
18
- presence: true
17
+ validates :script_url_release,
18
+ presence: true
19
19
 
20
- validates :script_url_cdn_update,
21
- presence: true
20
+ validates :script_url_cdn_update,
21
+ presence: true
22
22
 
23
- end
23
+ end
24
24
  end
@@ -1,79 +1,73 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
- <head>
3
+ <head>
4
4
 
5
- <!-- SEO System -->
6
- <% phc_seo_title "PHCScriptCDN by PHCDevworks" %>
7
- <% phc_seo_description "Application to manage CDN Script Listings." %>
8
- <!-- SEO System -->
5
+ <!-- SEO System -->
6
+ <% phc_seo_title "BradPotts PHCScriptCDN-Pro" %>
7
+ <% phc_seo_description "Ruby on Rails 7 engine to manage CDN script listings." %>
8
+ <!-- SEO System -->
9
9
 
10
- <!-- SEO and Site Description -->
11
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
12
- <title><%= yield(:phc_seo_title) %></title>
13
- <meta name="description" content="<%= yield(:phc_seo_description) %>">
14
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
15
- <link rel="canonical" href="http://phcdevworks.com">
16
- <!-- SEO and Site Description -->
10
+ <!-- SEO and Site Description -->
11
+ <meta charset="utf-8">
12
+ <title><%= yield(:phc_seo_title) %></title>
13
+ <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
14
+ <meta name="description" content="<%= yield(:phc_seo_description) %>">
15
+ <!-- SEO and Site Description -->
17
16
 
18
- <!-- Rails Security Tags -->
19
- <%= csrf_meta_tags %>
20
- <%= csp_meta_tag %>
21
- <!-- Rails Security Tags -->
17
+ <!-- Rails Security Tags -->
18
+ <%= csrf_meta_tags %>
19
+ <%= csp_meta_tag %>
20
+ <!-- Rails Security Tags -->
22
21
 
23
- <!-- CSS Styles -->
24
- <%= stylesheet_link_tag 'phcscriptcdnpro/application', media: 'all', 'data-turbolinks-track': 'reload' %>
25
- <!-- CSS Styles -->
22
+ <!-- CSS Styles -->
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" %>
25
+ <!-- CSS Styles -->
26
26
 
27
- <!-- Font -->
28
- <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400%7CRaleway:300,400,500,600,700%7CLato:300,400,400italic,600,700"/>
29
- <!-- Font -->
27
+ </head>
28
+ <body>
30
29
 
31
- </head>
32
- <body>
30
+ <!-- -PHCDEV- Page Container -->
31
+ <div id="app" class="app app-header-fixed app-sidebar-fixed app-with-wide-sidebar">
33
32
 
34
- <!-- Page Container -->
35
- <div id="page-container" class="fade page-sidebar-fixed page-header-fixed">
33
+ <!-- -PHCDEV- Page Container - Header -->
34
+ <div id="header" class="app-header">
35
+ <%= render "layouts/phcscriptcdnpro/components/backend/navigation/top_menu" %>
36
+ </div>
37
+ <!-- -PHCDEV- Page Container - Header -->
36
38
 
37
- <!-- Page Header -->
38
- <div id="header" class="header navbar-default">
39
- <%= render 'layouts/phcscriptcdnpro/components/backend/navigation/top_menu' %>
40
- </div>
41
- <!-- Page Header -->
39
+ <!-- -PHCDEV- Page Container - Sidebar -->
40
+ <div id="sidebar" class="app-sidebar" data-disable-slide-animation="true">
41
+ <%= render "layouts/phcscriptcdnpro/components/backend/sidebars/side_menu" %>
42
+ </div>
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 -->
42
46
 
43
- <!-- Page Sidebar -->
44
- <div id="sidebar" class="sidebar">
45
- <%= render 'layouts/phcscriptcdnpro/components/backend/sidebars/side_menu' %>
46
- </div>
47
- <div class="sidebar-bg"></div>
48
- <!-- Page Sidebar -->
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/phcscriptcdnpro/components/backend/footer/footer" %>
59
+ </div>
60
+ <!-- -PHCDEV- Page Container - Footer -->
61
+ </div>
62
+ </div>
63
+ <!-- -PHCDEV- Page Container - Content -->
49
64
 
50
- <!-- Page Content -->
51
- <div id="content" class="content">
52
- <%= render 'phcnotifi/default/notifications' %>
53
- <%= yield %>
54
- </div>
55
- <!-- Page Content -->
65
+ </div>
66
+ <!-- -PHCDEV- Page Container -->
56
67
 
57
- <!-- Footer Content -->
58
- <div id="footer" class="footer mb-4">
59
- <%= render 'layouts/phcscriptcdnpro/components/backend/footer/footer' %>
60
- </div>
61
- <!-- Footer Content -->
68
+ <!-- JavaScript -->
69
+ <%= javascript_include_tag "coloradmin/phcthemes_admin_panel_pack_coloradmin" %>
70
+ <!-- JavaScript -->
62
71
 
63
- </div>
64
- <!-- Page Container -->
65
-
66
- <!-- JavaScript -->
67
- <%= javascript_include_tag "phcscriptcdnpro/application", 'data-turbolinks-track': 'reload' %>
68
- <!-- JavaScript -->
69
-
70
- <!-- JavaScript Loader -->
71
- <script>
72
- $(document).ready(function() {
73
- App.init();
74
- });
75
- </script>
76
- <!-- JavaScript Loader -->
77
-
78
- </body>
72
+ </body>
79
73
  </html>
@@ -1,9 +1,17 @@
1
- <span class="float-left">
2
- &copy; 2012-<%= Time.now.year %> -
3
- <strong>PHC</strong>Press(Pro) -
4
- Engine v<%= Gem.loaded_specs["phcscriptcdnpro"].version.to_s %>
1
+ <!-- -PHCDEV- Page Container - Footer - Left -->
2
+ <span>
3
+ <!-- -PHCDEV- Page Container - Footer - Left - Copyright -->
4
+ <i class="fab fa-osi font-weight-bolder"></i> <%= Time.now.year %>
5
+ <span class="phc_dev_strong_plugin">PHC</span><span class="phc_dev_light_plugin">ScriptCDN (Pro)</span> - Engine v<%= Gem.loaded_specs["phcscriptcdnpro"].version.to_s %>
6
+ <!-- -PHCDEV- Page Container - Footer - Left - Copyright -->
5
7
  </span>
8
+ <!-- -PHCDEV- Page Container - Footer - Left -->
9
+
10
+ <!-- -PHCDEV- Page Container - Footer - Right -->
6
11
  <span class="float-right">
7
- Developed with <i class="fas fa-heart hanna_hearts"></i> by
8
- <a class="phcnet_copyright" href="https://phcdevworks.com/"><strong>PHC</strong>Devworks</a>
12
+ <!-- -PHCDEV- Page Container - Footer - Right - Developed -->
13
+ Developed with <i class="fas fa-heart hanna_hearts"></i> by
14
+ <a class="phcnet_copyright text-dark" href="https://rubygems.org/profiles/bradpotts" target="_blank"><u><span class="phc_dev_strong_plugin">Brad</span><span class="phc_dev_light_plugin">Potts</span></u></a>
15
+ <!-- -PHCDEV- Page Container - Footer - Right - Developed -->
9
16
  </span>
17
+ <!-- -PHCDEV- Page Container - Footer - Right -->
@@ -1,37 +1,41 @@
1
- <!-- Topbar - Navigation Header -->
2
- <div class="navbar-header">
3
- <%= link_to phcscriptcdnpro.script_listings_path, class: "navbar-brand" do %>
4
- <strong>PHC</strong>ScriptCDN(Pro)
5
- <% end %>
6
- <button type="button" class="navbar-toggle" data-click="sidebar-toggled">
7
- <span class="icon-bar"></span>
8
- <span class="icon-bar"></span>
9
- <span class="icon-bar"></span>
10
- </button>
11
- </div>
12
- <!-- Topbar - Navigation Header -->
13
-
14
- <!-- Topbar - Navigation Main -->
15
- <% if current_user %>
16
- <ul class="navbar-nav navbar-right">
17
-
18
- <!-- Topbar - Navigation Main - User Menu -->
19
- <li class="dropdown navbar-user">
20
- <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
21
- <%= image_tag current_user.gravatar_url %>
22
- <span class="d-none d-md-inline"><%= current_user.firstname + ' ' + current_user.lastname %></span> <b class="caret"></b>
23
- </a>
24
- <div class="dropdown-menu dropdown-menu-right">
25
- <%= link_to phcaccountspro.edit_user_registration_path, class: "dropdown-item" do %>
26
- <i class="fas fa-cogs"></i> Account Settings
27
- <% end %>
28
- <%= link_to phcaccountspro.destroy_user_session_path, method: :delete, class: "dropdown-item" do %>
29
- <i class="fas fa-sign-out-alt"></i> Logout
30
- <% end %>
31
- </div>
32
- </li>
33
- <!-- Topbar - Navigation Main - User Menu -->
34
-
35
- </ul>
36
- <% end %>
37
- <!-- Topbar - Navigation Main -->
1
+ <!-- -PHCDEV- Topbar - Navigation Header -->
2
+ <div class="navbar-header">
3
+
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>
8
+ </button>
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">ScriptCDN</span>
12
+ <% end %>
13
+
14
+ </div>
15
+ <!-- -PHCDEV- Topbar - Navigation Header -->
16
+
17
+ <!-- -PHCDEV- Topbar - Navigation Main -->
18
+ <% if current_user %>
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">
22
+ <%= image_tag current_user.gravatar_url %>
23
+ <span>
24
+ <span class="d-none d-md-inline"><%= current_user.firstname + " " + current_user.lastname %></span>
25
+ <b class="caret"></b>
26
+ </span>
27
+ </a>
28
+ <div class="dropdown-menu dropdown-menu-end me-1">
29
+ <%= link_to phcdevworks_accounts_devise.edit_user_registration_path, class: "dropdown-item" do %>
30
+ <i class="fad fa-cogs"></i> Account Settings
31
+ <% end %>
32
+ <%= link_to phcdevworks_accounts_devise.destroy_user_session_path, method: :delete, class: "dropdown-item" do %>
33
+ <i class="fad fa-sign-out-alt"></i> Logout
34
+ <% end %>
35
+ </div>
36
+ </div>
37
+ </div>
38
+ <% end %>
39
+
40
+ </div>
41
+ <!-- -PHCDEV- Topbar - Navigation Main -->