phcscriptcdn 48.0.0 → 49.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -2
- data/app/assets/javascripts/phcscriptcdn/application.js +2 -2
- data/app/assets/stylesheets/phcscriptcdn/application.scss +2 -2
- data/app/controllers/phcscriptcdn/application_controller.rb +20 -10
- data/app/controllers/phcscriptcdn/script/authors_controller.rb +19 -8
- data/app/controllers/phcscriptcdn/script/extensions_controller.rb +17 -6
- data/app/controllers/phcscriptcdn/script/licences_controller.rb +16 -5
- data/app/controllers/phcscriptcdn/script/listings_controller.rb +15 -6
- data/app/controllers/phcscriptcdn/script/urls_controller.rb +13 -4
- data/app/controllers/phcscriptcdn/script/versions_controller.rb +15 -4
- data/app/helpers/phcscriptcdn/application_helper.rb +0 -10
- data/app/helpers/phcscriptcdn/script/authors_helper.rb +4 -0
- data/app/helpers/phcscriptcdn/script/extensions_helper.rb +4 -0
- data/app/helpers/phcscriptcdn/script/licences_helper.rb +4 -0
- data/app/helpers/phcscriptcdn/script/listings_helper.rb +4 -0
- data/app/helpers/phcscriptcdn/script/urls_helper.rb +4 -0
- data/app/helpers/phcscriptcdn/script/versions_helper.rb +4 -0
- data/app/jobs/phcscriptcdn/application_job.rb +2 -2
- data/app/mailers/phcscriptcdn/application_mailer.rb +6 -0
- data/app/models/phcscriptcdn/application_record.rb +5 -3
- data/app/models/phcscriptcdn/script.rb +7 -5
- data/app/models/phcscriptcdn/script/author.rb +0 -7
- data/app/models/phcscriptcdn/script/listing.rb +3 -13
- data/app/models/phcscriptcdn/script/url.rb +2 -2
- data/app/models/phcscriptcdn/script/version.rb +1 -1
- data/app/views/layouts/phcscriptcdn/application.html.erb +64 -41
- data/app/views/layouts/phcscriptcdn/components/backend/footer/_footer.html.erb +9 -4
- data/app/views/layouts/phcscriptcdn/components/backend/navigation/_top_menu.html.erb +78 -0
- data/app/views/layouts/phcscriptcdn/components/backend/sidebars/_side_menu.html.erb +154 -0
- data/app/views/phcscriptcdn/script/authors/_form.html.erb +15 -20
- data/app/views/phcscriptcdn/script/authors/edit.html.erb +32 -32
- data/app/views/phcscriptcdn/script/authors/index.html.erb +50 -60
- data/app/views/phcscriptcdn/script/authors/new.html.erb +33 -32
- data/app/views/phcscriptcdn/script/authors/show.html.erb +42 -32
- data/app/views/phcscriptcdn/script/extensions/_form.html.erb +13 -14
- data/app/views/phcscriptcdn/script/extensions/edit.html.erb +32 -31
- data/app/views/phcscriptcdn/script/extensions/index.html.erb +45 -52
- data/app/views/phcscriptcdn/script/extensions/new.html.erb +31 -30
- data/app/views/phcscriptcdn/script/extensions/show.html.erb +41 -31
- data/app/views/phcscriptcdn/script/licences/_form.html.erb +21 -21
- data/app/views/phcscriptcdn/script/licences/edit.html.erb +31 -31
- data/app/views/phcscriptcdn/script/licences/index.html.erb +55 -62
- data/app/views/phcscriptcdn/script/licences/new.html.erb +31 -31
- data/app/views/phcscriptcdn/script/licences/show.html.erb +41 -31
- data/app/views/phcscriptcdn/script/listings/_form.html.erb +27 -28
- data/app/views/phcscriptcdn/script/listings/edit.html.erb +29 -30
- data/app/views/phcscriptcdn/script/listings/index.html.erb +45 -54
- data/app/views/phcscriptcdn/script/listings/new.html.erb +28 -30
- data/app/views/phcscriptcdn/script/listings/show.html.erb +38 -28
- data/app/views/phcscriptcdn/script/urls/_form.html.erb +13 -14
- data/app/views/phcscriptcdn/script/urls/edit.html.erb +17 -30
- data/app/views/phcscriptcdn/script/urls/index.html.erb +47 -54
- data/app/views/phcscriptcdn/script/urls/new.html.erb +31 -31
- data/app/views/phcscriptcdn/script/urls/show.html.erb +41 -30
- data/app/views/phcscriptcdn/script/versions/_form.html.erb +9 -10
- data/app/views/phcscriptcdn/script/versions/edit.html.erb +31 -31
- data/app/views/phcscriptcdn/script/versions/index.html.erb +43 -50
- data/app/views/phcscriptcdn/script/versions/new.html.erb +31 -31
- data/app/views/phcscriptcdn/script/versions/show.html.erb +41 -31
- data/config/routes.rb +19 -22
- data/db/migrate/{20160731205917_create_phcscriptcdn_script_listings.rb → 20160821183652_create_phcscriptcdn_script_listings.rb} +5 -6
- data/db/migrate/{20160731210723_create_phcscriptcdn_script_authors.rb → 20160821183714_create_phcscriptcdn_script_authors.rb} +1 -2
- data/db/migrate/{20160731205205_create_phcscriptcdn_script_extensions.rb → 20160821183735_create_phcscriptcdn_script_extensions.rb} +1 -1
- data/db/migrate/{20160801032225_create_phcscriptcdn_script_licences.rb → 20160821183805_create_phcscriptcdn_script_licences.rb} +1 -1
- data/db/migrate/{20160731210626_create_phcscriptcdn_script_urls.rb → 20160821183830_create_phcscriptcdn_script_urls.rb} +5 -5
- data/db/migrate/{20160731205954_create_phcscriptcdn_script_versions.rb → 20160821183946_create_phcscriptcdn_script_versions.rb} +1 -1
- data/db/migrate/20170517064049_create_phcscriptcdn_listing_versions.rb +1 -0
- data/db/migrate/20170517064114_create_phcscriptcdn_scriptversion_versions.rb +1 -0
- data/db/migrate/20170517064150_create_phcscriptcdn_url_versions.rb +17 -16
- data/db/migrate/20170517064208_create_phcscriptcdn_author_versions.rb +1 -0
- data/db/migrate/20170517064427_create_phcscriptcdn_licence_versions.rb +1 -0
- data/lib/phcscriptcdn/engine.rb +6 -1
- data/lib/phcscriptcdn/version.rb +1 -1
- metadata +100 -116
- data/app/assets/javascripts/phcscriptcdn/frontend/listings.js +0 -2
- data/app/assets/stylesheets/phcscriptcdn/frontend/listings.scss +0 -3
- data/app/controllers/phcscriptcdn/frontend/listings_controller.rb +0 -20
- data/app/helpers/phcscriptcdn/frontend/listings_helper.rb +0 -4
- data/app/models/phcscriptcdn/frontend/listing.rb +0 -8
- data/app/views/layouts/phcscriptcdn/components/backend/navigation/_navigation.html.erb +0 -56
- data/app/views/layouts/phcscriptcdn/components/backend/topbar/_topbar.html.erb +0 -5
- data/app/views/layouts/phcscriptcdn/components/backend/topbar/_topbar_links.html.erb +0 -0
- data/app/views/layouts/phcscriptcdn/frontend.html.erb +0 -22
- data/app/views/phcscriptcdn/frontend/listings/index.html.erb +0 -46
- data/app/views/phcscriptcdn/frontend/listings/show.html.erb +0 -59
@@ -1,14 +1,4 @@
|
|
1
1
|
module Phcscriptcdn
|
2
2
|
module ApplicationHelper
|
3
|
-
|
4
|
-
# Add Active to Menu
|
5
|
-
def is_active_controller(controller_name)
|
6
|
-
params[:controller] == controller_name ? "active open selected" : nil
|
7
|
-
end
|
8
|
-
|
9
|
-
def is_active_action(action_name)
|
10
|
-
params[:action] == action_name ? "active" : nil
|
11
|
-
end
|
12
|
-
|
13
3
|
end
|
14
4
|
end
|
@@ -10,13 +10,6 @@ module Phcscriptcdn
|
|
10
10
|
# Relationships
|
11
11
|
has_many :listings, class_name: 'Phcscriptcdn::Script::Listing'
|
12
12
|
|
13
|
-
# Validation for Form Fields
|
14
|
-
validates :authorfirstname,
|
15
|
-
presence: true
|
16
|
-
|
17
|
-
validates :authorlastname,
|
18
|
-
presence: true
|
19
|
-
|
20
13
|
# Clean URL Define
|
21
14
|
friendly_id :phcscriptcdn_author_slug, use: [:slugged, :finders]
|
22
15
|
|
@@ -9,19 +9,9 @@ module Phcscriptcdn
|
|
9
9
|
|
10
10
|
# Relationships
|
11
11
|
has_many :urls, class_name: 'Phcscriptcdn::Script::Url'
|
12
|
-
belongs_to :author, class_name: 'Phcscriptcdn::Script::Author'
|
13
|
-
belongs_to :version, class_name: 'Phcscriptcdn::Script::Version'
|
14
|
-
belongs_to :licence, class_name: 'Phcscriptcdn::Script::Licence'
|
15
|
-
|
16
|
-
# Validation for Form Fields
|
17
|
-
validates :scripttitle,
|
18
|
-
presence: true
|
19
|
-
|
20
|
-
validates :scriptdescription,
|
21
|
-
presence: true
|
22
|
-
|
23
|
-
validates :scriptstatus,
|
24
|
-
presence: true
|
12
|
+
belongs_to :author, class_name: 'Phcscriptcdn::Script::Author', optional: true
|
13
|
+
belongs_to :version, class_name: 'Phcscriptcdn::Script::Version', optional: true
|
14
|
+
belongs_to :licence, class_name: 'Phcscriptcdn::Script::Licence', optional: true
|
25
15
|
|
26
16
|
# Clean URL Define
|
27
17
|
friendly_id :phcscriptcdn_listing_slug, use: [:slugged, :finders]
|
@@ -9,8 +9,8 @@ module Phcscriptcdn
|
|
9
9
|
|
10
10
|
# Relationships
|
11
11
|
belongs_to :listing, class_name: 'Phcscriptcdn::Script::Listing'
|
12
|
-
belongs_to :version, class_name: 'Phcscriptcdn::Script::Version'
|
13
|
-
belongs_to :extension, class_name: 'Phcscriptcdn::Script::Extension'
|
12
|
+
belongs_to :version, class_name: 'Phcscriptcdn::Script::Version', optional: true
|
13
|
+
belongs_to :extension, class_name: 'Phcscriptcdn::Script::Extension', optional: true
|
14
14
|
|
15
15
|
# Validation for Form Fields
|
16
16
|
validates :scripturl,
|
@@ -1,56 +1,79 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html>
|
3
|
+
<head>
|
3
4
|
|
4
|
-
|
5
|
+
<% phc_seo_title "PHCScriptCDN CDNSM" %>
|
6
|
+
<% phc_seo_description "Script CDN Listings Management System by PHCDevworks" %>
|
5
7
|
|
6
|
-
|
8
|
+
<!-- -PHC- SEO and Site Description -->
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
10
|
+
<title><%= yield(:phc_seo_title) %></title>
|
11
|
+
<meta name="description" content="<%= yield(:phc_seo_description) %>">
|
12
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
|
13
|
+
<link rel="canonical" href="http://phcmembers.com">
|
14
|
+
<!-- -PHC- SEO and Site Description -->
|
15
|
+
|
16
|
+
<!-- -PHC- Security -->
|
17
|
+
<%= csrf_meta_tags %>
|
18
|
+
<%= csp_meta_tag %>
|
19
|
+
<!-- -PHC- Security -->
|
20
|
+
|
21
|
+
<!-- -PHC- CSS -->
|
22
|
+
<%= stylesheet_link_tag 'phcscriptcdn/application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
23
|
+
<!-- -PHC- CSS -->
|
7
24
|
|
8
|
-
|
9
|
-
|
10
|
-
|
25
|
+
<!-- Font -->
|
26
|
+
<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"/>
|
27
|
+
<!-- Font -->
|
11
28
|
|
12
|
-
|
29
|
+
</head>
|
30
|
+
<body>
|
13
31
|
|
14
|
-
|
32
|
+
<!-- Page Container -->
|
33
|
+
<div id="page-container" class="page-container fade page-sidebar-fixed page-header-fixed">
|
34
|
+
<!-- Page Header -->
|
35
|
+
<div id="header" class="header navbar-default">
|
36
|
+
<%= render 'layouts/phcscriptcdn/components/backend/navigation/top_menu' %>
|
37
|
+
</div>
|
38
|
+
<!-- Page Header -->
|
15
39
|
|
16
|
-
|
17
|
-
|
40
|
+
<!-- Page Sidebar -->
|
41
|
+
<div id="sidebar" class="sidebar">
|
42
|
+
<%= render 'layouts/phcscriptcdn/components/backend/sidebars/side_menu' %>
|
43
|
+
</div>
|
44
|
+
<div class="sidebar-bg"></div>
|
45
|
+
<!-- Page Sidebar -->
|
18
46
|
|
19
|
-
|
47
|
+
<!-- Page Content -->
|
48
|
+
<div id="content" class="content">
|
49
|
+
<%= yield %>
|
50
|
+
</div>
|
51
|
+
<!-- Page Content -->
|
20
52
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
<!-- Logo with Link -->
|
53
|
+
<!-- Footer Content -->
|
54
|
+
<div id="footer" class="footer">
|
55
|
+
<%= render 'layouts/phcscriptcdn/components/backend/footer/footer' %>
|
56
|
+
</div>
|
57
|
+
<!-- Footer Content -->
|
27
58
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
59
|
+
<!-- Scroll to Top -->
|
60
|
+
<a href="javascript:;" class="btn btn-icon btn-circle btn-success btn-scroll-to-top fade" data-click="scroll-top">
|
61
|
+
<i class="fa fa-angle-up"></i>
|
62
|
+
</a>
|
63
|
+
<!-- Scroll to Top -->
|
33
64
|
|
34
|
-
|
65
|
+
</div>
|
66
|
+
<!-- Page Container -->
|
35
67
|
|
36
|
-
|
37
|
-
|
38
|
-
|
68
|
+
<!-- Requried JavaScripts -->
|
69
|
+
<%= javascript_include_tag "phcscriptcdn/application", 'data-turbolinks-track': 'reload' %>
|
70
|
+
<script src="https://cdn.ckeditor.com/4.10.0/full/ckeditor.js"></script>
|
71
|
+
<script>
|
72
|
+
$(document).ready(function() {
|
73
|
+
App.init();
|
74
|
+
});
|
75
|
+
</script>
|
76
|
+
<!-- Requried JavaScripts -->
|
39
77
|
|
40
|
-
|
41
|
-
<div class="content-wrapper">
|
42
|
-
<%= yield %>
|
43
|
-
</div>
|
44
|
-
<!-- Page Content -->
|
45
|
-
|
46
|
-
</div>
|
47
|
-
</div>
|
48
|
-
|
49
|
-
<!-- Footer -->
|
50
|
-
<footer class="main-footer">
|
51
|
-
<%= render 'layouts/phcscriptcdn/components/backend/footer/footer' %>
|
52
|
-
</footer>
|
53
|
-
<!-- Footer -->
|
54
|
-
|
55
|
-
</body>
|
78
|
+
</body>
|
56
79
|
</html>
|
@@ -1,4 +1,9 @@
|
|
1
|
-
<
|
2
|
-
|
3
|
-
</
|
4
|
-
|
1
|
+
<span class="float-left">
|
2
|
+
© 2012-<%= Time.now.year %> -
|
3
|
+
<strong>PHC</strong>Press -
|
4
|
+
Engine v<%= Gem.loaded_specs["phcscriptcdn"].version.to_s %>
|
5
|
+
</span>
|
6
|
+
<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>
|
9
|
+
</span>
|
@@ -0,0 +1,78 @@
|
|
1
|
+
<!-- Topbar - Navigation Header -->
|
2
|
+
<div class="navbar-header">
|
3
|
+
<%= link_to phcscriptcdn.script_listings_path, class: "navbar-brand" do %>
|
4
|
+
<strong>PHC</strong>ScriptCDN
|
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 - Search
|
19
|
+
<li>
|
20
|
+
<form class="navbar-form">
|
21
|
+
<div class="form-group">
|
22
|
+
<input type="text" class="form-control" placeholder="Enter keyword" />
|
23
|
+
<button type="submit" class="btn btn-search"><i class="fa fa-search"></i></button>
|
24
|
+
</div>
|
25
|
+
</form>
|
26
|
+
</li>
|
27
|
+
Topbar - Navigation Main - Search -->
|
28
|
+
|
29
|
+
<!-- Topbar - Navigation Main - Notifications Menu
|
30
|
+
<li class="dropdown">
|
31
|
+
<a href="javascript:;" data-toggle="dropdown" class="dropdown-toggle f-s-14">
|
32
|
+
<i class="fa fa-bell"></i>
|
33
|
+
<span class="label">5</span>
|
34
|
+
</a>
|
35
|
+
<ul class="dropdown-menu media-list dropdown-menu-right">
|
36
|
+
<li class="dropdown-header">NOTIFICATIONS (5)</li>
|
37
|
+
<li class="media">
|
38
|
+
<a href="javascript:;">
|
39
|
+
<div class="media-left">
|
40
|
+
<i class="fa fa-bug media-object bg-silver-darker"></i>
|
41
|
+
</div>
|
42
|
+
<div class="media-body">
|
43
|
+
<h6 class="media-heading">
|
44
|
+
Server Error Reports
|
45
|
+
<i class="fa fa-exclamation-circle text-danger"></i>
|
46
|
+
</h6>
|
47
|
+
<div class="text-muted f-s-11">3 minutes ago</div>
|
48
|
+
</div>
|
49
|
+
</a>
|
50
|
+
</li>
|
51
|
+
...
|
52
|
+
<li class="dropdown-footer text-center">
|
53
|
+
<a href="javascript:;">View more</a>
|
54
|
+
</li>
|
55
|
+
</ul>
|
56
|
+
</li>
|
57
|
+
Topbar - Navigation Main - Notifications Menu -->
|
58
|
+
|
59
|
+
<!-- Topbar - Navigation Main - User Menu -->
|
60
|
+
<li class="dropdown navbar-user">
|
61
|
+
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
|
62
|
+
<%= image_tag current_user.gravatar_url %>
|
63
|
+
<span class="d-none d-md-inline"><%= current_user.firstname + ' ' + current_user.lastname %></span> <b class="caret"></b>
|
64
|
+
</a>
|
65
|
+
<div class="dropdown-menu dropdown-menu-right">
|
66
|
+
<%= link_to phcaccounts.edit_user_registration_path, class: "dropdown-item" do %>
|
67
|
+
<i class="fas fa-cogs"></i> Account Settings
|
68
|
+
<% end %>
|
69
|
+
<%= link_to phcaccounts.destroy_user_session_path, method: :delete, class: "dropdown-item" do %>
|
70
|
+
<i class="fas fa-sign-out-alt"></i> Logout
|
71
|
+
<% end %>
|
72
|
+
</div>
|
73
|
+
</li>
|
74
|
+
<!-- Topbar - Navigation Main - User Menu -->
|
75
|
+
|
76
|
+
</ul>
|
77
|
+
<% end %>
|
78
|
+
<!-- Topbar - Navigation Main -->
|
@@ -0,0 +1,154 @@
|
|
1
|
+
<!-- Sidebar for Users and Admin -->
|
2
|
+
<div data-scrollbar="true" data-height="100%">
|
3
|
+
|
4
|
+
<!-- Sidebar - User Profile Menu -->
|
5
|
+
<ul class="nav">
|
6
|
+
<% if current_user %>
|
7
|
+
<li class="nav-profile">
|
8
|
+
<a href="javascript:;" data-toggle="nav-profile">
|
9
|
+
<div class="cover with-shadow"></div>
|
10
|
+
<div class="image">
|
11
|
+
<%= image_tag current_user.gravatar_url %>
|
12
|
+
</div>
|
13
|
+
<div class="info">
|
14
|
+
<b class="caret pull-right"></b>
|
15
|
+
<%= current_user.firstname + ' ' + current_user.lastname %>
|
16
|
+
<small><%= current_user.username %></small>
|
17
|
+
</div>
|
18
|
+
</a>
|
19
|
+
</li>
|
20
|
+
<li>
|
21
|
+
<ul class="nav nav-profile">
|
22
|
+
<li>
|
23
|
+
<%= link_to phcaccounts.edit_user_registration_path do %>
|
24
|
+
<i class="fas fa-cogs"></i> Account Settings
|
25
|
+
<% end %>
|
26
|
+
</li>
|
27
|
+
<li>
|
28
|
+
<%= link_to phcaccounts.destroy_user_session_path do %>
|
29
|
+
<i class="fas fa-sign-out-alt"></i> Logout
|
30
|
+
<% end %>
|
31
|
+
</li>
|
32
|
+
</ul>
|
33
|
+
</li>
|
34
|
+
<% end %>
|
35
|
+
</ul>
|
36
|
+
<!-- Sidebar - User Profile Menu -->
|
37
|
+
<!-- Sidebar - Sidebar Navigation -->
|
38
|
+
<ul class="nav">
|
39
|
+
|
40
|
+
<% if defined?phcpress %>
|
41
|
+
<!-- Sidebar - Sidebar Navigation - PHCPress(Pro) -->
|
42
|
+
<li class="nav-header">Article Management</li>
|
43
|
+
<li class="has-sub">
|
44
|
+
<a href="javascript:;">
|
45
|
+
<b class="caret"></b>
|
46
|
+
<i class="fas fa-newspaper"></i>
|
47
|
+
<span>Article Posts</span>
|
48
|
+
</a>
|
49
|
+
<ul class="sub-menu">
|
50
|
+
<li class="<%= phc_menus_active_controller('phcpress/article/posts') %>"><%= link_to('Article Index', phcpress.article_posts_path) %></li>
|
51
|
+
<li class="<%= phc_menus_active_controller('phcpress/article/posts#new') %>"><%= link_to('New Aritcle', phcpress.new_article_post_path) %></li>
|
52
|
+
</ul>
|
53
|
+
</li>
|
54
|
+
<li class="has-sub">
|
55
|
+
<a href="javascript:;">
|
56
|
+
<b class="caret"></b>
|
57
|
+
<i class="fas fa-sitemap"></i>
|
58
|
+
<span>Article Categories</span>
|
59
|
+
</a>
|
60
|
+
<ul class="sub-menu">
|
61
|
+
<li class="<%= phc_menus_active_controller('phcpress/article/categories') %>"><%= link_to('Category Index', phcpress.article_categories_path) %></li>
|
62
|
+
<li class="<%= phc_menus_active_controller('phcpress/article/categories#new') %>"><%= link_to('New Category', phcpress.new_article_category_path) %></li>
|
63
|
+
</ul>
|
64
|
+
</li>
|
65
|
+
<!-- Sidebar - Sidebar Navigation - PHCPress(Pro) -->
|
66
|
+
<% end %>
|
67
|
+
|
68
|
+
<% if defined?phcmembers %>
|
69
|
+
<!-- Sidebar - Sidebar Navigation - PHCPress(Pro) -->
|
70
|
+
<li class="nav-header">Membership Manager</li>
|
71
|
+
<li class="has-sub">
|
72
|
+
<a href="javascript:;">
|
73
|
+
<b class="caret"></b>
|
74
|
+
<i class="fas fa-users"></i>
|
75
|
+
<span>Member's Data</span>
|
76
|
+
</a>
|
77
|
+
<ul class="sub-menu">
|
78
|
+
<li class="<%= phc_menus_active_controller('phcmembers/member/profiles') %>"><%= link_to('Profile Index', phcmembers.member_profiles_path) %></li>
|
79
|
+
<li class="<%= phc_menus_active_controller('phcmembers/member/profiles#new') %>"><%= link_to('New Member Profile', phcmembers.new_member_profile_path) %></li>
|
80
|
+
</ul>
|
81
|
+
</li>
|
82
|
+
<li class="has-sub">
|
83
|
+
<a href="javascript:;">
|
84
|
+
<b class="caret"></b>
|
85
|
+
<i class="fas fa-list-alt"></i>
|
86
|
+
<span>Member's Directory</span>
|
87
|
+
</a>
|
88
|
+
<ul class="sub-menu">
|
89
|
+
<li class="<%= phc_menus_active_controller('phcmembers/directory/categories') %>"><%= link_to('Directory Index', phcmembers.directory_categories_path) %></li>
|
90
|
+
<li class="<%= phc_menus_active_controller('phcmembers/directory/categories#new') %>"><%= link_to('New Directory Listing', phcmembers.new_directory_category_path) %></li>
|
91
|
+
</ul>
|
92
|
+
</li>
|
93
|
+
<!-- Sidebar - Sidebar Navigation - PHCPress(Pro) -->
|
94
|
+
<% end %>
|
95
|
+
|
96
|
+
<% if defined?phcscriptcdn %>
|
97
|
+
<!-- Sidebar - Sidebar Navigation - PHCScriptCDN(Pro) -->
|
98
|
+
<li class="nav-header">Script Management</li>
|
99
|
+
<li class="has-sub">
|
100
|
+
<a href="javascript:;">
|
101
|
+
<b class="caret"></b>
|
102
|
+
<i class="fas fa-newspaper"></i>
|
103
|
+
<span>Script Posts</span>
|
104
|
+
</a>
|
105
|
+
<ul class="sub-menu">
|
106
|
+
<li class="<%= phc_menus_active_controller('phcscriptcdn/script/listings') %>"><%= link_to "All Script Listings", phcscriptcdn.script_listings_path %></li>
|
107
|
+
<li class="<%= phc_menus_active_controller('phcscriptcdn/script/listings#new') %>"><%= link_to "Add a New Listing", phcscriptcdn.new_script_listing_path %></li>
|
108
|
+
</ul>
|
109
|
+
</li>
|
110
|
+
<li class="has-sub">
|
111
|
+
<a href="javascript:;">
|
112
|
+
<b class="caret"></b>
|
113
|
+
<i class="fas fa-sitemap"></i>
|
114
|
+
<span>Script Extras</span>
|
115
|
+
</a>
|
116
|
+
<ul class="sub-menu">
|
117
|
+
<li class="<%= phc_menus_active_controller('phcscriptcdn/script/authors') %>"><%= link_to "Script Authors", phcscriptcdn.script_authors_path %></li>
|
118
|
+
<li class="<%= phc_menus_active_controller('phcscriptcdn/script/licences') %>"><%= link_to "Script Licences", phcscriptcdn.script_licences_path %></li>
|
119
|
+
<li class="<%= phc_menus_active_controller('phcscriptcdn/script/extensions') %>"><%= link_to "Script Extensions", phcscriptcdn.script_extensions_path %></li>
|
120
|
+
<li class="<%= phc_menus_active_controller('phcscriptcdn/script/versions') %>"><%= link_to "Script Versions", phcscriptcdn.script_versions_path %></li>
|
121
|
+
</ul>
|
122
|
+
</li>
|
123
|
+
<!-- Sidebar - Sidebar Navigation - PHCScriptCDN(Pro) -->
|
124
|
+
<% end %>
|
125
|
+
|
126
|
+
<% if current_user %>
|
127
|
+
<!-- Sidebar - Sidebar Navigation - PHCAccounts -->
|
128
|
+
<li class="nav-header">Account Settings</li>
|
129
|
+
<li class="has-sub">
|
130
|
+
<a href="javascript:;">
|
131
|
+
<b class="caret"></b>
|
132
|
+
<i class="fas fa-user"></i>
|
133
|
+
<span>Accounts Dashboard</span>
|
134
|
+
</a>
|
135
|
+
<ul class="sub-menu">
|
136
|
+
<li class="<%= phc_menus_active_controller('phcaccounts/admin/edit') %>"><%= link_to('Settings', phcaccounts.edit_user_registration_path) %></li>
|
137
|
+
<li class="<%= phc_menus_active_controller('phcaccounts/admin/new') %>"><%= link_to('Logout', phcaccounts.destroy_user_session_path, method: :delete) %></li>
|
138
|
+
</ul>
|
139
|
+
</li>
|
140
|
+
<!-- Sidebar - Sidebar Navigation - PHCAccounts -->
|
141
|
+
<!-- Sidebar - Sidebar Minifier -->
|
142
|
+
<li>
|
143
|
+
<a href="javascript:;" class="sidebar-minify-btn" data-click="sidebar-minify">
|
144
|
+
<i class="fa fa-angle-double-left"></i>
|
145
|
+
</a>
|
146
|
+
</li>
|
147
|
+
<!-- Sidebar - Sidebar Minifier -->
|
148
|
+
<% end %>
|
149
|
+
|
150
|
+
</ul>
|
151
|
+
<!-- Sidebar - Sidebar Navigation -->
|
152
|
+
|
153
|
+
</div>
|
154
|
+
<!-- Sidebar for Users and Admin -->
|