lesli 5.1.6 → 5.1.8
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 +4 -4
- data/app/helpers/lesli/html_helper.rb +6 -2
- data/app/views/lesli/layouts/application-lesli.html.erb +1 -0
- data/app/views/lesli/partials/_application-lesli-head.html.erb +9 -19
- data/app/views/lesli/partials/_application-lesli-turbo.html.erb +41 -0
- data/lib/lesli/version.rb +2 -2
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 30ffdeb6ee40bc732b261033e788707185261094e5b4a57980b547af782e8a6a
|
|
4
|
+
data.tar.gz: ade2417c6a3f8ee2ab7eb2a4588900b9258b97189c91ece2e371c36bbc6ac54f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e6f41c34eaac31db53c9203e0981bdbe1590a3ca50a54e882abb2990a1288072f61ede2a653deac537daeec908dc0eba9d7c508543ab5e471bad53fc3dc8f58c
|
|
7
|
+
data.tar.gz: 712b75ff2a16d3bdb84d1e37060ed1f013951ed1f9f522a43d800300d0e5b6213bba32a000f22bec5e5bd4b0c922ad59c9ddca42e35d8f3ac0a9f5ea27568475
|
|
@@ -46,8 +46,12 @@ module Lesli
|
|
|
46
46
|
# build the text for the html document title
|
|
47
47
|
# this helper works only for rails pages, for vue apps the title must be handled with JS
|
|
48
48
|
def lesli_website_title
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
|
|
50
|
+
# Use instance variable if set,
|
|
51
|
+
return @application_html_title if @application_html_title.present?
|
|
52
|
+
|
|
53
|
+
# otherwise construct a dynamic title
|
|
54
|
+
title = controller_path.delete_prefix("lesli_")
|
|
51
55
|
|
|
52
56
|
# Append action name unless it's "index"
|
|
53
57
|
title += "/#{action_name}" unless action_name == "index"
|
|
@@ -35,6 +35,7 @@ Building a better future, one line of code at a time.
|
|
|
35
35
|
<head>
|
|
36
36
|
<%= render(partial: "lesli/partials/application-lesli-head") %>
|
|
37
37
|
<%= render(partial: "lesli/partials/application-lesli-data") %>
|
|
38
|
+
<%= render(partial: "lesli/partials/application-lesli-turbo") %>
|
|
38
39
|
<%= render(partial: "lesli/partials/application-lesli-assets") %>
|
|
39
40
|
<%= render(partial: "lesli/partials/application-lesli-analytics") %>
|
|
40
41
|
<% if content_for?(:head) %>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Lesli
|
|
4
4
|
|
|
5
|
-
Copyright (c)
|
|
5
|
+
Copyright (c) 2026, Lesli Technologies, S. A.
|
|
6
6
|
|
|
7
7
|
This program is free software: you can redistribute it and/or modify
|
|
8
8
|
it under the terms of the GNU General Public License as published by
|
|
@@ -30,38 +30,28 @@ Building a better future, one line of code at a time.
|
|
|
30
30
|
// ·
|
|
31
31
|
%>
|
|
32
32
|
|
|
33
|
+
|
|
33
34
|
<%# the charset attribute specifies the character encoding for the HTML document. %>
|
|
34
35
|
<meta charset="utf-8">
|
|
35
36
|
|
|
36
37
|
|
|
37
|
-
<%# this gives the browser instructions on how to control the page's dimensions and scaling. %>
|
|
38
|
-
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport">
|
|
39
|
-
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
|
40
|
-
|
|
41
|
-
|
|
42
38
|
<%# defines the title of the document. %>
|
|
43
39
|
<title><%= lesli_website_title %></title>
|
|
44
40
|
|
|
45
41
|
|
|
46
|
-
<%#
|
|
47
|
-
<%=
|
|
48
|
-
<%= lesli_favicon %>
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
<%# enable turbo %>
|
|
52
|
-
<meta name="turbo-prefetch" content="false">
|
|
53
|
-
<meta name="view-transition" content="same-origin" />
|
|
54
|
-
|
|
42
|
+
<%# provide a short description of the page %>
|
|
43
|
+
<meta name="description" content="<%= lesli_website_meta_description %>">
|
|
55
44
|
|
|
56
|
-
<%# Load custom head tags %>
|
|
57
|
-
<%= yield :head %>
|
|
58
45
|
|
|
46
|
+
<%= lesli_favicon %>
|
|
59
47
|
|
|
60
48
|
|
|
49
|
+
<%# this gives the browser instructions on how to control the page's dimensions and scaling. %>
|
|
50
|
+
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport">
|
|
51
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
|
61
52
|
|
|
62
|
-
<%# provide a short description of the page %>
|
|
63
|
-
<meta name="description" content="<%#= website_meta_description %>">
|
|
64
53
|
|
|
54
|
+
<%# Promote the iOS app when using the browser to use the app %>
|
|
65
55
|
<% appstore_app_id = Rails.application.credentials.dig(:providers, :apple, :app_id) %>
|
|
66
56
|
<% if appstore_app_id %>
|
|
67
57
|
<meta name="apple-itunes-app" content="app-id=<%= appstore_app_id %>">
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<%#
|
|
2
|
+
|
|
3
|
+
Lesli
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2026, Lesli Technologies, S. A.
|
|
6
|
+
|
|
7
|
+
This program is free software: you can redistribute it and/or modify
|
|
8
|
+
it under the terms of the GNU General Public License as published by
|
|
9
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
10
|
+
(at your option) any later version.
|
|
11
|
+
|
|
12
|
+
This program is distributed in the hope that it will be useful,
|
|
13
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
+
GNU General Public License for more details.
|
|
16
|
+
|
|
17
|
+
You should have received a copy of the GNU General Public License
|
|
18
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
|
19
|
+
|
|
20
|
+
Lesli · Ruby on Rails SaaS Development Framework.
|
|
21
|
+
|
|
22
|
+
Made with ♥ by LesliTech
|
|
23
|
+
Building a better future, one line of code at a time.
|
|
24
|
+
|
|
25
|
+
@contact hello@lesli.tech
|
|
26
|
+
@website https://www.lesli.tech
|
|
27
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
|
28
|
+
|
|
29
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
30
|
+
// ·
|
|
31
|
+
%>
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
<%# rails standard meta tags %>
|
|
35
|
+
<%= csrf_meta_tags %>
|
|
36
|
+
<%= lesli_favicon %>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<%# enable turbo %>
|
|
40
|
+
<meta name="turbo-prefetch" content="false">
|
|
41
|
+
<meta name="view-transition" content="same-origin" />
|
data/lib/lesli/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lesli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.1.
|
|
4
|
+
version: 5.1.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- The Lesli Development Team
|
|
@@ -223,6 +223,7 @@ files:
|
|
|
223
223
|
- app/views/lesli/partials/_application-lesli-navigation.html.erb
|
|
224
224
|
- app/views/lesli/partials/_application-lesli-notifications.html.erb
|
|
225
225
|
- app/views/lesli/partials/_application-lesli-sidebar.html.erb
|
|
226
|
+
- app/views/lesli/partials/_application-lesli-turbo.html.erb
|
|
226
227
|
- app/views/lesli/partials/turbo/_redirection.html.erb
|
|
227
228
|
- app/views/lesli/shared/dashboards/edit.html.erb
|
|
228
229
|
- app/views/lesli/shared/dashboards/show.html.erb
|