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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb87400266c9f97c658bd13a140100ae2c19ea5605ca3bf4c2497ba2b525b826
|
4
|
+
data.tar.gz: 96de0804e9232dbd537515f7619dc8291af771507c59f00b8a326e348ac4a2fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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.
|
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.
|
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
|
|
data/lib/importo/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2024-04-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: caxlsx
|