egov_utils 0.6.4 → 0.6.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: 15c9bb03cd2bb748b5d32a2ff051bd1083028d19f4c69c65637112722b871bcf
4
- data.tar.gz: c160099429bee03754890907732dce50704f0430cb3bebcb2b3912f64d03a0ce
3
+ metadata.gz: 7272a3c0cac6560ef3b6244bb42668eec41cf9c45526b00aa0e3359459fc79c2
4
+ data.tar.gz: efa34b24439875bb9a5ec5f6484264a6862234e4f806bc0de50c1e3bbc94f328
5
5
  SHA512:
6
- metadata.gz: 3833e1edb4557b8d67b3c102f3861c86f965ae9530f04af2ea37b654a13cc88b67f2f8a195675e243c46ea5e785765e58449a1c8e4f60466ddc0e139eb531de2
7
- data.tar.gz: 2c678e87567ac4ee0a774463a0f92ccb93c973c380675db3b8400e0519eaa9a3923943ed5fce5dbef597d55e771759aaeac842fb8b332f1eef9227035a751d77
6
+ metadata.gz: bbc0af4ecbbc3053f2f2acac70fa3ff230c76fca968bd4c6f8df7f6aad50ebb7f220b133651c809a9f1fce7030ff22519022916772f58015061deaf274743774
7
+ data.tar.gz: b9406e6401ba19e89d1caa1435173069966e8447d9734140b150950d6440812b53533b6c0079241ab07ced94ba279ccea54ef191675955c62cad35f962ba2b1b
@@ -98,25 +98,27 @@ $ ->
98
98
  <% schema.columns.each do |col| %>
99
99
  <%= raw column_for_grid(grid, col) %>
100
100
  <% end %>
101
- <% if can?(:update, schema.model) || (local_assigns.fetch(:allow_delete, false) && can?(:destroy, schema.model)) %>
102
- {
103
- width: 150
104
- title: "<%= t('label_actions') %>"
105
- buttons: [
106
- <% if can?(:read, schema.model) %>
107
- <% local_assigns.fetch(:downloads, {}).each do |format, label| %>
108
- { cls: 'btn btn-sm btn-secondary <%= "download-button-#{format}" %>', caption: '<%= label %>', click: prepareDownload('<%= format %>') },
101
+ <% unless local_assigns.fetch(:disable_actions, false) %>
102
+ <% if can?(:update, schema.model) || (local_assigns.fetch(:allow_delete, false) && can?(:destroy, schema.model)) %>
103
+ {
104
+ width: 150
105
+ title: "<%= t('label_actions') %>"
106
+ buttons: [
107
+ <% if can?(:read, schema.model) %>
108
+ <% local_assigns.fetch(:downloads, {}).each do |format, label| %>
109
+ { cls: 'btn btn-sm btn-secondary <%= "download-button-#{format}" %>', caption: '<%= label %>', click: prepareDownload('<%= format %>') },
110
+ <% end %>
109
111
  <% end %>
110
- <% end %>
111
- <% if can?(:update, schema.model) %>
112
- {cls: 'btn btn-sm btn-primary', caption: '<%= t('label_edit') %>', click: editRecord},
113
- <% end %>
114
- <%= additional_grid_edit_buttons(schema) %>
115
- <% if local_assigns.fetch(:allow_delete, false) && can?(:destroy, schema.model) %>
116
- {commandName: 'delete', caption: '<%= t('label_delete') %>'}
117
- <% end %>
118
- ]
119
- }
112
+ <% if can?(:update, schema.model) %>
113
+ {cls: 'btn btn-sm btn-primary', caption: '<%= t('label_edit') %>', click: editRecord},
114
+ <% end %>
115
+ <%= additional_grid_edit_buttons(schema) %>
116
+ <% if local_assigns.fetch(:allow_delete, false) && can?(:destroy, schema.model) %>
117
+ {commandName: 'delete', caption: '<%= t('label_delete') %>'}
118
+ <% end %>
119
+ ]
120
+ }
121
+ <% end %>
120
122
  <% end %>
121
123
  ],
122
124
  sorting:
@@ -1,3 +1,3 @@
1
1
  module EgovUtils
2
- VERSION = '0.6.4'
2
+ VERSION = '0.6.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: egov_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondřej Ezr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-09 00:00:00.000000000 Z
11
+ date: 2022-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails