ds_media_library 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -42,5 +42,9 @@
42
42
 
43
43
  dt
44
44
  figcaption
45
- | {{resourcesoriginalfilename}}
45
+ | {{#if isPdf}}
46
+ | <a href="{{url}}" target="_blank" class="dsml-pdf-icon">{{resourcesoriginalfilename}}</a>
47
+ | {{else}}
48
+ | {{resourcesoriginalfilename}}
49
+ | {{/if}}
46
50
 
@@ -13,8 +13,9 @@
13
13
 
14
14
  - unless defined?(hide_file_name) && hide_file_name
15
15
  dt
16
- - if image.pdf?
17
- figcaption = link_to image.original_file_name, image.url, class: "dsml-pdf-icon", target: "_blank"
18
- - else
19
- figcaption = image.original_file_name
16
+ figcaption
17
+ - if image.pdf?
18
+ = link_to image.original_file_name, image.url, class: "dsml-pdf-icon", target: "_blank"
19
+ - else
20
+ = image.original_file_name
20
21
 
@@ -43,4 +43,5 @@ Gem::Specification.new do |spec|
43
43
  spec.add_dependency "jquery-rails"
44
44
  spec.add_dependency "jquery-ui-rails"
45
45
  spec.add_dependency "font-awesome-rails"
46
+ spec.add_dependency "handlebars_assets"
46
47
  end
@@ -1,3 +1,3 @@
1
1
  module DSMediaLibrary
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ds_media_library
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-03 00:00:00.000000000 Z
11
+ date: 2018-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -304,6 +304,20 @@ dependencies:
304
304
  - - ">="
305
305
  - !ruby/object:Gem::Version
306
306
  version: '0'
307
+ - !ruby/object:Gem::Dependency
308
+ name: handlebars_assets
309
+ requirement: !ruby/object:Gem::Requirement
310
+ requirements:
311
+ - - ">="
312
+ - !ruby/object:Gem::Version
313
+ version: '0'
314
+ type: :runtime
315
+ prerelease: false
316
+ version_requirements: !ruby/object:Gem::Requirement
317
+ requirements:
318
+ - - ">="
319
+ - !ruby/object:Gem::Version
320
+ version: '0'
307
321
  description: Downstream Media Library Rails Engine
308
322
  email:
309
323
  - micah@botandrose.com
@@ -322,6 +336,7 @@ files:
322
336
  - README.md
323
337
  - Rakefile
324
338
  - app/assets/javascripts/ds_media_library.coffee
339
+ - app/assets/javascripts/ds_media_library/handlebars.js
325
340
  - app/assets/stylesheets/_breadcrumb-nav.sass
326
341
  - app/assets/stylesheets/_help-text.sass
327
342
  - app/assets/stylesheets/_media-tree.sass