cmor_files 0.0.55.pre → 0.0.60.pre
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: b1742276ff4aac1dfb3655d5644538a9952e4699f6e0dc36f1b05f866ebcb761
|
4
|
+
data.tar.gz: d55d4d2d82df13eabfbd8c17af6f6fda86c4db3a74a3cd6d1ba2ba19fd4e4346
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c512e552da58a0925377fbcbd3af63581fa2fa9632336dcb20ca4ffbc894c877588ee385db7649779af05de13e9eae09e7753f0186f945591146629167da0212
|
7
|
+
data.tar.gz: 2b754396989376ebcfa221637502823fc449277a8f4f49bd0890f6ef41b2c3a346eb753053ad866857e240f1feba09c67a4fe998fc2a806b789473c2938a369a
|
@@ -16,5 +16,9 @@ module Cmor::Files
|
|
16
16
|
friendly_id :title, use: :slugged
|
17
17
|
|
18
18
|
validates :identifier, uniqueness: { scope: [ :folder_id ] }, allow_blank: true, allow_nil: true
|
19
|
+
|
20
|
+
def label
|
21
|
+
title.presence || asset&.blob&.filename&.to_s&.truncate(64).presence
|
22
|
+
end
|
19
23
|
end
|
20
24
|
end
|
@@ -6,8 +6,7 @@
|
|
6
6
|
.col-12
|
7
7
|
.table-responsive
|
8
8
|
= collection_table(collection: resource.file_details, resource_class: Cmor::Files::FileDetail, header: false) do |table|
|
9
|
-
= table.column :
|
10
|
-
- resource.asset.blob.filename.to_s.truncate(64)
|
9
|
+
= table.column :label
|
11
10
|
= table.column :actions, html: "text-right" do |resource|
|
12
11
|
- capture_haml do
|
13
12
|
.text-right
|
@@ -6,8 +6,7 @@
|
|
6
6
|
.col-12
|
7
7
|
.table-responsive
|
8
8
|
= collection_table(collection: @resource.file_details, resource_class: Cmor::Files::FileDetail, header: false) do |table|
|
9
|
-
= table.column :
|
10
|
-
- resource.asset.blob.filename.to_s.truncate(64)
|
9
|
+
= table.column :label
|
11
10
|
= table.column :blob_byte_size do |resource|
|
12
11
|
- number_to_human_size(resource.asset.blob.byte_size)
|
13
12
|
= table.column :actions do |resource|
|
data/config/locales/de.yml
CHANGED
@@ -18,8 +18,11 @@ de:
|
|
18
18
|
id: ID
|
19
19
|
asset: Datei
|
20
20
|
asset_id: Datei
|
21
|
+
asset_permanent_path: Permanenter Datei-Pfad
|
22
|
+
asset_permanent_url: Permanente Datei-URL
|
21
23
|
blob_byte_size: Dateigröße
|
22
24
|
blob_checksum: Checksumme
|
25
|
+
blob_content_type: Dateityp
|
23
26
|
blob_created_at: Datei erstellt am
|
24
27
|
blob_filename: Dateiname
|
25
28
|
description: Beschreibung
|
@@ -27,6 +30,7 @@ de:
|
|
27
30
|
folder: Ordner
|
28
31
|
folder_id: Ordner
|
29
32
|
identifier: Bezeichner
|
33
|
+
label: Label
|
30
34
|
position: Position
|
31
35
|
published: Veröffentlicht
|
32
36
|
published_at: Veröffentlicht am
|
data/config/locales/en.yml
CHANGED
@@ -18,8 +18,11 @@ en:
|
|
18
18
|
id: ID
|
19
19
|
asset: Asset
|
20
20
|
asset_id: Asset
|
21
|
+
asset_permanent_path: Permanent asset path
|
22
|
+
asset_permanent_url: Permanent asset ur
|
21
23
|
blob_byte_size: Filesize
|
22
24
|
blob_checksum: Checksum
|
25
|
+
blob_content_type: Content-Type
|
23
26
|
blob_created_at: File created at
|
24
27
|
blob_filename: Filename
|
25
28
|
description: Description
|
@@ -27,6 +30,7 @@ en:
|
|
27
30
|
folder: Folder
|
28
31
|
folder_id: Folder
|
29
32
|
identifier: Identifier
|
33
|
+
label: Label
|
30
34
|
position: Position
|
31
35
|
published: Published
|
32
36
|
published_at: Published at
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cmor_files
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.60.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.0.
|
33
|
+
version: 0.0.60.pre
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.0.
|
40
|
+
version: 0.0.60.pre
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: cmor_core_frontend
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.0.
|
47
|
+
version: 0.0.60.pre
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.0.
|
54
|
+
version: 0.0.60.pre
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: sqlite3
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|