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 +4 -4
- data/app/tables/importo/imports_table.rb +6 -1
- data/app/tables/importo/mensa_imports_table.rb +30 -3
- data/lib/importo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e1d51a79f3ee31f31f1936df77da88c1908d1c0f3cf937113a15e59a4b85b203
|
|
4
|
+
data.tar.gz: 815570655ace71f03b39e2bf98ef37e841e62d687e70f0df2afe1c0982074ff7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f82c2398cb1e23f64edf656e1ba392f50826a96e040658da034f404b0ed44d65456d92befc2fed47f09220ebc7ca990fcee826e96e9161abb2e8489004e974a9
|
|
7
|
+
data.tar.gz: 27a6bb968c5dd1f155bc452e6114fe474ec2a16b2d9fb35c318812404b19f133c8d3332bc2fd2c3601de2ec3022f9f37680835e7f016cca205d8ab94d0e8c042
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
|
|
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
|
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.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-
|
|
12
|
+
date: 2024-04-24 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: caxlsx
|