card-mod-format 0.15.4 → 0.15.6
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/type/cardtype.rb +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fcefa0231f42d21018810376f00b290f8ea2d6895bde7114d88b0b520d6674d0
|
4
|
+
data.tar.gz: 3bc7659bf0717c11cca56cac20294216194c7a10e3b22c6a685d506080a0cc80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f932591fbbec3e12cdc3c5bfb236057e4787057962ed1395fc1efdc41422b96b69a5b4dc775655fad2a4aaf69f9666b3d970d1c80f44fe1898786a524ba8cf52
|
7
|
+
data.tar.gz: cc02de183bebbc83e9d314057843bf44c659dc5215e2ddf389ae909ca1240fe1d9206d19a7418d50c8edd88ba31c406967a80a146b0ff7e71f6de6fa7269c3d5
|
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/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.6
|
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-05-02 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.6
|
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.6
|
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.6
|
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.6
|
43
43
|
description: ''
|
44
44
|
email:
|
45
45
|
- info@decko.org
|
@@ -227,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
227
227
|
- !ruby/object:Gem::Version
|
228
228
|
version: '0'
|
229
229
|
requirements: []
|
230
|
-
rubygems_version: 3.
|
230
|
+
rubygems_version: 3.2.33
|
231
231
|
signing_key:
|
232
232
|
specification_version: 4
|
233
233
|
summary: format
|