slash_admin 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dd6fca0261e85e32892848c0fc3b5ea84e76c839c410a6e0f37d05474cc41b1a
|
|
4
|
+
data.tar.gz: ee1e603f3e4acb9e0ea876f1aba28495ae7686eae58ea7be36dadb95ef68b644
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 79d797a173c872decb0062ba27623a110870ecf13039953f0c37d7cdad0dedcbe32a3d4b4028ce802e563c7023e25e9bee086f6b4774cd255de095e6a8f26f54
|
|
7
|
+
data.tar.gz: 2df908377331a6a5ed064c6b4a38784bad47d6f07b30d9cb0c7743ffd41918f30b345d53bedeac6db8acf35dd7233511dac88c3699ec0d76860b7177b625d368
|
|
@@ -10,8 +10,12 @@
|
|
|
10
10
|
<div class="navbar-nav mr-auto mt-2 mt-lg-0">
|
|
11
11
|
</div>
|
|
12
12
|
<ul class="nav right-nav-fix">
|
|
13
|
-
<li class="nav-item">
|
|
14
|
-
|
|
13
|
+
<li class="nav-item <%= can?(:update, current_admin) ? 'dropdown' : '' %>">
|
|
14
|
+
<% if can?(:update, current_admin) %>
|
|
15
|
+
<a class= "nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown">
|
|
16
|
+
<% else %>
|
|
17
|
+
<a class="nav-link">
|
|
18
|
+
<% end %>
|
|
15
19
|
<% if current_admin.avatar.present? %>
|
|
16
20
|
<img src="<%= current_admin.avatar.url %>" class="rounded-circle"/>
|
|
17
21
|
<% else %>
|
|
@@ -19,6 +23,13 @@
|
|
|
19
23
|
<% end %>
|
|
20
24
|
<span class=""><%= current_admin.login %></span>
|
|
21
25
|
</a>
|
|
26
|
+
<% if can?(:update, current_admin) %>
|
|
27
|
+
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
|
28
|
+
<a href="<%= edit_slash_admin_admin_path current_admin %>" class="dropdown-item">
|
|
29
|
+
<i class="fas fa-user-circle"></i> <%= t('slash_admin.view.edit_account') %>
|
|
30
|
+
</a>
|
|
31
|
+
</div>
|
|
32
|
+
<% end %>
|
|
22
33
|
</li>
|
|
23
34
|
|
|
24
35
|
<li class="nav-item">
|
data/config/locales/en.yml
CHANGED
data/config/locales/fr.yml
CHANGED
data/lib/slash_admin/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: slash_admin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.5.
|
|
4
|
+
version: 1.5.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- KOVACS Nicolas
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-08-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -456,7 +456,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
456
456
|
- !ruby/object:Gem::Version
|
|
457
457
|
version: '0'
|
|
458
458
|
requirements: []
|
|
459
|
-
rubygems_version: 3.1.
|
|
459
|
+
rubygems_version: 3.1.4
|
|
460
460
|
signing_key:
|
|
461
461
|
specification_version: 4
|
|
462
462
|
summary: A modern and overridable admin gem, just the rails way.
|