card-mod-layout 0.13.3 → 0.14.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: 67d13f7478101066914e7e33c5147e6364d0d35c3dee7c4e4ee084515a8de833
4
- data.tar.gz: 527f709b26d589df70380b3b00397ed9f8360ecbea9f8cf0da922f3ef79fc90e
3
+ metadata.gz: 3b9347188889d52cf3c4ba629db96046727f6acb83de6c0e219bf258fcf27dda
4
+ data.tar.gz: c87c2b313bb85bbd469c09ebcf32466114c6161e1324f6e6e75b561ab767c5be
5
5
  SHA512:
6
- metadata.gz: 8303c7ef950ab6cbac14ab9afff3bdf003a32e5858d41a514c30a9eb1160d2cd52dd2d886bf7abfc6752ef748c19ec202b23840e9d91f3f158296fccfe2a5357
7
- data.tar.gz: 2a4ff422a3071bd98cb7b569563b1705bfad8e86508550916efa5de84c4887e03282ff2cfec3be586dd45e7a6d9a05f52474e75d533457d69967b38542f1928a
6
+ metadata.gz: 9296c1fc07201cc333b94773c21812328b0449cd9ac9f1fd5c7a583e47d3258cdeea8367dcf33a2d9c857f4de5acb14f4f7ba89d26016f4e4a9c345b6aab243e
7
+ data.tar.gz: bdd62b5a5248520633d021a29a7499597a6c89e61b9c55ca071668f7a92e2c48aed4712090f313d8b4ab4128f517ccf736678ce25ca9826e43fe817c7c2a44cf
data/locales/de.yml ADDED
@@ -0,0 +1,4 @@
1
+ de:
2
+ layout_available_layouts: "Verfügbare Layouts: %{available_layouts}"
3
+ layout_unknown_layout: "Unbekanntes Layout: %{name}"
4
+ legacy_toc: Inhaltsverzeichnis
@@ -1,5 +1,5 @@
1
1
  format :html do
2
2
  view :nav_item do
3
- nav_dropdown
3
+ wrap_with_nav_item nav_dropdown
4
4
  end
5
5
  end
@@ -0,0 +1,9 @@
1
+ include_set Abstract::Items
2
+
3
+ format :html do
4
+ def navbar_items view: :nav_item, **_args
5
+ card.item_cards.map do |item_card|
6
+ nest item_card, view: view
7
+ end
8
+ end
9
+ end
data/set/all/layouts.rb CHANGED
@@ -5,30 +5,44 @@ format :html do
5
5
  wrap_main { interior }
6
6
  end
7
7
 
8
- layout :pre do # {{_main|raw}}
9
- wrap_with :pre do
10
- layout_nest
11
- end
8
+ layout :simple do
9
+ body_tag { layout_nest }
12
10
  end
13
11
 
14
- layout :simple do
15
- layout_nest
12
+ layout :pre do # {{_main|raw}}
13
+ body_tag do
14
+ wrap_with :pre do
15
+ layout_nest
16
+ end
17
+ end
16
18
  end
17
19
 
18
20
  layout :no_side do # {{_main|open}}
19
- <<-HTML.strip_heredoc
20
- <header>#{nest :header, view: :core}</header>
21
- <article>#{layout_nest}</article>
22
- <footer>{nest :footer, view: :core}</footer>
23
- HTML
21
+ body_tag do
22
+ <<-HTML.strip_heredoc
23
+ <header>#{nest :header, view: :core}</header>
24
+ <article>#{layout_nest}</article>
25
+ <footer>{nest :footer, view: :core}</footer>
26
+ HTML
27
+ end
24
28
  end
25
29
 
26
30
  layout :default do
31
+ body_tag do
32
+ <<-HTML.strip_heredoc
33
+ <header>#{nest :header, view: :core}</header>
34
+ <article>#{layout_nest}</article>
35
+ <aside>#{nest :sidebar, view: :core}</aside>
36
+ <footer>{nest :footer, view: :core}</footer>
37
+ HTML
38
+ end
39
+ end
40
+
41
+ def body_tag klasses=""
27
42
  <<-HTML.strip_heredoc
28
- <header>#{nest :header, view: :core}</header>
29
- <article>#{layout_nest}</article>
30
- <aside>#{nest :sidebar, view: :core}</aside>
31
- <footer>{nest :footer, view: :core}</footer>
43
+ <body class="#{klasses}">
44
+ #{yield}
45
+ </body>
32
46
  HTML
33
47
  end
34
48
  end
@@ -4,7 +4,7 @@
4
4
  .modal-content
5
5
  .modal-header.clearfix
6
6
  = title
7
- = menu
7
+ = menu if voo.show? :menu
8
8
  .modal-body
9
9
  = body
10
10
  - if footer.present?
@@ -20,7 +20,7 @@ format :html do
20
20
  end
21
21
  end
22
22
 
23
- # overridden in Abstact::Pointer to render dropdown
23
+ # overridden in Abstract::Items to render dropdown
24
24
  view :nav_item do
25
25
  wrap_with_nav_item link_view(class: "nav-link")
26
26
  end
data/set/all/overlay.rb CHANGED
@@ -95,7 +95,7 @@ format :html do
95
95
  private
96
96
 
97
97
  def overlay_framer slot, header, slot_opts, &block
98
- class_up "card-slot", "_overlay"
98
+ class_up "card-slot", "_overlay", :single_use
99
99
  with_frame slot, header, slot_opts, &block
100
100
  end
101
101
  end
@@ -25,7 +25,7 @@ end
25
25
 
26
26
  event :clear_roles_cache, :prepare_to_store, before: :store_in_session do
27
27
  clear_roles
28
- Auth.update_always_cache Auth.as_id, nil
28
+ Auth.update_always_cache nil
29
29
  end
30
30
 
31
31
  format :html do
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.13.3
4
+ version: 0.14.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-09-24 00:00:00.000000000 Z
13
+ date: 2022-01-08 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.103.3
21
+ version: 1.104.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.103.3
28
+ version: 1.104.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.13.3
35
+ version: 0.14.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.13.3
42
+ version: 0.14.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.13.3
49
+ version: 0.14.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.13.3
56
+ version: 0.14.2
57
57
  description: ''
58
58
  email:
59
59
  - info@decko.org
@@ -66,9 +66,11 @@ files:
66
66
  - lib/card/layout/code_layout.rb
67
67
  - lib/card/layout/proc_layout.rb
68
68
  - lib/card/layout/unknown_layout.rb
69
+ - locales/de.yml
69
70
  - locales/en.yml
70
71
  - set/abstract/account_dropdown.rb
71
- - set/abstract/pointer/html_views.rb
72
+ - set/abstract/items.rb
73
+ - set/abstract/pointer.rb
72
74
  - set/all/alert.rb
73
75
  - set/all/layouts.rb
74
76
  - set/all/modal.rb
@@ -116,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
118
  - !ruby/object:Gem::Version
117
119
  version: '0'
118
120
  requirements: []
119
- rubygems_version: 3.1.6
121
+ rubygems_version: 3.2.15
120
122
  signing_key:
121
123
  specification_version: 4
122
124
  summary: decko layouts