phcscriptcdnpro 64.1.0 → 65.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +1 -1
  4. data/app/assets/stylesheets/phcscriptcdnpro/application.scss +1 -1
  5. data/app/controllers/phcscriptcdnpro/application_controller.rb +1 -2
  6. data/app/helpers/phcscriptcdnpro/script/authors_helper.rb +4 -0
  7. data/app/helpers/phcscriptcdnpro/script/extensions_helper.rb +4 -0
  8. data/app/helpers/phcscriptcdnpro/script/licences_helper.rb +4 -0
  9. data/app/helpers/phcscriptcdnpro/script/listings_helper.rb +4 -0
  10. data/app/helpers/phcscriptcdnpro/script/urls_helper.rb +4 -0
  11. data/app/helpers/phcscriptcdnpro/script/versions_helper.rb +4 -0
  12. data/app/mailers/phcscriptcdnpro/application_mailer.rb +1 -3
  13. data/app/views/layouts/phcscriptcdnpro/application.html.erb +54 -27
  14. data/app/views/layouts/phcscriptcdnpro/components/backend/footer/_footer.html.erb +1 -8
  15. data/app/views/layouts/phcscriptcdnpro/components/backend/navigation/_top_menu.html.erb +143 -0
  16. data/app/views/layouts/phcscriptcdnpro/components/backend/sidebars/_side_menu.html.erb +146 -0
  17. data/app/views/phcscriptcdnpro/script/authors/_form.html.erb +12 -12
  18. data/app/views/phcscriptcdnpro/script/authors/edit.html.erb +13 -44
  19. data/app/views/phcscriptcdnpro/script/authors/index.html.erb +33 -65
  20. data/app/views/phcscriptcdnpro/script/authors/new.html.erb +14 -44
  21. data/app/views/phcscriptcdnpro/script/extensions/_form.html.erb +8 -8
  22. data/app/views/phcscriptcdnpro/script/extensions/edit.html.erb +14 -44
  23. data/app/views/phcscriptcdnpro/script/extensions/index.html.erb +27 -58
  24. data/app/views/phcscriptcdnpro/script/extensions/new.html.erb +13 -44
  25. data/app/views/phcscriptcdnpro/script/licences/_form.html.erb +18 -18
  26. data/app/views/phcscriptcdnpro/script/licences/edit.html.erb +13 -44
  27. data/app/views/phcscriptcdnpro/script/licences/index.html.erb +37 -68
  28. data/app/views/phcscriptcdnpro/script/licences/new.html.erb +13 -44
  29. data/app/views/phcscriptcdnpro/script/listings/_form.html.erb +22 -22
  30. data/app/views/phcscriptcdnpro/script/listings/edit.html.erb +14 -44
  31. data/app/views/phcscriptcdnpro/script/listings/index.html.erb +31 -62
  32. data/app/views/phcscriptcdnpro/script/listings/new.html.erb +14 -45
  33. data/app/views/phcscriptcdnpro/script/urls/_form.html.erb +7 -7
  34. data/app/views/phcscriptcdnpro/script/urls/edit.html.erb +13 -44
  35. data/app/views/phcscriptcdnpro/script/urls/index.html.erb +29 -60
  36. data/app/views/phcscriptcdnpro/script/urls/new.html.erb +13 -44
  37. data/app/views/phcscriptcdnpro/script/versions/_form.html.erb +4 -4
  38. data/app/views/phcscriptcdnpro/script/versions/edit.html.erb +13 -44
  39. data/app/views/phcscriptcdnpro/script/versions/index.html.erb +25 -56
  40. data/app/views/phcscriptcdnpro/script/versions/new.html.erb +13 -46
  41. data/config/routes.rb +21 -27
  42. data/lib/phcscriptcdnpro/engine.rb +61 -3
  43. data/lib/phcscriptcdnpro/version.rb +1 -1
  44. metadata +11 -19
  45. data/app/controllers/phcscriptcdnpro/frontend/listings_controller.rb +0 -20
  46. data/app/models/phcscriptcdnpro/frontend.rb +0 -9
  47. data/app/models/phcscriptcdnpro/frontend/listing.rb +0 -8
  48. data/app/views/layouts/phcscriptcdnpro/components/backend/navigation/_top_bar.html.erb +0 -8
  49. data/app/views/layouts/phcscriptcdnpro/components/backend/sidebars/_left_sidebar.html.erb +0 -45
  50. data/app/views/layouts/phcscriptcdnpro/components/backend/sidebars/_right_sidebar.html.erb +0 -0
  51. data/app/views/layouts/phcscriptcdnpro/components/frontend/footer/_footer.html.erb +0 -14
  52. data/app/views/layouts/phcscriptcdnpro/components/frontend/footer/_footer_copyright.html.erb +0 -19
  53. data/app/views/layouts/phcscriptcdnpro/components/frontend/header/_slideout.html.erb +0 -24
  54. data/app/views/layouts/phcscriptcdnpro/components/frontend/header/_topbar.html.erb +0 -17
  55. data/app/views/layouts/phcscriptcdnpro/components/frontend/navigation/_navigation.html.erb +0 -27
  56. data/app/views/layouts/phcscriptcdnpro/components/frontend/pages/_titlebars.html.erb +0 -14
  57. data/app/views/layouts/phcscriptcdnpro/components/frontend/seo/_seo_main.html.erb +0 -5
  58. data/app/views/layouts/phcscriptcdnpro/frontend.html.erb +0 -70
  59. data/app/views/phcscriptcdnpro/frontend/listings/index.html.erb +0 -52
  60. data/app/views/phcscriptcdnpro/frontend/listings/show.html.erb +0 -65
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 55faefdaadb3c774df69d4a4e84603562c07169ec44e0a4123e6e867236e0ea9
4
- data.tar.gz: 791decb5e81aa6543483effbb02992a4c2d782516f7e6bc30a21fa6b96862906
3
+ metadata.gz: 07cc75bafff0cb18626755a3f0720e6400be8f5d50f6312bd290fe14504e0b75
4
+ data.tar.gz: 486898d0ecb05526ab444a0fd5cce8d031aa5eff6b3af3672e9833b2f08debb5
5
5
  SHA512:
6
- metadata.gz: e5b973e5e501d8c200b5863e3a4ed685db2bd3c29b74d1132b98937811a2d67f1bdef015a43d16947048e1bd90f1bc2170671c4f74b7325b598478532a1f8046
7
- data.tar.gz: 50a293706b7e08774152fdddd4e0a850dcb2f303e387d5be927e6724cde4d8ea005e65602b1d7d6c18cd37d2b3f3e3df9d8e9d7eed2a54ceac97fb7c739a94ee
6
+ metadata.gz: 8a8adbc6ff18903451f511a67242bc41e184d9c0accdde7dc094d486d900a2ddafbf90aa69ad6a0ffcf10c004d2fd6cf8d4b4fd6c38392d64eb3707901762493
7
+ data.tar.gz: 0e71a6ef0f7dbf53200f072295e21d2c3a18f45d197eab91755bc6b63eb0b0e81f377b4917b6c20be8965d7b6a8f362e5c3c030908303637037b43dd5b4077ef
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2018 BradPotts
1
+ Copyright 2015-2019 PHCNetco PHCDevworks 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/README.md CHANGED
@@ -31,4 +31,4 @@ To properly function re-compile your application's assets to copy over required
31
31
  #### Step 5 - Generate Contact Form View (Customization)
32
32
  All PHCScriptCDN views and layouts can be overwritten by copying files to your application.
33
33
 
34
- rails generate phcscriptcdnpro:views
34
+ rails generate phcscriptcdnpro:views
@@ -1,2 +1,2 @@
1
1
  // Load Admin Theme
2
- @import "phc_admin_theme_styles_four";
2
+ @import "phc_admin_theme_styles_four";
@@ -8,10 +8,9 @@ module Phcscriptcdnpro
8
8
  helper Phctitleseo::Engine.helpers
9
9
  helper Phcnotifi::Engine.helpers
10
10
  helper Phcaccountspro::Engine.helpers
11
-
11
+
12
12
  # Papertrail Whodunnit Username
13
13
  def user_for_paper_trail
14
- # Default is: current_user rescue nil
15
14
  current_user ? current_user.username : 'Public user'
16
15
  end
17
16
 
@@ -0,0 +1,4 @@
1
+ module Phcscriptcdnpro
2
+ module Script::AuthorsHelper
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module Phcscriptcdnpro
2
+ module Script::ExtensionsHelper
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module Phcscriptcdnpro
2
+ module Script::LicencesHelper
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module Phcscriptcdnpro
2
+ module Script::ListingsHelper
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module Phcscriptcdnpro
2
+ module Script::UrlsHelper
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module Phcscriptcdnpro
2
+ module Script::VersionsHelper
3
+ end
4
+ end
@@ -1,8 +1,6 @@
1
1
  module Phcscriptcdnpro
2
2
  class ApplicationMailer < ActionMailer::Base
3
-
4
- default from: 'no-reply@phcnetworks.net'
3
+ default from: 'from@example.com'
5
4
  layout 'mailer'
6
-
7
5
  end
8
6
  end
@@ -2,46 +2,73 @@
2
2
  <html>
3
3
  <head>
4
4
 
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title><%= content_for?(:title) ? yield(:title) : "PHCScriptCDN - Script Listing Engine" %></title>
7
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
8
- <link rel="canonical" href="http://phcnetworks.net">
5
+ <% phc_seo_title "PHCScriptCDN(Pro) Script Listings" %>
6
+ <% phc_seo_description "Conent Management System for ScriptCDNs" %>
9
7
 
10
- <!-- Font -->
11
- <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"/>
8
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
9
+ <title><%= yield(:phc_seo_title) %></title>
10
+ <meta name="description" content="<%= yield(:phc_seo_description) %>">
12
11
 
13
- <!-- Requried Style Sheets -->
14
- <%= stylesheet_link_tag "phcscriptcdnpro/application", media: "all", 'data-turbolinks-track': 'reload' %>
12
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
13
+ <link rel="canonical" href="http://phcmembers.com">
15
14
 
16
- <!-- Security -->
17
- <%= csrf_meta_tags %>
15
+ <!-- Font -->
16
+ <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"/>
17
+
18
+ <!-- Requried Style Sheets -->
19
+ <%= stylesheet_link_tag "phcscriptcdnpro/application", media: "all", 'data-turbolinks-track': 'reload' %>
20
+
21
+ <!-- Security -->
22
+ <%= csrf_meta_tags %>
18
23
 
19
24
  </head>
20
25
  <body>
21
26
 
22
- <div id="wrapper" class="<%= params[:controller] %>.<%= params[:action] %>">
27
+ <!-- Page Container -->
28
+ <div id="page-container" class="page-container fade page-sidebar-fixed page-header-fixed">
29
+ <!-- Page Header -->
30
+ <div id="header" class="header navbar-default">
31
+ <%= render 'layouts/phcscriptcdnpro/components/backend/navigation/top_menu' %>
32
+ </div>
33
+ <!-- Page Header -->
23
34
 
24
- <nav class="navbar-default navbar-static-side" role="navigation">
25
- <%= render 'layouts/phcscriptcdnpro/components/backend/sidebars/left_sidebar' %>
26
- </nav>
35
+ <!-- Page Sidebar -->
36
+ <div id="sidebar" class="sidebar">
37
+ <%= render 'layouts/phcscriptcdnpro/components/backend/sidebars/side_menu' %>
38
+ </div>
39
+ <div class="sidebar-bg"></div>
40
+ <!-- Page Sidebar -->
27
41
 
28
- <div id="page-wrapper" class="gray-bg <%= @extra_class %>">
29
- <div class="row border-bottom">
30
- <%= render 'layouts/phcscriptcdnpro/components/backend/navigation/top_bar' %>
31
- </div>
42
+ <!-- Page Content -->
43
+ <div id="content" class="content">
44
+ <%= yield %>
45
+ </div>
46
+ <!-- Page Content -->
32
47
 
33
- <%= yield %>
48
+ <!-- Footer Content -->
49
+ <div id="footer" class="footer">
50
+ <%= render 'layouts/phcscriptcdnpro/components/backend/footer/footer' %>
51
+ </div>
52
+ <!-- Footer Content -->
34
53
 
35
- <div class="footer">
36
- <%= render 'layouts/phcscriptcdnpro/components/backend/footer/footer' %>
37
- </div>
54
+ <!-- Scroll to Top -->
55
+ <a href="javascript:;" class="btn btn-icon btn-circle btn-success btn-scroll-to-top fade" data-click="scroll-top">
56
+ <i class="fa fa-angle-up"></i>
57
+ </a>
58
+ <!-- Scroll to Top -->
38
59
 
39
- </div>
40
- <%= render 'layouts/phcscriptcdnpro/components/backend/sidebars/right_sidebar' %>
41
- </div>
60
+ </div>
61
+ <!-- Page Container -->
42
62
 
43
- <!-- Requried JavaScripts -->
44
- <%= javascript_include_tag "phcscriptcdnpro/application", 'data-turbolinks-track': 'reload' %>
63
+ <!-- Requried JavaScripts -->
64
+ <%= javascript_include_tag "phcscriptcdnpro/application", 'data-turbolinks-track': 'reload' %>
65
+ <script src="https://cdn.ckeditor.com/4.10.0/full/ckeditor.js"></script>
66
+ <script>
67
+ $(document).ready(function() {
68
+ App.init();
69
+ });
70
+ </script>
71
+ <!-- Requried JavaScripts -->
45
72
 
46
73
  </body>
47
74
  </html>
@@ -1,8 +1 @@
1
- <div class="pull-right">
2
- <%= link_to "https://phcnetworks.net", target: "_blank", rel: "nofollow" do %>
3
- PHCScriptCDN by PHCNetworks
4
- <% end %>
5
- </div>
6
- <div>
7
- &copy; 2012-<%= Time.now.year %> - v<%= Gem.loaded_specs["phcscriptcdnpro"].version.to_s %> - RELEASED - <%= Date.today.month %>-<%= Date.today.year %>
8
- </div>
1
+ <span class="float-left">&copy; 2012-<%= Time.now.year %> - <strong>PHC</strong>ScriptCDN(Pro) Engine v<%= Gem.loaded_specs["phcscriptcdnpro"].version.to_s %></span> <span class="float-right">Developed with <i class="fas fa-heart hanna_hearts"></i> by <strong>PHC</strong>Devworks</span>
@@ -0,0 +1,143 @@
1
+ <!-- Topbar - Navigation -->
2
+ <!-- Topbar - Navigation Header -->
3
+ <div class="navbar-header">
4
+ <%= link_to phcaccountspro.welcome_status_page_path, class: "navbar-brand" do %>
5
+ <!--<span class="navbar-logo"></span>-->
6
+ <strong>PHC</strong>ScriptCDN(Pro)
7
+ <% end %>
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>
12
+ </button>
13
+ </div>
14
+ <!-- Topbar - Navigation Header -->
15
+
16
+ <!-- Topbar - Navigation Main -->
17
+ <% if current_user %>
18
+ <ul class="navbar-nav navbar-right">
19
+
20
+ <!-- Topbar - Navigation Main - Search
21
+ <li>
22
+ <form class="navbar-form">
23
+ <div class="form-group">
24
+ <input type="text" class="form-control" placeholder="Enter keyword" />
25
+ <button type="submit" class="btn btn-search"><i class="fa fa-search"></i></button>
26
+ </div>
27
+ </form>
28
+ </li>
29
+ Topbar - Navigation Main - Search -->
30
+
31
+ <!-- Topbar - Navigation Main - Notifications Menu
32
+ <li class="dropdown">
33
+ <a href="javascript:;" data-toggle="dropdown" class="dropdown-toggle f-s-14">
34
+ <i class="fa fa-bell"></i>
35
+ <span class="label">5</span>
36
+ </a>
37
+ <ul class="dropdown-menu media-list dropdown-menu-right">
38
+ <li class="dropdown-header">NOTIFICATIONS (5)</li>
39
+ <li class="media">
40
+ <a href="javascript:;">
41
+ <div class="media-left">
42
+ <i class="fa fa-bug media-object bg-silver-darker"></i>
43
+ </div>
44
+ <div class="media-body">
45
+ <h6 class="media-heading">
46
+ Server Error Reports
47
+ <i class="fa fa-exclamation-circle text-danger"></i>
48
+ </h6>
49
+ <div class="text-muted f-s-11">3 minutes ago</div>
50
+ </div>
51
+ </a>
52
+ </li>
53
+ ...
54
+ <li class="dropdown-footer text-center">
55
+ <a href="javascript:;">View more</a>
56
+ </li>
57
+ </ul>
58
+ </li>
59
+ Topbar - Navigation Main - Notifications Menu -->
60
+
61
+ <!-- Topbar - Navigation Main - User Menu -->
62
+ <li class="dropdown navbar-user">
63
+ <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
64
+ <%= image_tag current_user.gravatar_url %>
65
+ <span class="d-none d-md-inline"><%= current_user.firstname + ' ' + current_user.lastname %></span> <b class="caret"></b>
66
+ </a>
67
+ <div class="dropdown-menu dropdown-menu-right">
68
+ <%= link_to phcaccountspro.edit_user_registration_path, class: "dropdown-item" do %>
69
+ <i class="fas fa-cogs"></i> Account Settings
70
+ <% end %>
71
+ <%= link_to phcaccountspro.destroy_user_session_path, method: :delete, class: "dropdown-item" do %>
72
+ <i class="fas fa-sign-out-alt"></i> Logout
73
+ <% end %>
74
+ </div>
75
+ </li>
76
+ <!-- Topbar - Navigation Main - User Menu -->
77
+
78
+ </ul>
79
+ <% end %>
80
+ <% if current_admin %>
81
+ <ul class="navbar-nav navbar-right">
82
+
83
+ <!-- Topbar - Navigation Main - Search
84
+ <li>
85
+ <form class="navbar-form">
86
+ <div class="form-group">
87
+ <input type="text" class="form-control" placeholder="Enter keyword" />
88
+ <button type="submit" class="btn btn-search"><i class="fa fa-search"></i></button>
89
+ </div>
90
+ </form>
91
+ </li>
92
+ Topbar - Navigation Main - Search -->
93
+
94
+ <!-- Topbar - Navigation Main - Notifications Menu
95
+ <li class="dropdown">
96
+ <a href="javascript:;" data-toggle="dropdown" class="dropdown-toggle f-s-14">
97
+ <i class="fa fa-bell"></i>
98
+ <span class="label">5</span>
99
+ </a>
100
+ <ul class="dropdown-menu media-list dropdown-menu-right">
101
+ <li class="dropdown-header">NOTIFICATIONS (5)</li>
102
+ <li class="media">
103
+ <a href="javascript:;">
104
+ <div class="media-left">
105
+ <i class="fa fa-bug media-object bg-silver-darker"></i>
106
+ </div>
107
+ <div class="media-body">
108
+ <h6 class="media-heading">
109
+ Server Error Reports
110
+ <i class="fa fa-exclamation-circle text-danger"></i>
111
+ </h6>
112
+ <div class="text-muted f-s-11">3 minutes ago</div>
113
+ </div>
114
+ </a>
115
+ </li>
116
+ ...
117
+ <li class="dropdown-footer text-center">
118
+ <a href="javascript:;">View more</a>
119
+ </li>
120
+ </ul>
121
+ </li>
122
+ Topbar - Navigation Main - Notifications Menu -->
123
+
124
+ <!-- Topbar - Navigation Main - User Menu -->
125
+ <li class="dropdown navbar-user">
126
+ <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
127
+ <%= image_tag current_admin.gravatar_url %>
128
+ <span class="d-none d-md-inline"><%= current_admin.firstname + ' ' + current_admin.lastname %></span> <b class="caret"></b>
129
+ </a>
130
+ <div class="dropdown-menu dropdown-menu-right">
131
+ <%= link_to phcaccountspro.edit_admin_registration_path, class: "dropdown-item" do %>
132
+ <i class="fas fa-cogs"></i> Account Settings
133
+ <% end %>
134
+ <%= link_to phcaccountspro.destroy_admin_session_path, method: :delete, class: "dropdown-item" do %>
135
+ <i class="fas fa-sign-out-alt"></i> Logout
136
+ <% end %>
137
+ </div>
138
+ </li>
139
+ <!-- Topbar - Navigation Main - User Menu -->
140
+
141
+ </ul>
142
+ <% end %>
143
+ <!-- Topbar - Navigation Main -->
@@ -0,0 +1,146 @@
1
+ <!-- Sidebar -->
2
+ <div data-scrollbar="true" data-height="100%">
3
+ <% if current_user %>
4
+ <!-- Sidebar - User Profile Menu -->
5
+ <ul class="nav">
6
+ <li class="nav-profile">
7
+ <a href="javascript:;" data-toggle="nav-profile">
8
+ <div class="cover with-shadow"></div>
9
+ <div class="image">
10
+ <%= image_tag current_user.gravatar_url %>
11
+ </div>
12
+ <div class="info">
13
+ <b class="caret pull-right"></b>
14
+ <%= current_user.firstname + ' ' + current_user.lastname %>
15
+ <small><%= current_user.username %></small>
16
+ </div>
17
+ </a>
18
+ </li>
19
+ <li>
20
+ <ul class="nav nav-profile">
21
+ <li>
22
+ <%= link_to phcaccountspro.edit_user_registration_path do %>
23
+ <i class="fas fa-cogs"></i> Account Settings
24
+ <% end %>
25
+ </li>
26
+ <li>
27
+ <%= link_to phcaccountspro.destroy_user_session_path do %>
28
+ <i class="fas fa-sign-out-alt"></i> Logout
29
+ <% end %>
30
+ </li>
31
+ </ul>
32
+ </li>
33
+ </ul>
34
+ <!-- Sidebar - User Profile Menu -->
35
+ <!-- Sidebar - Sidebar Navigation -->
36
+ <ul class="nav">
37
+
38
+ <!-- Sidebar - Sidebar Navigation - PHCPressPro -->
39
+ <li class="nav-header">Script Management</li>
40
+ <li class="has-sub">
41
+ <a href="javascript:;">
42
+ <b class="caret"></b>
43
+ <i class="fas fa-newspaper"></i>
44
+ <span>Script Posts</span>
45
+ </a>
46
+ <ul class="sub-menu">
47
+ <li class="<%= is_active_controller('phcscriptcdnpro/script/listings') %>"><%= link_to "All Script Listings", phcscriptcdnpro.script_listings_path %></li>
48
+ <li class="<%= is_active_controller('phcscriptcdnpro/script/listings#new') %>"><%= link_to "Add a New Listing", phcscriptcdnpro.new_script_listing_path %></li>
49
+ </ul>
50
+ </li>
51
+ <li class="has-sub">
52
+ <a href="javascript:;">
53
+ <b class="caret"></b>
54
+ <i class="fas fa-sitemap"></i>
55
+ <span>Script Extras</span>
56
+ </a>
57
+ <ul class="sub-menu">
58
+ <li class="<%= is_active_controller('phcscriptcdnpro/script/authors') %>"><%= link_to "Script Authors", phcscriptcdnpro.script_authors_path %></li>
59
+ <li class="<%= is_active_controller('phcscriptcdnpro/script/licences') %>"><%= link_to "Script Licences", phcscriptcdnpro.script_licences_path %></li>
60
+ <li class="<%= is_active_controller('phcscriptcdnpro/script/extensions') %>"><%= link_to "Script Extensions", phcscriptcdnpro.script_extensions_path %></li>
61
+ <li class="<%= is_active_controller('phcscriptcdnpro/script/versions') %>"><%= link_to "Script Versions", phcscriptcdnpro.script_versions_path %></li>
62
+ </ul>
63
+ </li>
64
+ <!-- Sidebar - Sidebar Navigation - PHCPressPro -->
65
+ <!-- Sidebar - Sidebar Navigation - PHCAccountsPro -->
66
+ <li class="nav-header">Account Settings</li>
67
+ <li class="has-sub">
68
+ <a href="javascript:;">
69
+ <b class="caret"></b>
70
+ <i class="fas fa-user"></i>
71
+ <span>Accounts Dashboard</span>
72
+ </a>
73
+ <ul class="sub-menu">
74
+ <li><%= link_to('Settings', phcaccountspro.edit_user_registration_path) %></li>
75
+ <li><%= link_to('Logout', phcaccountspro.destroy_user_session_path, method: :delete) %></li>
76
+ </ul>
77
+ </li>
78
+ <!-- Sidebar - Sidebar Navigation - PHCAccountsPro -->
79
+ <!-- Sidebar - Sidebar Minifier -->
80
+ <li>
81
+ <a href="javascript:;" class="sidebar-minify-btn" data-click="sidebar-minify">
82
+ <i class="fa fa-angle-double-left"></i>
83
+ </a>
84
+ </li>
85
+ <!-- Sidebar - Sidebar Minifier -->
86
+ </ul>
87
+ <!-- Sidebar - Sidebar Navigation -->
88
+ <% end %>
89
+ <% if current_admin %>
90
+ <!-- Sidebar - User Profile Menu -->
91
+ <ul class="nav">
92
+ <li class="nav-profile">
93
+ <a href="javascript:;" data-toggle="nav-profile">
94
+ <div class="cover with-shadow"></div>
95
+ <div class="image">
96
+ <%= image_tag current_admin.gravatar_url %>
97
+ </div>
98
+ <div class="info">
99
+ <b class="caret pull-right"></b>
100
+ <%= current_admin.firstname + ' ' + current_admin.lastname %>
101
+ <small><%= current_admin.username %></small>
102
+ </div>
103
+ </a>
104
+ </li>
105
+ <li>
106
+ <ul class="nav nav-profile">
107
+ <li>
108
+ <%= link_to phcaccountspro.edit_admin_registration_path do %>
109
+ <i class="fas fa-cogs"></i> Account Settings
110
+ <% end %>
111
+ </li>
112
+ <li>
113
+ <%= link_to phcaccountspro.destroy_admin_session_path do %>
114
+ <i class="fas fa-sign-out-alt"></i> Logout
115
+ <% end %>
116
+ </li>
117
+ </ul>
118
+ </li>
119
+ </ul>
120
+ <!-- Sidebar - User Profile Menu -->
121
+ <!-- Sidebar - Sidebar Navigation -->
122
+ <ul class="nav">
123
+ <li class="nav-header">Accounts Menu</li>
124
+ <li class="has-sub">
125
+ <a href="javascript:;">
126
+ <b class="caret"></b>
127
+ <i class="fa fa-th-large"></i>
128
+ <span>Accounts Dashboard</span>
129
+ </a>
130
+ <ul class="sub-menu">
131
+ <li><%= link_to('Settings', phcaccountspro.edit_admin_registration_path) %></li>
132
+ <li><%= link_to('Logout', phcaccountspro.destroy_admin_session_path, method: :delete) %></li>
133
+ </ul>
134
+ </li>
135
+ <!-- Sidebar - Sidebar Minifier -->
136
+ <li>
137
+ <a href="javascript:;" class="sidebar-minify-btn" data-click="sidebar-minify">
138
+ <i class="fa fa-angle-double-left"></i>
139
+ </a>
140
+ </li>
141
+ <!-- Sidebar - Sidebar Minifier -->
142
+ </ul>
143
+ <!-- Sidebar - Sidebar Navigation -->
144
+ <% end %>
145
+ </div>
146
+ <!-- Sidebar -->