philomena/lib/philomena_web/templates/image/show.html.slime
2019-11-11 21:38:51 -05:00

23 lines
No EOL
895 B
Text

= render PhilomenaWeb.ImageView, "_image_meta.html", image: @image, conn: @conn
= render PhilomenaWeb.ImageView, "_image_page.html", image: @image, conn: @conn
.layout--narrow
.image-description
div
p
| Description:
.image-description__text
== @description
.js-tagsauce id="image_tags_and_source_#{@image.id}"
.tagsauce
= render PhilomenaWeb.TagView, "_tag_list.html", tags: display_order(@image.tags), conn: @conn
.block
.flex.flex--wrap#image-source
= if !!@image.source_url and @image.source_url != "" do
a href=@image.source_url = @image.source_url
- else
em> no source provided yet
h4 Comments
#comments data-current-url=Routes.image_comment_path(@conn, :index, @image, page: 1) data-loaded="true"
= render PhilomenaWeb.Image.CommentView, "index.html", image: @image, comments: @comments, conn: @conn