HELLO v3!!!
This commit is contained in:
19
app/views/json/enumeration/timthumbs.erb
Normal file
19
app/views/json/enumeration/timthumbs.erb
Normal file
@@ -0,0 +1,19 @@
|
||||
"timthumbs": {
|
||||
<% unless @timthumbs.empty? -%>
|
||||
<% last_index = @timthumbs.size - 1 -%>
|
||||
<% @timthumbs.each_with_index do |timthumb, index| -%>
|
||||
<%= timthumb.url.to_json %>: {
|
||||
<%= render('@finding', item: timthumb) -%>,
|
||||
<% if timthumb.version -%>
|
||||
"version": {
|
||||
"number": <%= timthumb.version.number.to_json %>,
|
||||
"confidence": <%= timthumb.version.confidence.to_json %>,
|
||||
<%= render('@finding', item: timthumb.version) -%>
|
||||
}
|
||||
<% else -%>
|
||||
"version": null
|
||||
<% end -%>
|
||||
}<% unless index == last_index -%>,<% end -%>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
},
|
||||
Reference in New Issue
Block a user