uploadbox 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/uploadbox/images/_uploader.html.slim +2 -2
- data/lib/uploadbox/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf3cbfed4974a811cdaa9bc00700fdb1cc8d57e0
|
4
|
+
data.tar.gz: 5f080cd8e8be770faf1ae1310568158ae8884a4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd6b3534fb34c79dd511e3c1fbd12b0865df99e938197d21083dbf44b974218e8d3eb1b8b967d0a48cc9aee992663830796ac4e23701842dbc099331d41838da
|
7
|
+
data.tar.gz: b03253560ed00d6b9f1c6000912c63c4a2d125acded190bfdec3fa20cc647a66b602f8f912920c942a87b3a84b61e357fa757e0c28be2b50d922b392abec20e3
|
@@ -5,9 +5,9 @@
|
|
5
5
|
input name="[#{namespace}]#{upload_name}_id" data-item="id" type="hidden" value="#{resource.send(upload_name).try :id}"
|
6
6
|
- else
|
7
7
|
input name="#{upload_name}_id" data-item="id" type="hidden" value="#{resource.send(upload_name).try :id}"
|
8
|
-
.fileupload data-provides="fileupload" class="fileupload-#{(resource.send(upload_name)
|
8
|
+
.fileupload data-provides="fileupload" class="fileupload-#{(resource.send("#{upload_name}?") or default) ? 'exists' : 'new'}"
|
9
9
|
.fileupload-preview.thumbnail data-version="#{version}" data-width="#{width}" data-height="#{height}" style="width: #{width}px; height: #{height}px;"
|
10
|
-
- if resource.send(upload_name)
|
10
|
+
- if resource.send("#{upload_name}?")
|
11
11
|
= img resource.send(upload_name).send(version)
|
12
12
|
- elsif default
|
13
13
|
= image_tag default, width: width, height: height
|
data/lib/uploadbox/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uploadbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julio Protzek
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-10-
|
12
|
+
date: 2013-10-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|