card-mod-layout 0.11.1 → 0.11.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa83c07aba3ec5dc875611ea7ce99b33033c58f937b740bad50fe2dba9ba826a
4
- data.tar.gz: 11ca342c1425eac53a1e44754211e198b626ae2264eb52ec1bcfe46b814e2bec
3
+ metadata.gz: a4f8bee4588b5b82610fc77cd6f6649806169bd492bafad3164a626b4d443e41
4
+ data.tar.gz: 306fe76d6d25ceb7379bdec8a3773d24cc0f3d6f2204c6b0a366f03cc8620291
5
5
  SHA512:
6
- metadata.gz: adc2613890ca19ce3e458d94d6c5447edbf1a2a3b9f7067aadf5e894c9bed1ef40696d90ba91ad28c7a69895787d9d687c6753a1c5a149c27d28618eee87a7f7
7
- data.tar.gz: a55ebc3dd9fab60901a4aea849051eb82e151aa7babac9bdea904ce24c00ac3444f7de424cc5858da00079c54c6b2e91a236c59943ecc20bed2e23b76045756f
6
+ metadata.gz: fa1752d2bcec2f88058c7af2b5c91bb614e636dc0ff2658fe899302b3538692753579a33e0eb30fad6eb4ef02db3841566df29f8fde42c1eda089c0fa45921cf
7
+ data.tar.gz: ad4a39de93feff90538471d8b8f01e8e0d3bac2dff248b6a9d1bb1386b18ab9ad50f2b429fe0f7755d18ea9e2fc526812853a1a312c63ee99dea62c55134e30f
@@ -1,18 +1,17 @@
1
1
  class Card
2
2
  class Layout
3
3
  class UnknownLayout < Layout
4
- SCOPE = "mod.core.format.html_format".freeze
5
-
6
4
  def render
7
5
  @format.output [header, text]
8
6
  end
9
7
 
10
8
  def header
11
- @format.content_tag(:h1, @format.tr(:unknown_layout, scope: SCOPE, name: @layout))
9
+ @format.content_tag :h1, @format.tr(:unknown_layout,
10
+ scope: "card-mod-format", name: @layout)
12
11
  end
13
12
 
14
13
  def text
15
- @format.tr(:available_layouts, scope: SCOPE,
14
+ @format.tr(:available_layouts, scope: "card-mod-format",
16
15
  available_layouts: self.class.built_in_layouts)
17
16
  end
18
17
  end
@@ -16,7 +16,7 @@ format :html do
16
16
  # removed invite for now
17
17
  links =
18
18
  %i[my_card sign_out sign_up sign_in].map do |link_view|
19
- render(link_view)
19
+ render link_view
20
20
  end.compact
21
21
 
22
22
  links.map do |link|
@@ -58,8 +58,8 @@ format :html do
58
58
  end
59
59
 
60
60
  def interactive_roles_dropdown
61
- nest(enabled_roles_card,
62
- view: :edit_inline, hide: %i[edit_inline_buttons name_formgroup])
61
+ nest enabled_roles_card,
62
+ view: :edit_inline, hide: %i[edit_inline_buttons name_formgroup]
63
63
  end
64
64
 
65
65
  def simple_roles_dropdown
@@ -80,8 +80,7 @@ format :html do
80
80
  end
81
81
 
82
82
  def account_link_text purpose
83
- voo.title ||
84
- I18n.t(purpose, scope: "mod.card-mod-account.set.self.account_links")
83
+ voo.title || tr(purpose, scope: "card-mod-account")
85
84
  end
86
85
 
87
86
  def nav_link_class type
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card-mod-layout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-03-02 00:00:00.000000000 Z
13
+ date: 2021-03-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: card
@@ -18,42 +18,42 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.101.1
21
+ version: 1.101.2
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 1.101.1
28
+ version: 1.101.2
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: card-mod-account
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.11.1
35
+ version: 0.11.2
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.11.1
42
+ version: 0.11.2
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: card-mod-session
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 0.11.1
49
+ version: 0.11.2
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - '='
55
55
  - !ruby/object:Gem::Version
56
- version: 0.11.1
56
+ version: 0.11.2
57
57
  description: ''
58
58
  email:
59
59
  - info@decko.org
@@ -90,10 +90,15 @@ files:
90
90
  - set/self/sidebar.rb
91
91
  - set/type/html.rb
92
92
  - set/type/layout_type.rb
93
- homepage: http://decko.org
93
+ homepage: https://decko.org
94
94
  licenses:
95
95
  - GPL-3.0
96
96
  metadata:
97
+ source_code_uri: https://github.com/decko-commons/decko
98
+ homepage_uri: https://decko.org
99
+ bug_tracker_uri: https://github.com/decko-commons/decko/issues
100
+ wiki_uri: https://decko.org
101
+ documentation_url: http://docs.decko.org/
97
102
  card-mod: layout
98
103
  post_install_message:
99
104
  rdoc_options: []