importo 3.0.11 → 3.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6131e4ec626396aef1988b8935c2806830b71248cb0ceb9895b40b3194c81ff5
4
- data.tar.gz: c4ee0a4d593837dc62c333c6705bcf40241b751938eec86cbbe2513f81dfbfcf
3
+ metadata.gz: e1d51a79f3ee31f31f1936df77da88c1908d1c0f3cf937113a15e59a4b85b203
4
+ data.tar.gz: 815570655ace71f03b39e2bf98ef37e841e62d687e70f0df2afe1c0982074ff7
5
5
  SHA512:
6
- metadata.gz: 45102995ab226ee9a8197405011f0ffd5c51e00e0b39c027424809087abdb759947ea3439070983c6bf64de92d72e148332a61e33bb8a94a0133724bba366039
7
- data.tar.gz: 61f8719dfe1cfa516a78b64191f75d6f6d48eee0a042335e75502be705f8ca7dfcb09f65e0e508d3da427e120905c36eea176e0d0f845a38d84393244f3f3b72
6
+ metadata.gz: f82c2398cb1e23f64edf656e1ba392f50826a96e040658da034f404b0ed44d65456d92befc2fed47f09220ebc7ca990fcee826e96e9161abb2e8489004e974a9
7
+ data.tar.gz: 27a6bb968c5dd1f155bc452e6114fe474ec2a16b2d9fb35c318812404b19f133c8d3332bc2fd2c3601de2ec3022f9f37680835e7f016cca205d8ab94d0e8c042
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class Importo::ImportsTable < ActionTable::ActionTable
3
+ if defined? ActionTable
4
+ class Importo::ImportsTable < ActionTable::ActionTable
4
5
  model Importo::Import
5
6
 
6
7
  column(:created_at, html_value: proc { |import| l(import.created_at.in_time_zone(Time.zone), format: :short).to_s })
@@ -33,3 +34,7 @@ class Importo::ImportsTable < ActionTable::ActionTable
33
34
  @scope
34
35
  end
35
36
  end
37
+ else
38
+ class Importo::ImportsTable
39
+ end
40
+ end
@@ -6,11 +6,38 @@ if defined? Mensa
6
6
  model Importo::Import
7
7
 
8
8
  column(:created_at)
9
- column(:user)
9
+ column(:user) do
10
+ attribute "TRIM(CONCAT(users.first_name, ' ', users.last_name))"
11
+ end
10
12
  column(:kind)
11
- column(:original)
13
+ column(:original) do
14
+ sortable false
15
+ render do
16
+ html do |import|
17
+ link_to(import.original.filename, main_app.rails_blob_path(import.original, disposition: "attachment"), target: "_blank")
18
+ end
19
+ end
20
+ end
21
+
12
22
  column(:state)
13
- column(:result)
23
+
24
+ column(:result_message) do
25
+ internal true
26
+ end
27
+
28
+ column(:result) do
29
+ sortable false
30
+ render do
31
+ html do |import|
32
+ if import.result.attached?
33
+ link_to(import.result_message, main_app.rails_blob_path(import.result, disposition: "attachment"), target: "_blank")
34
+ else
35
+ import.result_message
36
+ end
37
+ end
38
+ end
39
+ end
40
+
14
41
 
15
42
  order created_at: :desc
16
43
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Importo
4
- VERSION = "3.0.11"
4
+ VERSION = "3.0.13"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: importo
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.11
4
+ version: 3.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andre Meij
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-04-11 00:00:00.000000000 Z
12
+ date: 2024-04-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: caxlsx