settings_hub 0.2.0 → 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: e34e19840a9d304ce449cbb4a8c2e1006a4ca82e36a3bbad4e94cc5f40f4bcc4
4
- data.tar.gz: b5b90d4f96e13fb27d54a3940273d0c24686dca33e6b4f4d6ff2e4137f5b6988
3
+ metadata.gz: 4cdaa1d2d6aa79608b203c8ddba7d7a953001612183cdf3ac7dc0707b001e3f0
4
+ data.tar.gz: 1bac79af1dc74b9aa72d9c35251160e6054b5024b8c4cda263db0fa42342af07
5
5
  SHA512:
6
- metadata.gz: d1655307c906df9f7e47460cb46869180f7ce36d8e5a86fa2c1215df543c89efdfced9481d5a33f43149eda988226d5c9c4db55e68057021181297c0d3772ccf
7
- data.tar.gz: ab8f2dc3aaf1efff4dd9286b8d0d64bf010cd53f092cf16189fffd78556956af2ed9ca1e77c4d67c7a2d25fdd24df541d6a0a52ebc587a0de518603235265ef7
6
+ metadata.gz: c432e80f08050d6643e8692c328694c9db72afee1a83bb8367900daf02b00a0d6cb1289ff6067520541b24508b28b3c97891043b56c53f6e519d4448215fed5a
7
+ data.tar.gz: 159d62444621d266615a0ce5281fb63dc68673636d444b6c3aad647cb312dbe948f42ac1c387de1b019a4dd4d5031f0259b489e52249f14eeec5e25bb1b3b5dc
@@ -1,7 +1,4 @@
1
1
  module SettingsHub
2
2
  module ApplicationHelper
3
- def settings_in_native_app?
4
- request.user_agent.to_s.include?("Hotwire Native")
5
- end
6
3
  end
7
4
  end
@@ -1,11 +1,11 @@
1
+ <%= ui_show_page(title: @section.title, back_url: settings_path) if @section %>
2
+
1
3
  <%= ui_page(max_width: :xl) do %>
2
4
  <%= tag.div(class: class_names("hidden lg:block": @section)) do %>
3
5
  <%= ui_page_header(title: "Settings") %>
4
6
  <% end %>
5
7
 
6
- <% if @section %>
7
- <%= ui_mobile_header(title: @section.title, back_url: settings_path) unless settings_in_native_app? %>
8
- <% else %>
8
+ <% unless @section %>
9
9
  <div class="lg:hidden">
10
10
  <% @areas.each do |area, sections| %>
11
11
  <%= ui_section(title: area.to_s.titleize) do %>
@@ -1,3 +1,3 @@
1
1
  module SettingsHub
2
- VERSION = "0.2.0"
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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - tylercschneider