slash_admin 1.5.9 → 1.5.10

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: 88010a73a59d851d79e9ec5a1642fa6f6a8df7beb1ef864a7e0d7017f7ed4e64
4
- data.tar.gz: 14d9b2012626a34b1be33a0a646524c317d7304543776af7cfa5b772d6d37cee
3
+ metadata.gz: 3e44e1ffffa251040a29d6c0475dc7bbdb6f8f10a37f964fcbcdb73a4c72c02a
4
+ data.tar.gz: 6179d302e57eea112b621656361cb863ce813fed1bc8f1f1e58cd2caea9c3d86
5
5
  SHA512:
6
- metadata.gz: 96c9018cc4f83b7c718fe96fc04675efeac895fd5dbd9703334ecfc664e81d4563eb190b1fd7d8a5e7dfca6b1e3bb76b03d66d5c51aab58a0aa31b23fa62f3f2
7
- data.tar.gz: ab0ecfd5f77bee251f34a93aed0eb709310b705659457c330c485dd001a8db5dad615ec24d1e40ad97b2acee071f037df7e68de091c76107679200a1f49f5938
6
+ metadata.gz: 2eaf5a8185b3fc853a0159c853be6bc5ba301fb6272401d305cc47623189211df42ff3e4b3026fb76cbc19311687e3feb4d034694a1a46cb7ae866114d78b45b
7
+ data.tar.gz: 2737b58165c8b74999c6d96faa5b83d55edad399388ada8b671759c3b5de3526d57c923ff87293b1130c7c71238311e90e26bb5dd64a21d94281cd73ed413919
@@ -1499,3 +1499,7 @@ p[data-f-id="pbf"] {
1499
1499
  display: flex;
1500
1500
  align-items: center;
1501
1501
  }
1502
+
1503
+ .menu-divider-below {
1504
+ border-bottom: #e3e9fc 1px solid;
1505
+ }
@@ -22,11 +22,11 @@
22
22
  <div class="sub-menu">
23
23
  <table class="table-sm">
24
24
  <tbody>
25
- <% s[:sub_menu].each do |sub| %>
25
+ <% s[:sub_menu].each_with_index do |sub, idx| %>
26
26
  <% if sub[:path].present? %>
27
- <tr class="clickable-row <%= request.fullpath == sub[:path] ? 'active' : '' %>"
28
- data-href="<%= sub[:path] %>"
29
- data-blank="<%= s[:blank].present? ? 'true' : 'false' %>">
27
+ <tr class="clickable-row <%= request.fullpath == sub[:path] ? 'active' : '' %> <%= s.dig(:sub_menu, idx + 1, :layout) == 'divider' ? 'menu-divider-below' : '' %>"
28
+ data-href="<%= sub[:path] %>"
29
+ data-blank="<%= s[:blank].present? ? 'true' : 'false' %>">
30
30
  <td>
31
31
  <a href="<%= sub[:path] %>" class="<%= request.fullpath == sub[:path] ? 'active' : '' %>" target="<%= s[:blank].present? ? '_blank' : '_self' %>">
32
32
  <% if sub[:icon] %>
@@ -41,8 +41,8 @@
41
41
  </td>
42
42
  </tr>
43
43
  <% else %>
44
- <% if access_model?(sub) %>
45
- <tr class="clickable-row <%= controller.controller_name == sub[:model].name.split('::').last.tableize ? 'active' : '' %>"
44
+ <% if access_model?(sub) && sub[:layout].blank? %>
45
+ <tr class="clickable-row <%= controller.controller_name == sub[:model].name.split('::').last.tableize ? 'active' : '' %> <%= s.dig(:sub_menu, idx + 1, :layout) == 'divider' ? 'menu-divider-below' : '' %>"
46
46
  data-href="<%= polymorphic_url([:slash_admin, sub[:model]]) %>"
47
47
  data-blank="<%= s[:blank].present? ? 'true' : 'false' %>">
48
48
  <td>
@@ -1,3 +1,3 @@
1
1
  module SlashAdmin
2
- VERSION = "1.5.9"
2
+ VERSION = "1.5.10"
3
3
  end
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.9
4
+ version: 1.5.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - KOVACS Nicolas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-13 00:00:00.000000000 Z
11
+ date: 2021-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails