bhf 0.5.6 → 0.5.7

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
  SHA1:
3
- metadata.gz: ace8c54758593f6e75ccd94a1b55b20aac1b9e42
4
- data.tar.gz: d0db102d0e0ec5a3b7c7d83bc2252890ceb57b46
3
+ metadata.gz: 0853287c54c262ad74e8211ea0bd046203704834
4
+ data.tar.gz: 718b99406a663ef1b5ce09f14b26119c516a5046
5
5
  SHA512:
6
- metadata.gz: 501fd749e86654160c8321db3db76d393feb710fad12078fb689f2cfafc56d188145036ab9c0e46b0b52627edfcb2ab4a69192dba58ca76ccb218f9bfd769991
7
- data.tar.gz: 055722a22fd8d0e25c536f8660aca3edae29884a6f9bef01071a61a829ee32d1d4b863a466cf469403bb673f25b9a7d06f6cf09e604cd73374b12cad9069b1d9
6
+ metadata.gz: 5f2630b6db666acf24a42663faefecbdb2b35d9eccb0c0414cfa666aa7ee927a1387e04f34ce0fa05a5497e10682a23852f6c855fbf784548e5710aff2964ed7
7
+ data.tar.gz: 9948e8a72c346390a4f340232408aee7714e1af938e80c37ca5d8fffb44ea7d2cb7899af62eb61b20dc8317d49d34e6fe34bbae5d8ca601f764d2e292961fe57
@@ -0,0 +1,12 @@
1
+ = node f, field do
2
+ - file = f.object.send(field.name)
3
+ - if file.file?
4
+ - if file
5
+ = image_tag file.url, class: 'uploaded_image'
6
+ - else
7
+ = link_to file.name, file.url, class: 'uploaded_file'
8
+ .file_delete
9
+ = f.check_box "#{field.name}_destroy"
10
+ = f.label "#{field.name}_destroy", t('bhf.helpers.file.delete')
11
+ - unless @quick_edit
12
+ = f.file_field field.name
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bhf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Pawlik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-29 00:00:00.000000000 Z
11
+ date: 2013-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -98,6 +98,7 @@ files:
98
98
  - app/views/bhf/entries/form/column/_markdown.haml
99
99
  - app/views/bhf/entries/form/column/_multiple_fields.haml
100
100
  - app/views/bhf/entries/form/column/_number.haml
101
+ - app/views/bhf/entries/form/column/_paperclip.haml
101
102
  - app/views/bhf/entries/form/column/_password.haml
102
103
  - app/views/bhf/entries/form/column/_static.haml
103
104
  - app/views/bhf/entries/form/column/_string.haml