importo 3.0.10 → 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: 208e74497d020c5798661a0c0280d0952ab0a2381ede5317e3460f57b6ea8aa2
4
- data.tar.gz: 78d02a8842863216adc84411c2ee71bd16202f40b7c50734248cf35aaa76a244
3
+ metadata.gz: eb87400266c9f97c658bd13a140100ae2c19ea5605ca3bf4c2497ba2b525b826
4
+ data.tar.gz: 96de0804e9232dbd537515f7619dc8291af771507c59f00b8a326e348ac4a2fa
5
5
  SHA512:
6
- metadata.gz: d954737dd202b1e068fdcae143e06f49a3cb7515d04b7da85bc0111c80cbeed7f384a6bf3ba968a0a742bfe76efbc6d554af9bc57b01777be3756968b8ae8e88
7
- data.tar.gz: 8796b9d5746d0995e8cff516f30eb1662598ee3d34f5c4fd32c19d0604e379ffa79cae747a15b4502e4b0ecef59eed0662fda3bd42f0d4d0dee5fdd030c93fe1
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,6 +1,6 @@
1
1
  = sts.card :importo_imports, icon: 'fad fa-file-import', content_padding: false do |card|
2
2
  - if defined? Mensa
3
- = sts.mensa(:importo_mensa_imports, parameters: { kind: @import&.kind })
3
+ = sts.table(:importo_mensa_imports, parameters: { kind: @import&.kind })
4
4
  - else
5
5
  = card.with_table(:importo_imports, parameters: { kind: @import&.kind }, custom_views: false)
6
6
 
@@ -28,7 +28,7 @@
28
28
  .col-span-3.sm:col-span-3
29
29
  = sts.card :importo_imports, title: "#{@import.kind.humanize} imports", icon: 'fad fa-file-import', content_padding: false do |card|
30
30
  - if defined? Mensa
31
- = sts.mensa(:importo_mensa_imports, parameters: { kind: @import.kind })
31
+ = sts.table(:importo_mensa_imports, parameters: { kind: @import.kind })
32
32
  - else
33
33
  = card.with_table(:importo_imports, parameters: { kind: @import.kind }, custom_views: false)
34
34
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Importo
4
- VERSION = "3.0.10"
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.10
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-03-23 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