phcpress 42.0.0 → 43.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/MIT-LICENSE +1 -1
- data/README.md +2 -14
- data/Rakefile +3 -0
- data/app/assets/javascripts/phcpress/application.js +2 -2
- data/app/assets/stylesheets/phcpress/application.scss +2 -2
- data/app/controllers/phcpress/article/posts_controller.rb +2 -1
- data/app/models/phcpress/article/post.rb +1 -1
- data/app/views/layouts/phcpress/application.html.erb +79 -54
- data/app/views/layouts/phcpress/components/backend/footer/_footer.html.erb +1 -0
- data/app/views/layouts/phcpress/components/backend/navigation/_top_menu.html.erb +143 -0
- data/app/views/layouts/phcpress/components/backend/sidebars/_side_menu.html.erb +116 -0
- data/app/views/phcpress/article/posts/_form.html.erb +67 -62
- data/app/views/phcpress/article/posts/edit.html.erb +24 -23
- data/app/views/phcpress/article/posts/index.html.erb +39 -63
- data/app/views/phcpress/article/posts/new.html.erb +5 -25
- data/app/views/phcpress/article/posts/show.html.erb +39 -28
- data/app/views/phcpress/modules/categories/_form.html.erb +6 -9
- data/app/views/phcpress/modules/categories/edit.html.erb +15 -30
- data/app/views/phcpress/modules/categories/index.html.erb +32 -58
- data/app/views/phcpress/modules/categories/new.html.erb +14 -31
- data/app/views/phcpress/modules/categories/show.html.erb +13 -31
- data/config/routes.rb +6 -0
- data/db/migrate/20160716182936_create_phcpress_modules_categories.rb +16 -0
- data/db/migrate/20160718204718_create_phcpress_article_posts.rb +19 -0
- data/db/migrate/20160719221205_create_phcpress_modules_connections.rb +17 -0
- data/db/migrate/20170509002355_create_phcpress_friendly_id_slugs.rb +18 -0
- data/lib/phcpress.rb +1 -0
- data/lib/phcpress/engine.rb +61 -59
- data/lib/phcpress/version.rb +1 -1
- metadata +93 -63
- data/app/views/layouts/components/backend/footer/_footer.html.erb +0 -4
- data/app/views/layouts/components/backend/navigation/_navigation.html.erb +0 -48
- data/app/views/layouts/components/backend/topbar/_topbar.html.erb +0 -5
- data/app/views/layouts/components/backend/topbar/_topbar_links.html.erb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4e27e2d3bfe593a1986f4139357f7f706b80b346
|
4
|
+
data.tar.gz: d495ca81db538f9950568978ac0b97e71fca8602
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0be005057e4f57c0aa2192c4871475ba77f28c6efe55c46ec4b0565b1241b47ccedfe12e58a86aeff4e5f1f9d5bc4409318714f6786620a6ef45f63c5fe0ccc
|
7
|
+
data.tar.gz: 611abc26afb89d561513ff9d0db0c198246f2c27b06dc3d56e7774d22d82a83bc82a30fb70df9829247497d4efa0286438926eb1213c118973056a0b3d767ce8
|
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,3 @@
|
|
1
|
-
[![security](https://hakiri.io/github/PHCNetworks/phc-press/master.svg)](https://hakiri.io/github/PHCNetworks/phc-press/master)
|
2
|
-
[![Code Climate](https://codeclimate.com/github/PHCNetworks/phc-press/badges/gpa.svg)](https://codeclimate.com/github/PHCNetworks/phc-press)
|
3
|
-
[![Gem Version](https://badge.fury.io/rb/phcpress.svg)](https://badge.fury.io/rb/phcpress)
|
4
|
-
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/PHCNetworks/phc-press/blob/master/MIT-LICENSE)
|
5
|
-
|
6
1
|
### PHCPress (News/Blog Engine) Documentation
|
7
2
|
PHCPress rails CMS engine to manage your website's articles, categories and media.
|
8
3
|
|
@@ -12,7 +7,7 @@ PHCPress rails CMS engine to manage your website's articles, categories and medi
|
|
12
7
|
|
13
8
|
#### Step 1 - Add PHCPress to your gemfile and run command
|
14
9
|
|
15
|
-
gem 'phcpress'
|
10
|
+
gem 'phcpress'
|
16
11
|
bundle install
|
17
12
|
|
18
13
|
#### Step 2 - Copy PHCPress Database Tables
|
@@ -35,11 +30,4 @@ To properly function re-compile your application's assets to copy over required
|
|
35
30
|
#### Step 5 - Generate Contact Form View (Customization)
|
36
31
|
All PHCPress views and layouts can be overwritten by copying files to your application.
|
37
32
|
|
38
|
-
rails generate phcpress:views
|
39
|
-
|
40
|
-
#### How to Setup Image Uploads
|
41
|
-
PHCPress default Carrierwave settings can be overwritten.
|
42
|
-
|
43
|
-
- [How to Override PHCPress Uploader](https://github.com/PHCNetworks/phc-press/wiki/Image-Uploader---Override)
|
44
|
-
- [How to Override Cloudinary Uploader](https://github.com/PHCNetworks/phc-press/wiki/Image-Uploader-(Cloudinary))
|
45
|
-
- [Critical Security Updates](https://github.com/PHCNetworks/phc-press/wiki/Critical-Security-Updates)
|
33
|
+
rails generate phcpress:views
|
data/Rakefile
CHANGED
@@ -5,6 +5,7 @@ rescue LoadError
|
|
5
5
|
end
|
6
6
|
|
7
7
|
require 'rdoc/task'
|
8
|
+
|
8
9
|
RDoc::Task.new(:rdoc) do |rdoc|
|
9
10
|
rdoc.rdoc_dir = 'rdoc'
|
10
11
|
rdoc.title = 'Phcpress'
|
@@ -15,5 +16,7 @@ end
|
|
15
16
|
|
16
17
|
APP_RAKEFILE = File.expand_path("spec/test_app/Rakefile", __dir__)
|
17
18
|
load 'rails/tasks/engine.rake'
|
19
|
+
|
18
20
|
load 'rails/tasks/statistics.rake'
|
21
|
+
|
19
22
|
require 'bundler/gem_tasks'
|
@@ -1,2 +1,2 @@
|
|
1
|
-
// Load
|
2
|
-
//= require
|
1
|
+
// Load Admin Theme
|
2
|
+
//= require phc_admin_theme_scripts_four
|
@@ -1,2 +1,2 @@
|
|
1
|
-
// Load
|
2
|
-
@import "
|
1
|
+
// Load Admin Theme
|
2
|
+
@import "phc_admin_theme_styles_four";
|
@@ -3,7 +3,8 @@ require_dependency "phcpress/application_controller"
|
|
3
3
|
module Phcpress
|
4
4
|
class Article::PostsController < ApplicationController
|
5
5
|
|
6
|
-
#
|
6
|
+
# Security & Action Filters
|
7
|
+
before_action :authenticate_user!
|
7
8
|
before_action :set_article_post, only: [:show, :edit, :update, :destroy]
|
8
9
|
|
9
10
|
# Article Index
|
@@ -1,57 +1,82 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html>
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
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
|
-
|
3
|
+
<head>
|
4
|
+
|
5
|
+
<% phc_seo_title "PHCPress" %>
|
6
|
+
<% phc_seo_description "Content Management Engine for Ruby on Rails" %>
|
7
|
+
|
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) %>">
|
11
|
+
|
12
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
|
13
|
+
<link rel="canonical" href="http://phcpress.com">
|
14
|
+
|
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 "phcpress/application", media: "all", 'data-turbolinks-track': 'reload' %>
|
20
|
+
|
21
|
+
<!-- Security -->
|
22
|
+
<%= csrf_meta_tags %>
|
23
|
+
|
24
|
+
</head>
|
25
|
+
<body>
|
26
|
+
|
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/phcpress/components/backend/navigation/top_menu' %>
|
32
|
+
</div>
|
33
|
+
<!-- Page Header -->
|
34
|
+
|
35
|
+
<!-- Page Sidebar -->
|
36
|
+
<div id="sidebar" class="sidebar">
|
37
|
+
<%= render 'layouts/phcpress/components/backend/sidebars/side_menu' %>
|
38
|
+
</div>
|
39
|
+
<div class="sidebar-bg"></div>
|
40
|
+
<!-- Page Sidebar -->
|
41
|
+
|
42
|
+
<!-- Page Content -->
|
43
|
+
<div id="content" class="content">
|
44
|
+
<%= yield %>
|
45
|
+
</div>
|
46
|
+
<!-- Page Content -->
|
47
|
+
|
48
|
+
<!-- Footer Content -->
|
49
|
+
<div id="footer" class="footer">
|
50
|
+
<%= render 'layouts/phcpress/components/backend/footer/footer' %>
|
51
|
+
</div>
|
52
|
+
<!-- Footer Content -->
|
53
|
+
|
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 -->
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<!-- Page Container -->
|
62
|
+
|
63
|
+
<!-- Requried JavaScripts -->
|
64
|
+
<%= javascript_include_tag "phcpress/application", 'data-turbolinks-track': 'reload' %>
|
65
|
+
|
66
|
+
<!-- WTF Slowing Down my Site. Nothing Nice to Say. Keep Bad Comments to Myself -->
|
67
|
+
<!--[if lt IE 9]>
|
68
|
+
<script src="https://frmwrks.phcnetworks.net/coloradmin/version-latest/admin/template/assets/crossbrowserjs/html5shiv.js"></script>
|
69
|
+
<script src="https://frmwrks.phcnetworks.net/coloradmin/version-latest/admin/template/assets/crossbrowserjs/respond.min.js"></script>
|
70
|
+
<script src="https://frmwrks.phcnetworks.net/coloradmin/version-latest/admin/template/assets/crossbrowserjs/excanvas.min.js"></script>
|
71
|
+
<![endif]-->
|
72
|
+
<!-- WTF Slowing Down my Site. Nothing Nice to Say. Keep Bad Comments to Myself -->
|
73
|
+
|
74
|
+
<script>
|
75
|
+
$(document).ready(function() {
|
76
|
+
App.init();
|
77
|
+
});
|
78
|
+
</script>
|
79
|
+
<!-- Requried JavaScripts -->
|
80
|
+
|
81
|
+
</body>
|
57
82
|
</html>
|
@@ -0,0 +1 @@
|
|
1
|
+
<span class="float-left">© 2012-<%= Time.now.year %> - <strong>PHC</strong>Press Engine v<%= Gem.loaded_specs["phcpress"].version.to_s %></span> <span class="float-right">Developed with <i class="fas fa-heart hanna_hearts"></i> by <strong>PHC</strong>Networks</span>
|
@@ -0,0 +1,143 @@
|
|
1
|
+
<!-- Topbar - Navigation -->
|
2
|
+
<!-- Topbar - Navigation Header -->
|
3
|
+
<div class="navbar-header">
|
4
|
+
<%= link_to phcpress.root_path, class: "navbar-brand" do %>
|
5
|
+
<!--<span class="navbar-logo"></span>-->
|
6
|
+
<strong>PHC</strong>Press
|
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 phcaccounts.edit_user_registration_path, class: "dropdown-item" do %>
|
69
|
+
<i class="fas fa-cogs"></i> Account Settings
|
70
|
+
<% end %>
|
71
|
+
<%= link_to phcaccounts.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 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 -->
|
@@ -0,0 +1,116 @@
|
|
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 phcaccounts.edit_user_registration_path do %>
|
23
|
+
<i class="fas fa-cogs"></i> Account Settings
|
24
|
+
<% end %>
|
25
|
+
</li>
|
26
|
+
<li>
|
27
|
+
<%= link_to phcaccounts.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
|
+
<li class="nav-header">Accounts</li>
|
38
|
+
<li class="has-sub">
|
39
|
+
<a href="javascript:;">
|
40
|
+
<b class="caret"></b>
|
41
|
+
<i class="fa fa-th-large"></i>
|
42
|
+
<span>Accounts Dashboard</span>
|
43
|
+
</a>
|
44
|
+
<ul class="sub-menu">
|
45
|
+
<li><%= link_to('Settings', phcaccounts.edit_user_registration_path) %></li>
|
46
|
+
<li><%= link_to('Logout', phcaccounts.destroy_user_session_path, method: :delete) %></li>
|
47
|
+
</ul>
|
48
|
+
</li>
|
49
|
+
<!-- Sidebar - Sidebar Minifier -->
|
50
|
+
<li>
|
51
|
+
<a href="javascript:;" class="sidebar-minify-btn" data-click="sidebar-minify">
|
52
|
+
<i class="fa fa-angle-double-left"></i>
|
53
|
+
</a>
|
54
|
+
</li>
|
55
|
+
<!-- Sidebar - Sidebar Minifier -->
|
56
|
+
</ul>
|
57
|
+
<!-- Sidebar - Sidebar Navigation -->
|
58
|
+
<% end %>
|
59
|
+
<% if current_admin %>
|
60
|
+
<!-- Sidebar - User Profile Menu -->
|
61
|
+
<ul class="nav">
|
62
|
+
<li class="nav-profile">
|
63
|
+
<a href="javascript:;" data-toggle="nav-profile">
|
64
|
+
<div class="cover with-shadow"></div>
|
65
|
+
<div class="image">
|
66
|
+
<%= image_tag current_admin.gravatar_url %>
|
67
|
+
</div>
|
68
|
+
<div class="info">
|
69
|
+
<b class="caret pull-right"></b>
|
70
|
+
<%= current_admin.firstname + ' ' + current_admin.lastname %>
|
71
|
+
<small><%= current_admin.username %></small>
|
72
|
+
</div>
|
73
|
+
</a>
|
74
|
+
</li>
|
75
|
+
<li>
|
76
|
+
<ul class="nav nav-profile">
|
77
|
+
<li>
|
78
|
+
<%= link_to phcaccounts.edit_admin_registration_path do %>
|
79
|
+
<i class="fas fa-cogs"></i> Account Settings
|
80
|
+
<% end %>
|
81
|
+
</li>
|
82
|
+
<li>
|
83
|
+
<%= link_to phcaccounts.destroy_admin_session_path do %>
|
84
|
+
<i class="fas fa-sign-out-alt"></i> Logout
|
85
|
+
<% end %>
|
86
|
+
</li>
|
87
|
+
</ul>
|
88
|
+
</li>
|
89
|
+
</ul>
|
90
|
+
<!-- Sidebar - User Profile Menu -->
|
91
|
+
<!-- Sidebar - Sidebar Navigation -->
|
92
|
+
<ul class="nav">
|
93
|
+
<li class="nav-header">Accounts Menu</li>
|
94
|
+
<li class="has-sub">
|
95
|
+
<a href="javascript:;">
|
96
|
+
<b class="caret"></b>
|
97
|
+
<i class="fa fa-th-large"></i>
|
98
|
+
<span>Accounts Dashboard</span>
|
99
|
+
</a>
|
100
|
+
<ul class="sub-menu">
|
101
|
+
<li><%= link_to('Settings', phcaccountspro.edit_admin_registration_path) %></li>
|
102
|
+
<li><%= link_to('Logout', phcaccountspro.destroy_admin_session_path, method: :delete) %></li>
|
103
|
+
</ul>
|
104
|
+
</li>
|
105
|
+
<!-- Sidebar - Sidebar Minifier -->
|
106
|
+
<li>
|
107
|
+
<a href="javascript:;" class="sidebar-minify-btn" data-click="sidebar-minify">
|
108
|
+
<i class="fa fa-angle-double-left"></i>
|
109
|
+
</a>
|
110
|
+
</li>
|
111
|
+
<!-- Sidebar - Sidebar Minifier -->
|
112
|
+
</ul>
|
113
|
+
<!-- Sidebar - Sidebar Navigation -->
|
114
|
+
<% end %>
|
115
|
+
</div>
|
116
|
+
<!-- Sidebar -->
|