importo 3.0.11 → 3.0.12

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: 6131e4ec626396aef1988b8935c2806830b71248cb0ceb9895b40b3194c81ff5
4
- data.tar.gz: c4ee0a4d593837dc62c333c6705bcf40241b751938eec86cbbe2513f81dfbfcf
3
+ metadata.gz: eb87400266c9f97c658bd13a140100ae2c19ea5605ca3bf4c2497ba2b525b826
4
+ data.tar.gz: 96de0804e9232dbd537515f7619dc8291af771507c59f00b8a326e348ac4a2fa
5
5
  SHA512:
6
- metadata.gz: 45102995ab226ee9a8197405011f0ffd5c51e00e0b39c027424809087abdb759947ea3439070983c6bf64de92d72e148332a61e33bb8a94a0133724bba366039
7
- data.tar.gz: 61f8719dfe1cfa516a78b64191f75d6f6d48eee0a042335e75502be705f8ca7dfcb09f65e0e508d3da427e120905c36eea176e0d0f845a38d84393244f3f3b72
6
+ metadata.gz: 3be3ff53acb123bb507dbabb19b121c604df16b893369cbd43d63482acac9ebfde2cd141c09708605ad866bf8554ccdfd35ce3dd13c6439040c84dcb16e11b8f
7
+ data.tar.gz: 7fdb190675a95cdc8085a7651755e4796f66ea0f9f0af60cc4d61653b79ec8fca503efadd048e0034c132828559d687edd7b9825b346a6d30f5181f8db8b8e67
@@ -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.12"
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.12
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-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: caxlsx