lesli_view 1.0.4 → 1.0.5
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: de7eac0bd16e4eda1dbede8b87d94da52ef1a7ce347e21209439c4ed1fa0f9cd
|
4
|
+
data.tar.gz: 49c092160dc7afc53055c0714da228bb21e3c26a850d10a84692dbb75f27bb03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c78c9d4b9af4e8f09ac6a75a87bbeffe2f67d3de395fde77d9d86d42a99797c7a8999d7737538e33063c37d380f2b002be6271c762bd357f496029dae60ca7a
|
7
|
+
data.tar.gz: 9e5e847eb795565b8a1a309a6150b6b811deff56d0f1b4c85403799c36a2563d0fd72d44d1b56e08d524ff5a06fd353b3684a0df4c5b081b7bc411a0ef2029a0
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<section class="lesli-element-header is-flex">
|
2
|
-
<div class="lesli-element-header-title
|
2
|
+
<div class="lesli-element-header-title">
|
3
3
|
<% if back %>
|
4
4
|
<%= link_to(
|
5
5
|
back || request.referer || root_path,
|
@@ -9,8 +9,9 @@
|
|
9
9
|
<% end %>
|
10
10
|
<% end %>
|
11
11
|
<% if title.present? %>
|
12
|
-
<h1 class="subtitle is-size-3"><%= title %></h1>
|
12
|
+
<h1 class="subtitle is-size-3 mb-1"><%= title %></h1>
|
13
13
|
<% end %>
|
14
|
+
<p><%= subtitle %> </p>
|
14
15
|
</div>
|
15
16
|
<div class="lesli-element-header-items is-flex is-flex-grow-1 is-justify-content-end">
|
16
17
|
<% if new_path %>
|
@@ -35,10 +35,11 @@ Building a better future, one line of code at a time.
|
|
35
35
|
module LesliView
|
36
36
|
module Components
|
37
37
|
class Header < ViewComponent::Base
|
38
|
-
attr_reader :title, :back, :new_path
|
38
|
+
attr_reader :title, :subtitle, :back, :new_path
|
39
39
|
|
40
|
-
def initialize(title, new_path:nil, back:nil)
|
40
|
+
def initialize(title, subtitle="", new_path:nil, back:nil)
|
41
41
|
@title = title
|
42
|
+
@subtitle = subtitle
|
42
43
|
@back = back
|
43
44
|
@new_path = new_path
|
44
45
|
end
|
@@ -2,6 +2,6 @@
|
|
2
2
|
<!-- app/components/lesli_application_container_component.html.erb -->
|
3
3
|
<turbo-frame
|
4
4
|
id="<%= turbo_frame_id %>"
|
5
|
-
class="lesli-application-container container <%= 'is-fluid' if dashboard %>
|
5
|
+
class="lesli-application-container container <%= 'is-fluid' if dashboard %>">
|
6
6
|
<%= content %>
|
7
7
|
</turbo-frame>
|
data/lib/lesli_view/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lesli_view
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Lesli Development Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-08-
|
11
|
+
date: 2025-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: view_component
|