card-mod-format 0.15.3 → 0.15.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/style/menu.scss +8 -2
- data/set/all/html/menu.rb +10 -10
- data/set/all/html/views.rb +0 -21
- data/set/type/cardtype.rb +2 -2
- 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: eed42f44802b87d1d1480b1df0357bacec75e195d15dd5653a93f9e85a9a0697
|
4
|
+
data.tar.gz: 109e7c1919c5d63afc90a6fcc6f033886a1a426e8197a7e36e9a416e4b575d70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35988d1034e41115e64ee6194b245a12dd2c9a53b95ffba28d0689b38106c3549ed47f8cba9e4e85acef5e4f3a37298bc9317e6a0b7ab97bdb71637439d69b30
|
7
|
+
data.tar.gz: af7b23c9f30543178abc7f9228a6786a3c6863e428b9bd90656371c1187fa0b12f4869118f8501f033f08727771c4e4cb7660e00bee83590ca39f82284b9285a
|
data/assets/style/menu.scss
CHANGED
data/set/all/html/menu.rb
CHANGED
@@ -6,7 +6,7 @@ format :html do
|
|
6
6
|
wrap_with :div, class: "card-menu #{menu_link_classes}" do
|
7
7
|
[render_help_link,
|
8
8
|
menu_link,
|
9
|
-
(voo.show?(:
|
9
|
+
(voo.show?(:board_link) ? board_link(in_modal: false) : nil)]
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
@@ -15,7 +15,7 @@ format :html do
|
|
15
15
|
when :inline
|
16
16
|
edit_inline_link
|
17
17
|
when :full
|
18
|
-
|
18
|
+
edit_in_board_link
|
19
19
|
else # :standard
|
20
20
|
edit_link
|
21
21
|
end
|
@@ -49,15 +49,15 @@ format :html do
|
|
49
49
|
full_page_link
|
50
50
|
end
|
51
51
|
|
52
|
-
view :
|
53
|
-
|
52
|
+
view :board_link, unknown: true do
|
53
|
+
board_link
|
54
54
|
end
|
55
55
|
|
56
|
-
def
|
57
|
-
opts = { class: "
|
56
|
+
def board_link text: "", in_modal: true, confirm: false
|
57
|
+
opts = { class: "board-link" }
|
58
58
|
opts["data-slotter-mode"] = "modal-replace" if in_modal
|
59
59
|
confirm_edit_loss opts if confirm
|
60
|
-
link_to_view :
|
60
|
+
link_to_view :board, "#{board_icon} #{text}", opts
|
61
61
|
end
|
62
62
|
|
63
63
|
# no caching because help_text view doesn't cache, and we can't have a
|
@@ -106,8 +106,8 @@ format :html do
|
|
106
106
|
card
|
107
107
|
end
|
108
108
|
|
109
|
-
def
|
110
|
-
edit_link :
|
109
|
+
def edit_in_board_link opts={}
|
110
|
+
edit_link :board, *opts
|
111
111
|
end
|
112
112
|
|
113
113
|
def edit_link view=:edit, link_text: nil, text: "", modal: nil
|
@@ -141,7 +141,7 @@ format :html do
|
|
141
141
|
icon_tag :modal
|
142
142
|
end
|
143
143
|
|
144
|
-
def
|
144
|
+
def board_icon
|
145
145
|
icon_tag :board
|
146
146
|
end
|
147
147
|
|
data/set/all/html/views.rb
CHANGED
@@ -81,27 +81,6 @@ format :html do
|
|
81
81
|
items: (opts[:items] || {}).merge(view: item_view))
|
82
82
|
end
|
83
83
|
|
84
|
-
view :open do
|
85
|
-
toggle_logic
|
86
|
-
@toggle_mode = :open
|
87
|
-
@content_body = true
|
88
|
-
frame { _render_open_content }
|
89
|
-
end
|
90
|
-
|
91
|
-
view :closed do
|
92
|
-
with_nest_mode :compact do
|
93
|
-
toggle_logic
|
94
|
-
class_up "d0-card-body", "closed-content"
|
95
|
-
@content_body = false
|
96
|
-
@toggle_mode = :close
|
97
|
-
frame
|
98
|
-
end
|
99
|
-
end
|
100
|
-
|
101
|
-
def toggle_logic
|
102
|
-
show_view?(:title_link, :hide) ? voo.show(:icon_toggle) : voo.show(:title_toggle)
|
103
|
-
end
|
104
|
-
|
105
84
|
def current_set_card
|
106
85
|
set_name = params[:current_set]
|
107
86
|
set_name ||= "#{card.name}+*type" if card.known? && card.type_id == Card::CardtypeID
|
data/set/type/cardtype.rb
CHANGED
@@ -68,8 +68,8 @@ format :html do
|
|
68
68
|
voo.title ||= t(:format_configure_card, cardname: safe_name.pluralize)
|
69
69
|
title = _render_title
|
70
70
|
link_to_card card, title,
|
71
|
-
path: { view: :
|
72
|
-
|
71
|
+
path: { view: :board,
|
72
|
+
board: { tab: :rules_tab },
|
73
73
|
set: Card::Name[safe_name, :type] },
|
74
74
|
class: css_classes("configure-type-link ms-3", css_class)
|
75
75
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: card-mod-format
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.5
|
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: 2023-
|
13
|
+
date: 2023-04-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: card
|
@@ -18,28 +18,28 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.105.
|
21
|
+
version: 1.105.5
|
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.105.
|
28
|
+
version: 1.105.5
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: card-mod-content
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.15.
|
35
|
+
version: 0.15.5
|
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.15.
|
42
|
+
version: 0.15.5
|
43
43
|
description: ''
|
44
44
|
email:
|
45
45
|
- info@decko.org
|