lib/generators/redde/photo/templates/photos/_photos.haml in redde-0.1.4 vs lib/generators/redde/photo/templates/photos/_photos.haml in redde-0.1.5
- old
+ new
@@ -1,14 +1,14 @@
- unless parent.new_record?
- =content_for(:page_sidebar) do
+ = content_for(:page_sidebar) do
%h5
Фотографии
- if editable ||= false
- = link_to "ред.", [:admin,parent]
+ = link_to "ред.", [:admin, parent]
.product-photos
%ul.photos#photo-list
- = render :partial => "admin/photos/photo", :collection => eval("parent.#{photos.to_s}"), :as => :photo, :locals => {:parent => parent}
+ = render parent.photos
#preview
#drag-n-drop{:style => "display: none; margin-top: 5px;"}
#drop-zone.b-dropzone{style: 'height: 100px;', data: {"upload-url" => url_for([:admin, parent, :photos])}}
.b-dropzone__bg
@@ -17,6 +17,6 @@
#buttons-panel{style: 'margin-bottom: 10px;'}
.b-button.js-fileapi-wrapper
.b-button__text Загрузить файлы
%input.b-button__input.js-fileapi{:name => "files", :type => "file", :multiple => true, data: {"upload-url" => url_for([:admin, parent, :photos])}}
- = photo_sortable url_for([:sort,:admin,parent,photos])
+ = photo_sortable url_for([:sort, :admin, parent, :photos])
\ No newline at end of file