settings_hub 0.1.2 → 0.2.1

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: daa83396377db6f5d5bc91f65be66c1761ba5a57c3ffd736537a8c6aa627915f
4
- data.tar.gz: af02a1aa765abeab20cc7b08a64355df1f47137340656ab38eea5a0d88ddae57
3
+ metadata.gz: 4cdaa1d2d6aa79608b203c8ddba7d7a953001612183cdf3ac7dc0707b001e3f0
4
+ data.tar.gz: 1bac79af1dc74b9aa72d9c35251160e6054b5024b8c4cda263db0fa42342af07
5
5
  SHA512:
6
- metadata.gz: 7886ab860630677791f357ac94f44694b3ac5d304f679bdaedb276a42aae4036625fb6aa8d67a1a6876bbf28dd117fdf013bfcf9245a3b524acba266a3a10291
7
- data.tar.gz: c963cfc57c5d8017fdb6f4b2c6dbe2c498f87060d1d2b12aa2ed189d9c6d855df7d2c61cb4b34833c2f1436b2f436c2da393d0c7bf5fe1a4f39a11af7cf52ee9
6
+ metadata.gz: c432e80f08050d6643e8692c328694c9db72afee1a83bb8367900daf02b00a0d6cb1289ff6067520541b24508b28b3c97891043b56c53f6e519d4448215fed5a
7
+ data.tar.gz: 159d62444621d266615a0ce5281fb63dc68673636d444b6c3aad647cb312dbe948f42ac1c387de1b019a4dd4d5031f0259b489e52249f14eeec5e25bb1b3b5dc
@@ -1,20 +1,36 @@
1
+ <%= ui_show_page(title: @section.title, back_url: settings_path) if @section %>
2
+
1
3
  <%= ui_page(max_width: :xl) do %>
2
- <%= ui_page_header(title: "Settings") %>
4
+ <%= tag.div(class: class_names("hidden lg:block": @section)) do %>
5
+ <%= ui_page_header(title: "Settings") %>
6
+ <% end %>
3
7
 
4
- <%= ui_grid(cols: { default: 1, lg: 2 }, gap: :lg) do %>
5
- <%= ui_section do %>
8
+ <% unless @section %>
9
+ <div class="lg:hidden">
6
10
  <% @areas.each do |area, sections| %>
7
- <section aria-label="<%= area.to_s.titleize %>">
8
- <%= ui_section(title: area.to_s.titleize) do %>
9
- <%= ui_panel do %>
10
- <nav aria-label="Settings" data-turbo-prefetch="false">
11
- <% sections.each do |section| %>
12
- <%= link_to section.title, section.at || section_path(section.key), "aria-current": ("page" if section == @section) %>
13
- <% end %>
14
- </nav>
11
+ <%= ui_section(title: area.to_s.titleize) do %>
12
+ <%= ui_link_list(rows: sections.map { |section| { label: section.title, href: section.at || section_path(section.key) } }) %>
13
+ <% end %>
14
+ <% end %>
15
+ </div>
16
+ <% end %>
17
+
18
+ <%= ui_grid(cols: { default: 1, lg: 2 }, gap: :lg) do %>
19
+ <%= tag.div(class: "hidden lg:block") do %>
20
+ <%= ui_section do %>
21
+ <% @areas.each do |area, sections| %>
22
+ <section aria-label="<%= area.to_s.titleize %>">
23
+ <%= ui_section(title: area.to_s.titleize) do %>
24
+ <%= ui_panel do %>
25
+ <nav aria-label="Settings" data-turbo-prefetch="false">
26
+ <% sections.each do |section| %>
27
+ <%= link_to section.title, section.at || section_path(section.key), "aria-current": ("page" if section == @section) %>
28
+ <% end %>
29
+ </nav>
30
+ <% end %>
15
31
  <% end %>
16
- <% end %>
17
- </section>
32
+ </section>
33
+ <% end %>
18
34
  <% end %>
19
35
  <% end %>
20
36
 
@@ -1,3 +1,3 @@
1
1
  module SettingsHub
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: settings_hub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - tylercschneider