phcdevworks_accounts_auth0 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/phcdevworks_accounts_auth0/user/pages_controller.rb +7 -0
- data/app/views/layouts/phcdevworks_accounts_auth0/components/backend/navigation/_top_menu.html.erb +2 -2
- data/app/views/layouts/phcdevworks_accounts_auth0/components/backend/sidebars/_side_menu.html.erb +12 -5
- data/app/views/phcdevworks_accounts_auth0/user/pages/profile.html.erb +4 -0
- data/lib/phcdevworks_accounts_auth0/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4400f2eba0013fb52149afa0a94fa243708b81912938f894947fae253699f21b
|
4
|
+
data.tar.gz: e0979a967b38b0b05a09a34104ff0d0031f1db8576387fa8dbb5754f65b025cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb9e29924d41d0ec5da1495673a6038ecf81a3e142375d192796c783427ea52130ffc21404e14ecf80954d914c35041df0c03ebed9a2161f55c6e931b5eb95ac
|
7
|
+
data.tar.gz: f22a8220cc123cdb6185d96258363fd172df6286568c03615873372615bb3cdd7c633b36c90c6307c0c83b071d3b307a796d2426e3dd60c35badf2f4fef07f1d
|
data/app/views/layouts/phcdevworks_accounts_auth0/components/backend/navigation/_top_menu.html.erb
CHANGED
@@ -19,9 +19,9 @@
|
|
19
19
|
<div class="navbar-nav">
|
20
20
|
<div class="navbar-item navbar-user dropdown">
|
21
21
|
<a href="#" class="navbar-link dropdown-toggle d-flex align-items-center" data-bs-toggle="dropdown">
|
22
|
-
<%= image_tag current_user
|
22
|
+
<%= image_tag current_user['picture'] %>
|
23
23
|
<span>
|
24
|
-
<span class="d-none d-md-inline"><%= current_user
|
24
|
+
<span class="d-none d-md-inline"><%= current_user['name'] %></span>
|
25
25
|
<b class="caret"></b>
|
26
26
|
</span>
|
27
27
|
</a>
|
data/app/views/layouts/phcdevworks_accounts_auth0/components/backend/sidebars/_side_menu.html.erb
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
<%= image_tag current_user.gravatar_url %>
|
13
13
|
<% end %>
|
14
14
|
<% if defined?phcdevworks_accounts_auth0 %>
|
15
|
-
|
15
|
+
<%= image_tag current_user['picture'] %>
|
16
16
|
<% end %>
|
17
17
|
</div>
|
18
18
|
<div class="menu-profile-info">
|
@@ -22,12 +22,19 @@
|
|
22
22
|
<%= current_user.firstname + " " + current_user.lastname %>
|
23
23
|
<% end %>
|
24
24
|
<% if defined?phcdevworks_accounts_auth0 %>
|
25
|
-
<%= current_user
|
25
|
+
<%= current_user['name'] %>
|
26
26
|
<% end %>
|
27
27
|
</div>
|
28
28
|
<div class="menu-caret ms-auto"></div>
|
29
29
|
</div>
|
30
|
-
<small
|
30
|
+
<small>
|
31
|
+
<% if defined?phcdevworks_accounts_devise %>
|
32
|
+
<%= current_user.username %>
|
33
|
+
<% end %>
|
34
|
+
<% if defined?phcdevworks_accounts_auth0 %>
|
35
|
+
<%= current_user['nickname'] %>
|
36
|
+
<% end %>
|
37
|
+
</small>
|
31
38
|
</div>
|
32
39
|
</a>
|
33
40
|
<% end %>
|
@@ -843,7 +850,7 @@
|
|
843
850
|
|
844
851
|
<!-- -PHCDEV- Page Container - Sidebar - Navigation - PHCDevworks Accounts -->
|
845
852
|
|
846
|
-
<% if defined?phcdevworks_accounts_stripe and current_user.admin? %>
|
853
|
+
<% if defined?phcdevworks_accounts_stripe and defined?phcdevworks_accounts_devise and current_user.admin? %>
|
847
854
|
<div class="menu-header">Subscription Administration</div>
|
848
855
|
<div class="menu-item has-sub">
|
849
856
|
<a href="javascript:;" class="menu-link">
|
@@ -899,7 +906,7 @@
|
|
899
906
|
</div>
|
900
907
|
</div>
|
901
908
|
<% end %>
|
902
|
-
<% if current_user and current_user.admin? %>
|
909
|
+
<% if defined?phcdevworks_accounts_devise and current_user and current_user.admin? %>
|
903
910
|
<div class="menu-header">Login Administration</div>
|
904
911
|
<div class="menu-item has-sub">
|
905
912
|
<a href="javascript:;" class="menu-link">
|