card-mod-history 0.15.0 → 0.15.1.1

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: e2d78dcfb78596c37468e86dc3e3a72ac08d03cdf0d5440dfa5c295dbcf2b039
4
- data.tar.gz: c1f9f5eb97b32949b0a348fa0947d0f4026bd0d7d3c72ebf881b64784091f9ef
3
+ metadata.gz: c01429d5e9aa871027c976ba0aa66626d684c95d4ddfc4c07799f1431e6d9933
4
+ data.tar.gz: 2f467d140dc2bfbc243de2f6a7efa63202d7def6e48ec131d404f6b3ccbf2fe4
5
5
  SHA512:
6
- metadata.gz: 6e45cfc294d0badd2c4ab9aecc141187ebf9d3d984b428b1bd1e74e96c33655d9fabc43280e7c08d4420e362ce78bed36f28795caa6a74f4461ff381ccf371ab
7
- data.tar.gz: 007a9e2f96b32ec1f2e247b8c95a7874a0072b5a18b6cf5f0301588684eb66672cec10c475683ff93ee71fc7c6405e21da6a0e48da336f93b993d304de5fed5c
6
+ metadata.gz: bd671f806d6096d5ca53f98e1c1a2d9b4d44861932544d4439e958260167ab24d55915d85a51ac07085f26c962e657849e43e60b87eedeedfa8c9f8036e386ea
7
+ data.tar.gz: baae6095feb0f2f5824f664b5d33d7edf3b74cee17119d2440cf5dd6f760b0aec70af0f9f01505f807d641bdaa5d46eac1127923e266eeebfc6e2915c31c70f1
@@ -108,10 +108,10 @@ format :html do
108
108
 
109
109
  def action_icon action_type, extra_class=nil
110
110
  icon = case action_type
111
- when :create then :add_circle
112
- when :update then :pencil
113
- when :delete then :remove_circle
114
- when :draft then :wrench
111
+ when :create then :create_action
112
+ when :update then :update_action
113
+ when :delete then :delete_action
114
+ when :draft then :draft
115
115
  end
116
116
  icon_tag icon, extra_class
117
117
  end
@@ -59,13 +59,13 @@ format :html do
59
59
  other_view_type = view_type == :expanded ? :summary : :expanded
60
60
  css_class = "revision-#{action.card_act_id} float-end"
61
61
  link_to_view "action_#{other_view_type}",
62
- icon_tag(action_arrow_dir(view_type), class: "md-24"),
62
+ icon_tag(action_arrow_dir(view_type)),
63
63
  class: css_class,
64
64
  path: { action_id: action.id, look_in_trash: true }
65
65
  end
66
66
 
67
67
  def action_arrow_dir view_type
68
- view_type == :expanded ? :triangle_left : :triangle_right
68
+ view_type == :expanded ? :collapse : :expand
69
69
  end
70
70
 
71
71
  def revert_actions_link link_text, path_args, html_args={}
@@ -1,13 +1,17 @@
1
1
  # History views
2
2
 
3
3
  format :html do
4
- view :history, cache: :never do
4
+ view :history, cache: :never do # why no cache?
5
5
  frame do
6
6
  class_up "d0-card-body", "history-slot"
7
- acts_layout card.history_acts, :relative, :show
7
+ render_relative_history
8
8
  end
9
9
  end
10
10
 
11
+ view :relative_history do
12
+ acts_layout card.history_acts, :relative, :show
13
+ end
14
+
11
15
  view :act, cache: :never do
12
16
  act_listing act_from_context
13
17
  end
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.0
4
+ version: 0.15.1.1
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-01-04 00:00:00.000000000 Z
13
+ date: 2023-03-29 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.0
21
+ version: 1.105.1
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.0
28
+ version: 1.105.1
29
29
  description: ''
30
30
  email:
31
31
  - info@decko.org
@@ -34,6 +34,8 @@ extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
36
  - assets/style/history.scss
37
+ - config/locales/de.yml
38
+ - config/locales/en.yml
37
39
  - data/test.yml
38
40
  - lib/card/act.rb
39
41
  - lib/card/act/act_renderer.rb
@@ -47,8 +49,6 @@ files:
47
49
  - lib/card/action/differ.rb
48
50
  - lib/card/change.rb
49
51
  - lib/card/mod/history.rb
50
- - locales/de.yml
51
- - locales/en.yml
52
52
  - set/all/history.rb
53
53
  - set/all/history/act_listing.rb
54
54
  - set/all/history/actions.rb
File without changes
File without changes