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 +4 -4
- data/app/views/bhf/entries/form/column/_paperclip.haml +12 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0853287c54c262ad74e8211ea0bd046203704834
|
4
|
+
data.tar.gz: 718b99406a663ef1b5ce09f14b26119c516a5046
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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-
|
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
|