scrivito_content_browser 1.5.5 → 1.6.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,5 @@
|
|
1
1
|
# Register a JavaScript search API result format used by the content browser.
|
2
2
|
Scrivito::Configuration.register_obj_format('content_browser') do |obj, _, view_context|
|
3
|
-
has_details_view = view_context.lookup_context.exists?(
|
4
|
-
obj.details_view_path, [], false, [], formats: [:html])
|
5
|
-
|
6
3
|
format = {
|
7
4
|
id: obj.id,
|
8
5
|
file_type: obj.obj_class,
|
@@ -11,7 +8,6 @@ Scrivito::Configuration.register_obj_format('content_browser') do |obj, _, view_
|
|
11
8
|
title: obj.description_for_editor.presence || obj.binary.try(:filename),
|
12
9
|
subtitle: obj.info_for_content_browser,
|
13
10
|
mime_type: obj.binary_content_type,
|
14
|
-
has_details_view: has_details_view
|
15
11
|
}
|
16
12
|
|
17
13
|
if obj.binary_content_type && obj.binary_content_type.start_with?('image/')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_content_browser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12
|
11
|
+
date: 2016-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.6.0.rc1
|
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: 1.
|
40
|
+
version: 1.6.0.rc1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: pry
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|