diff --git a/app/views/polls/_gallery.html.erb b/app/views/polls/_gallery.html.erb index 3354c4de7..86f8f0d4d 100644 --- a/app/views/polls/_gallery.html.erb +++ b/app/views/polls/_gallery.html.erb @@ -15,22 +15,18 @@ <%= t("shared.orbit.next_slide") %>▶︎ - -
  • - <%= link_to "/assets/example_vertical.jpg", target: "_blank" do %> - <%= image_tag "example_horizontal.jpg", class: "orbit-image" %> - <% end %> - - Image title 1 - -
  • - -
  • - <%= link_to "/assets/example_vertical.jpg", target: "_blank" do %> - <%= image_tag "example_vertical.jpg", class: "orbit-image" %> - <% end %> - Image title 2 -
  • + + <% answer.images.each do |image| %> +
  • + <%= link_to image.attachment.url(:original), target: "_blank" do %> + <%= image_tag image.attachment.url(:medium), + class: "orbit-image", + alt: image.title %> + <% end %> + <%= image.title %> +
  • + <% end %> +