phcmembers 61.0.0 → 61.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +2 -2
- data/app/assets/javascripts/phcmembers/application.js +1 -1
- data/app/assets/stylesheets/phcmembers/application.scss +1 -1
- data/app/controllers/phcmembers/api/v1/categories_controller.rb +15 -0
- data/app/controllers/phcmembers/api/v1/listings_controller.rb +16 -0
- data/app/controllers/phcmembers/application_controller.rb +18 -16
- data/app/controllers/phcmembers/directory/categories_controller.rb +14 -13
- data/app/controllers/phcmembers/member/addresses_controller.rb +21 -21
- data/app/controllers/phcmembers/member/dashboards_controller.rb +17 -0
- data/app/controllers/phcmembers/member/listings_controller.rb +17 -18
- data/app/controllers/phcmembers/member/profiles_controller.rb +15 -16
- data/app/helpers/phcmembers/application_helper.rb +2 -12
- data/app/jobs/phcmembers/application_job.rb +2 -2
- data/app/mailers/phcmembers/application_mailer.rb +4 -6
- data/app/models/phcmembers/application_record.rb +3 -3
- data/app/models/phcmembers/category_versions.rb +3 -3
- data/app/models/phcmembers/directory.rb +5 -5
- data/app/models/phcmembers/directory/category.rb +3 -6
- data/app/models/phcmembers/listing_versions.rb +3 -3
- data/app/models/phcmembers/member/address.rb +28 -28
- data/app/models/phcmembers/member/listing.rb +48 -49
- data/app/models/phcmembers/member/profile.rb +36 -36
- data/app/models/phcmembers/profile_versions.rb +3 -3
- data/app/views/layouts/phcmembers/application.html.erb +16 -18
- data/app/views/layouts/phcmembers/application_full_width.html.erb +80 -82
- data/app/views/layouts/phcmembers/components/backend/footer/_footer.html.erb +1 -1
- data/app/views/layouts/phcmembers/components/backend/navigation/_top_menu.html.erb +79 -143
- data/app/views/layouts/phcmembers/components/backend/sidebars/_side_menu.html.erb +154 -116
- data/app/views/layouts/phcmembers/components/frontend/footer/_footer.html.erb +14 -0
- data/app/views/layouts/phcmembers/components/frontend/footer/_footer_copyright.html.erb +19 -0
- data/app/views/layouts/phcmembers/components/frontend/header/_slideout.html.erb +24 -0
- data/app/views/layouts/phcmembers/components/frontend/header/_topbar.html.erb +17 -0
- data/app/views/layouts/phcmembers/components/frontend/navigation/_navigation.html.erb +27 -0
- data/app/views/layouts/phcmembers/components/frontend/pages/_titlebars.html.erb +14 -0
- data/app/views/layouts/phcmembers/components/frontend/seo/_seo_main.html.erb +5 -0
- data/app/views/layouts/phcmembers/mailer.html.erb +12 -0
- data/app/views/layouts/phcmembers/mailer.text.erb +1 -0
- data/app/views/phcmembers/api/v1/categories/index.json.rabl +2 -0
- data/app/views/phcmembers/api/v1/listings/index.json.rabl +2 -0
- data/app/views/phcmembers/directory/categories/_form.html.erb +12 -6
- data/app/views/phcmembers/directory/categories/components/_category_audits.html.erb +24 -10
- data/app/views/phcmembers/directory/categories/components/_category_list.html.erb +15 -7
- data/app/views/phcmembers/directory/categories/components/_category_main.html.erb +26 -20
- data/app/views/phcmembers/directory/categories/components/_category_sidebar.html.erb +16 -0
- data/app/views/phcmembers/directory/categories/edit.html.erb +25 -28
- data/app/views/phcmembers/directory/categories/index.html.erb +33 -38
- data/app/views/phcmembers/directory/categories/new.html.erb +25 -28
- data/app/views/phcmembers/directory/categories/show.html.erb +24 -17
- data/app/views/phcmembers/member/addresses/_form.html.erb +1 -1
- data/app/views/phcmembers/member/addresses/edit.html.erb +15 -3
- data/app/views/phcmembers/member/addresses/index.html.erb +16 -3
- data/app/views/phcmembers/member/addresses/new.html.erb +14 -2
- data/app/views/phcmembers/member/addresses/show.html.erb +14 -2
- data/app/views/phcmembers/member/dashboards/index.html.erb +62 -0
- data/app/views/phcmembers/member/listings/_form.html.erb +25 -25
- data/app/views/phcmembers/member/listings/edit.html.erb +14 -2
- data/app/views/phcmembers/member/listings/index.html.erb +16 -3
- data/app/views/phcmembers/member/listings/new.html.erb +14 -2
- data/app/views/phcmembers/member/listings/show.html.erb +15 -3
- data/app/views/phcmembers/member/profiles/components/_profile_header.html.erb +29 -29
- data/app/views/phcmembers/member/profiles/edit.html.erb +15 -2
- data/app/views/phcmembers/member/profiles/index.html.erb +12 -1
- data/app/views/phcmembers/member/profiles/new.html.erb +15 -2
- data/app/views/phcmembers/member/profiles/show.html.erb +1 -1
- data/config/routes.rb +12 -15
- data/db/migrate/20160728231036_create_phcmembers_member_profiles.rb +5 -2
- data/lib/phcmembers/engine.rb +67 -61
- data/lib/phcmembers/version.rb +1 -1
- metadata +101 -113
- data/app/controllers/phcmembers/api/directories_controller.rb +0 -18
- data/app/controllers/phcmembers/directory/categorylistings_controller.rb +0 -30
- data/app/controllers/phcmembers/modules/dashboards_controller.rb +0 -17
- data/app/models/phcmembers/category_listing_versions.rb +0 -5
- data/app/models/phcmembers/connections.rb +0 -7
- data/app/models/phcmembers/directory/categorylisting.rb +0 -12
- data/app/views/layouts/phcmembers/directory/directory_all.html.erb +0 -56
- data/app/views/layouts/phcmembers/members/members_all.html.erb +0 -56
- data/app/views/phcmembers/directory/categorylistings/components/_category_listing_audits.html.erb +0 -11
- data/app/views/phcmembers/directory/categorylistings/components/_category_listing_list.html.erb +0 -7
- data/app/views/phcmembers/directory/categorylistings/components/_category_listing_main.html.erb +0 -22
- data/app/views/phcmembers/directory/categorylistings/index.html.erb +0 -62
- data/app/views/phcmembers/directory/categorylistings/show.html.erb +0 -25
- data/app/views/phcmembers/modules/dashboards/index.html.erb +0 -66
@@ -1,82 +1,80 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
|
5
|
-
<% phc_seo_title "
|
6
|
-
<% phc_seo_description "
|
7
|
-
|
8
|
-
|
9
|
-
<
|
10
|
-
<
|
11
|
-
|
12
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
|
13
|
-
<link rel="canonical" href="http://phcmembers.com">
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
<!--
|
22
|
-
<%=
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
<!--
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
<!-- Page Sidebar -->
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
<!--
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
</body>
|
82
|
-
</html>
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
|
5
|
+
<% phc_seo_title "PHCMembers(Pro) DMS" %>
|
6
|
+
<% phc_seo_description "Membership & Directory Management System by PHCDevworks" %>
|
7
|
+
|
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 'phcmembers/application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
23
|
+
<!-- -PHC- CSS -->
|
24
|
+
|
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 -->
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
|
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/phcmembers/components/backend/navigation/top_menu' %>
|
37
|
+
</div>
|
38
|
+
<!-- Page Header -->
|
39
|
+
|
40
|
+
<!-- Page Sidebar -->
|
41
|
+
<div id="sidebar" class="sidebar">
|
42
|
+
<%= render 'layouts/phcmembers/components/backend/sidebars/side_menu' %>
|
43
|
+
</div>
|
44
|
+
<div class="sidebar-bg"></div>
|
45
|
+
<!-- Page Sidebar -->
|
46
|
+
|
47
|
+
<!-- Page Content -->
|
48
|
+
<div id="content" class="content content-full-width">
|
49
|
+
<%= yield %>
|
50
|
+
</div>
|
51
|
+
<!-- Page Content -->
|
52
|
+
|
53
|
+
<!-- Footer Content -->
|
54
|
+
<div id="footer" class="footer">
|
55
|
+
<%= render 'layouts/phcmembers/components/backend/footer/footer' %>
|
56
|
+
</div>
|
57
|
+
<!-- Footer Content -->
|
58
|
+
|
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 -->
|
64
|
+
|
65
|
+
</div>
|
66
|
+
<!-- Page Container -->
|
67
|
+
|
68
|
+
<!-- Requried JavaScripts -->
|
69
|
+
<%= javascript_include_tag "phcmembers/application", 'data-turbolinks-track': 'reload' %>
|
70
|
+
<script src="https://cdn.ckeditor.com/4.10.0/full/ckeditor.js"></script>
|
71
|
+
|
72
|
+
<script>
|
73
|
+
$(document).ready(function() {
|
74
|
+
App.init();
|
75
|
+
});
|
76
|
+
</script>
|
77
|
+
<!-- Requried JavaScripts -->
|
78
|
+
|
79
|
+
</body>
|
80
|
+
</html>
|
@@ -1 +1 @@
|
|
1
|
-
<span class="float-left">© 2012-<%= Time.now.year %> - <strong>
|
1
|
+
<span class="float-left">© 2012-<%= Time.now.year %> - PHC<strong>Members</strong> Engine v<%= Gem.loaded_specs["phcmembers"].version.to_s %></span> <span class="float-right">Developed with <i class="fas fa-heart hanna_hearts"></i> by PHC<strong>Devworks</strong></span>
|
@@ -1,143 +1,79 @@
|
|
1
|
-
<!-- Topbar - Navigation -->
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
<span class="icon-bar"></span>
|
10
|
-
<span class="icon-bar"></span>
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
<
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
<
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
<li class="
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
</
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
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 phcaccounts.edit_admin_registration_path, class: "dropdown-item" do %>
|
132
|
-
<i class="fas fa-cogs"></i> Account Settings
|
133
|
-
<% end %>
|
134
|
-
<%= link_to phcaccounts.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 -->
|
1
|
+
<!-- Topbar - Navigation Header -->
|
2
|
+
<div class="navbar-header">
|
3
|
+
<%= link_to phcmembers.member_profiles_path, class: "navbar-brand" do %>
|
4
|
+
<!--<span class="navbar-logo"></span>-->
|
5
|
+
PHC<strong>Members</strong>
|
6
|
+
<% end %>
|
7
|
+
<button type="button" class="navbar-toggle" data-click="sidebar-toggled">
|
8
|
+
<span class="icon-bar"></span>
|
9
|
+
<span class="icon-bar"></span>
|
10
|
+
<span class="icon-bar"></span>
|
11
|
+
</button>
|
12
|
+
</div>
|
13
|
+
<!-- Topbar - Navigation Header -->
|
14
|
+
|
15
|
+
<!-- Topbar - Navigation Main -->
|
16
|
+
<% if current_user %>
|
17
|
+
<ul class="navbar-nav navbar-right">
|
18
|
+
|
19
|
+
<!-- Topbar - Navigation Main - Search
|
20
|
+
<li>
|
21
|
+
<form class="navbar-form">
|
22
|
+
<div class="form-group">
|
23
|
+
<input type="text" class="form-control" placeholder="Enter keyword" />
|
24
|
+
<button type="submit" class="btn btn-search"><i class="fa fa-search"></i></button>
|
25
|
+
</div>
|
26
|
+
</form>
|
27
|
+
</li>
|
28
|
+
Topbar - Navigation Main - Search -->
|
29
|
+
|
30
|
+
<!-- Topbar - Navigation Main - Notifications Menu
|
31
|
+
<li class="dropdown">
|
32
|
+
<a href="javascript:;" data-toggle="dropdown" class="dropdown-toggle f-s-14">
|
33
|
+
<i class="fa fa-bell"></i>
|
34
|
+
<span class="label">5</span>
|
35
|
+
</a>
|
36
|
+
<ul class="dropdown-menu media-list dropdown-menu-right">
|
37
|
+
<li class="dropdown-header">NOTIFICATIONS (5)</li>
|
38
|
+
<li class="media">
|
39
|
+
<a href="javascript:;">
|
40
|
+
<div class="media-left">
|
41
|
+
<i class="fa fa-bug media-object bg-silver-darker"></i>
|
42
|
+
</div>
|
43
|
+
<div class="media-body">
|
44
|
+
<h6 class="media-heading">
|
45
|
+
Server Error Reports
|
46
|
+
<i class="fa fa-exclamation-circle text-danger"></i>
|
47
|
+
</h6>
|
48
|
+
<div class="text-muted f-s-11">3 minutes ago</div>
|
49
|
+
</div>
|
50
|
+
</a>
|
51
|
+
</li>
|
52
|
+
...
|
53
|
+
<li class="dropdown-footer text-center">
|
54
|
+
<a href="javascript:;">View more</a>
|
55
|
+
</li>
|
56
|
+
</ul>
|
57
|
+
</li>
|
58
|
+
Topbar - Navigation Main - Notifications Menu -->
|
59
|
+
|
60
|
+
<!-- Topbar - Navigation Main - User Menu -->
|
61
|
+
<li class="dropdown navbar-user">
|
62
|
+
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
|
63
|
+
<%= image_tag current_user.gravatar_url %>
|
64
|
+
<span class="d-none d-md-inline"><%= current_user.firstname + ' ' + current_user.lastname %></span> <b class="caret"></b>
|
65
|
+
</a>
|
66
|
+
<div class="dropdown-menu dropdown-menu-right">
|
67
|
+
<%= link_to phcaccounts.edit_user_registration_path, class: "dropdown-item" do %>
|
68
|
+
<i class="fas fa-cogs"></i> Account Settings
|
69
|
+
<% end %>
|
70
|
+
<%= link_to phcaccounts.destroy_user_session_path, method: :delete, class: "dropdown-item" do %>
|
71
|
+
<i class="fas fa-sign-out-alt"></i> Logout
|
72
|
+
<% end %>
|
73
|
+
</div>
|
74
|
+
</li>
|
75
|
+
<!-- Topbar - Navigation Main - User Menu -->
|
76
|
+
|
77
|
+
</ul>
|
78
|
+
<% end %>
|
79
|
+
<!-- Topbar - Navigation Main -->
|
@@ -1,116 +1,154 @@
|
|
1
|
-
<!-- Sidebar -->
|
2
|
-
<div data-scrollbar="true" data-height="100%">
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
<div class="
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
<
|
45
|
-
<
|
46
|
-
<
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
</
|
87
|
-
</
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
<
|
101
|
-
<
|
102
|
-
<
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
</
|
116
|
-
|
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 -->
|