vipassana-design-standards 1.1.1 → 1.1.2
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/lib/vipassana/design_standards_helper.rb +14 -3
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9efe7fb0bb36c40183e3195d312d4a6f2963d07809c2b9b1039d728ad583891
|
4
|
+
data.tar.gz: cc1f3641827bc11d6abe85998de4e3ebe96916afe9d180771c090017937413c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19908c6f79df2c7bf3c8b8168039da321aeeae8b33619365ebdb6645a2948807b7bb8ca26b11d6f63a63328ffcd3fb07da17cd2c178f92b3a88fb57a2ac19905
|
7
|
+
data.tar.gz: '064527383c6d4f5c47b8d7dd37a60ef7134037a16c6ee5f05e760463d269fdfb5c27c959b7f0da58a5b07afe61a31819efaf413baaa0dd9658bfb178bd1276ba'
|
@@ -54,9 +54,19 @@ module Vipassana
|
|
54
54
|
javascript_include_tag vds_asset_url("js/bootstrap5-theme.min.js", localhost)
|
55
55
|
end
|
56
56
|
|
57
|
-
def vds_logo(locale: I18n.locale, disposition: "default", size: '17', tagline: true, dark: false)
|
57
|
+
def vds_logo(locale: I18n.locale, disposition: "default", size: '17', tagline: true, dark: false, use_english: true)
|
58
58
|
locale = fix_locale(locale)
|
59
|
-
|
59
|
+
english_trans = VDS_TRANSLATIONS[:en]
|
60
|
+
trans = VDS_TRANSLATIONS[locale.to_sym] || english_trans
|
61
|
+
full_text = trans[:full] || "#{trans[:vipassana_meditation]} #{trans[:as_taught]} #{trans[:in_the_tradition]}"
|
62
|
+
|
63
|
+
title = nil
|
64
|
+
# Recommendation from trademark team : display logo in english, we can add translation on mouse hover
|
65
|
+
if use_english && locale.to_sym != :en
|
66
|
+
locale = :en
|
67
|
+
trans = english_trans
|
68
|
+
title = full_text
|
69
|
+
end
|
60
70
|
|
61
71
|
if disposition == "mobile"
|
62
72
|
disposition = "left-two-lines"
|
@@ -70,8 +80,9 @@ module Vipassana
|
|
70
80
|
data-tagline="#{tagline}"
|
71
81
|
data-dark-mode="#{dark}"
|
72
82
|
data-reverse="#{trans[:reverse]}"
|
83
|
+
title="#{title}"
|
73
84
|
style="font-size: #{size}px">
|
74
|
-
<img class="logo-wheel" src="https://design-standards.dhamma.org/dist/dhamma-wheel.svg" />
|
85
|
+
<img class="logo-wheel" src="https://design-standards.dhamma.org/dist/dhamma-wheel.svg" alt="#{full_text}" />
|
75
86
|
<div class="logo-text">
|
76
87
|
<h1 class="logo-title">
|
77
88
|
<span data-start-with="#{trans[:vipassana_meditation].at(0).downcase}">
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vipassana-design-standards
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dhamma workers
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Provide a custom bootstrap theme, logos and icons according to the design
|
14
14
|
standards of Vipassana Meditation as Taught yb S.N. Goenka
|
@@ -26,7 +26,7 @@ files:
|
|
26
26
|
homepage: https://design-standards.dhamma.org
|
27
27
|
licenses: []
|
28
28
|
metadata: {}
|
29
|
-
post_install_message:
|
29
|
+
post_install_message:
|
30
30
|
rdoc_options: []
|
31
31
|
require_paths:
|
32
32
|
- lib
|
@@ -41,8 +41,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '0'
|
43
43
|
requirements: []
|
44
|
-
rubygems_version: 3.
|
45
|
-
signing_key:
|
44
|
+
rubygems_version: 3.3.15
|
45
|
+
signing_key:
|
46
46
|
specification_version: 4
|
47
47
|
summary: Helper to include UI components in your pages
|
48
48
|
test_files: []
|