card-mod-history 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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01aeb7e02c84f28ceb9507b03006bee8c91d6f5a7b3bf1e981ab6762df5015ad
|
4
|
+
data.tar.gz: 3743dfd9c11825acc9dcc3a695d73af3eff21af9f9379b135955db4f2170cbde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1c3a4ab66078b2a10a9f6a5268efa965b107ae7a11140d5ea9e6992c9ba3c853e2b7a13e2feb2c388c52b74cc93e5fce7bdf1513f124bdd9080b3c6b18025f1
|
7
|
+
data.tar.gz: ed47ec8d61360dd779898832336240290a8db77d03c9cb5e8c6e402a92bac1001ec07c368afb6f4b99f3df0c8e1e296cac080dbe974fa374f58aedfecc959227
|
@@ -1,8 +1,8 @@
|
|
1
1
|
class Card
|
2
2
|
class Act
|
3
3
|
class ActRenderer
|
4
|
-
# Used for the
|
5
|
-
class
|
4
|
+
# Used for the board
|
5
|
+
class BoardActRenderer < RelativeActRenderer
|
6
6
|
def title
|
7
7
|
wrap_with(:div, left_title, class: "me-2") +
|
8
8
|
wrap_with(:div, right_title, class: "ms-auto act-summary")
|
@@ -22,9 +22,9 @@ class Card
|
|
22
22
|
details
|
23
23
|
end
|
24
24
|
|
25
|
-
def
|
26
|
-
opts = @format.
|
27
|
-
path: { act_id: @act.id, view: :
|
25
|
+
def board_link
|
26
|
+
opts = @format.board_link_opts(
|
27
|
+
path: { act_id: @act.id, view: :board_act, act_seq: @args[:act_seq] },
|
28
28
|
"data-bs-toggle": "pill"
|
29
29
|
)
|
30
30
|
add_class opts, "d-flex nav-link"
|
@@ -122,8 +122,8 @@ format :html do
|
|
122
122
|
case context
|
123
123
|
when :absolute
|
124
124
|
Act::ActRenderer::AbsoluteActRenderer
|
125
|
-
when :
|
126
|
-
Act::ActRenderer::
|
125
|
+
when :board
|
126
|
+
Act::ActRenderer::BoardActRenderer
|
127
127
|
else # relative
|
128
128
|
Act::ActRenderer::RelativeActRenderer
|
129
129
|
end
|
@@ -15,7 +15,7 @@ format :html do
|
|
15
15
|
"Updated by #{links}"
|
16
16
|
end
|
17
17
|
|
18
|
-
def
|
18
|
+
def acts_board_layout acts, context=:board
|
19
19
|
output [
|
20
20
|
_render_creator_credit,
|
21
21
|
act_link_list(acts, context),
|
@@ -27,26 +27,26 @@ format :html do
|
|
27
27
|
items = acts_for_accordion(acts, context) do |act, seq|
|
28
28
|
act_link_list_item act, seq, context
|
29
29
|
end
|
30
|
-
|
30
|
+
board_pills items
|
31
31
|
end
|
32
32
|
|
33
33
|
def act_link_list_item act, seq=nil, _context=nil
|
34
34
|
opts = act_listing_opts_from_params(seq)
|
35
35
|
opts[:slot_class] = "revision-#{act.id} history-slot nav-item"
|
36
|
-
act_renderer(:
|
36
|
+
act_renderer(:board).new(self, act, opts).board_link
|
37
37
|
end
|
38
38
|
|
39
39
|
def act_list_group acts, context, &block
|
40
40
|
list_group acts_for_accordion(acts, context, &block), class: "clear-both"
|
41
41
|
end
|
42
42
|
|
43
|
-
view :
|
43
|
+
view :board_act, cache: :never do
|
44
44
|
opts = act_listing_opts_from_params(nil)
|
45
45
|
act = act_from_context
|
46
|
-
ar = act_renderer(:
|
46
|
+
ar = act_renderer(:board).new(self, act, opts)
|
47
47
|
class_up "action-list", "my-3"
|
48
48
|
wrap_with_overlay title: ar.overlay_title, slot: breadcrumb_data("History") do
|
49
|
-
act_listing(act, opts[:act_seq], :
|
49
|
+
act_listing(act, opts[:act_seq], :board)
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: card-mod-history
|
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,14 +18,14 @@ 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
|
description: ''
|
30
30
|
email:
|
31
31
|
- info@decko.org
|
@@ -40,7 +40,7 @@ files:
|
|
40
40
|
- lib/card/act.rb
|
41
41
|
- lib/card/act/act_renderer.rb
|
42
42
|
- lib/card/act/act_renderer/absolute_act_renderer.rb
|
43
|
-
- lib/card/act/act_renderer/
|
43
|
+
- lib/card/act/act_renderer/board_act_renderer.rb
|
44
44
|
- lib/card/act/act_renderer/relative_act_renderer.rb
|
45
45
|
- lib/card/action.rb
|
46
46
|
- lib/card/action/action_renderer.rb
|
@@ -58,7 +58,7 @@ files:
|
|
58
58
|
- set/all/history/revision.rb
|
59
59
|
- set/all/history/selected.rb
|
60
60
|
- set/all/history/views.rb
|
61
|
-
- set/all/
|
61
|
+
- set/all/history_board.rb
|
62
62
|
homepage: https://decko.org
|
63
63
|
licenses:
|
64
64
|
- GPL-3.0
|