cmor_files 0.0.53.pre → 0.0.54.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/view_helpers/cmor/files/application_view_helper.rb +7 -3
- data/config/locales/de.yml +2 -0
- data/config/locales/en.yml +2 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a95d17cb60910105b23d478f6c5f6da7ffcb02761a353485b7c8ea4452ac915d
|
4
|
+
data.tar.gz: 8fc8b16b6dba1504ae0498056543855810a47c7127c6bab36f602b247b10917b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6073f504c35588b87722fd8900ed388628ad4a36c9c7253ce1c9a5af96aaa8bb72712cbd003f5fa3f18a9cc56efed035891f4e235b997692bf7d81d76f8b033
|
7
|
+
data.tar.gz: 99118a3eb349d61aef8a9ee024e5457ff4a4c013781fda6b5dc8d664dd72edbc66e773039711b74927637642c3d9344eeedb2d0ea660b4a6a1b9921cb7ff694e
|
@@ -11,11 +11,15 @@ module Cmor
|
|
11
11
|
# Example:
|
12
12
|
#
|
13
13
|
# # app/views/layouts/application.html.haml
|
14
|
-
# = files_helper(self).render_download(
|
14
|
+
# = files_helper(self).render_download(identifier: 'Quick reference manual')
|
15
15
|
#
|
16
16
|
def render_file(identifier:)
|
17
|
-
resource = Cmor::Files::FileDetail.where(identifier: identifier).first
|
18
|
-
|
17
|
+
resource = Cmor::Files::FileDetail.published.where(identifier: identifier).first
|
18
|
+
if resource.nil?
|
19
|
+
"Could not find published file detail with identifier: '#{identifier}'."
|
20
|
+
else
|
21
|
+
render resource: resource
|
22
|
+
end
|
19
23
|
end
|
20
24
|
end
|
21
25
|
end
|
data/config/locales/de.yml
CHANGED
@@ -20,8 +20,10 @@ de:
|
|
20
20
|
asset_id: Datei
|
21
21
|
blob_byte_size: Dateigröße
|
22
22
|
blob_checksum: Checksumme
|
23
|
+
blob_created_at: Datei erstellt am
|
23
24
|
blob_filename: Dateiname
|
24
25
|
description: Beschreibung
|
26
|
+
filename: Dateiname
|
25
27
|
folder: Ordner
|
26
28
|
folder_id: Ordner
|
27
29
|
identifier: Bezeichner
|
data/config/locales/en.yml
CHANGED
@@ -20,8 +20,10 @@ en:
|
|
20
20
|
asset_id: Asset
|
21
21
|
blob_byte_size: Filesize
|
22
22
|
blob_checksum: Checksum
|
23
|
+
blob_created_at: File created at
|
23
24
|
blob_filename: Filename
|
24
25
|
description: Description
|
26
|
+
filename: Filename
|
25
27
|
folder: Folder
|
26
28
|
folder_id: Folder
|
27
29
|
identifier: Identifier
|
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.54.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-05-20 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.54.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.54.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.54.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.54.pre
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: sqlite3
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -451,7 +451,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
451
451
|
- !ruby/object:Gem::Version
|
452
452
|
version: 1.3.1
|
453
453
|
requirements: []
|
454
|
-
rubygems_version: 3.1.
|
454
|
+
rubygems_version: 3.1.3
|
455
455
|
signing_key:
|
456
456
|
specification_version: 4
|
457
457
|
summary: Cmor Files Module.
|