Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #category-bg
- #new-image-block
- =link_to(t('categories.show.upload_image'),
- new_category_image_path(@category),
- remote: true,
- class: 'btn btn-sm upload-button')
- .container#images-list
- .row
- -@images.each do |image|
- .image.col-6.col-md-4
- =link_to(image_tag(image.picture.url, alt: 'picture', class: 'w-100'),
- category_image_path(id: image.slug, category_id: image.category.slug))
- #paginate-images
- =paginate @images
- =render 'categories/modal' # Modal window(show-link in navbar)
Add Comment
Please, Sign In to add comment