lesli 5.1.7 → 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
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,17 @@ Building a better future, one line of code at a time.
|
|
|
35
35
|
<meta charset="utf-8">
|
|
36
36
|
|
|
37
37
|
|
|
38
|
+
<%# defines the title of the document. %>
|
|
39
|
+
<title><%= lesli_website_title %></title>
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
<%# provide a short description of the page %>
|
|
43
|
+
<meta name="description" content="<%= lesli_website_meta_description %>">
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<%= lesli_favicon %>
|
|
47
|
+
|
|
48
|
+
|
|
38
49
|
<%# this gives the browser instructions on how to control the page's dimensions and scaling. %>
|
|
39
50
|
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport">
|
|
40
51
|
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
|
@@ -31,14 +31,6 @@ Building a better future, one line of code at a time.
|
|
|
31
31
|
%>
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
<%# defines the title of the document. %>
|
|
35
|
-
<title><%= lesli_website_title %></title>
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
<%# provide a short description of the page %>
|
|
39
|
-
<meta name="description" content="<%#= website_meta_description %>">
|
|
40
|
-
|
|
41
|
-
|
|
42
34
|
<%# rails standard meta tags %>
|
|
43
35
|
<%= csrf_meta_tags %>
|
|
44
36
|
<%= lesli_favicon %>
|
data/lib/lesli/version.rb
CHANGED