2019-11-17 18:50:42 +01:00
|
|
|
= render PhilomenaWeb.ImageView, "_image_meta.html", image: @image, watching: @watching, conn: @conn
|
2019-11-12 02:27:09 +01:00
|
|
|
= render PhilomenaWeb.ImageView, "_image_page.html", image: @image, conn: @conn
|
2019-08-18 20:14:36 +02:00
|
|
|
|
|
|
|
.layout--narrow
|
|
|
|
.image-description
|
|
|
|
div
|
|
|
|
p
|
|
|
|
| Description:
|
|
|
|
.image-description__text
|
2019-11-11 23:57:29 +01:00
|
|
|
== @description
|
2019-08-18 20:14:36 +02:00
|
|
|
.js-tagsauce id="image_tags_and_source_#{@image.id}"
|
|
|
|
.tagsauce
|
2019-11-12 02:27:09 +01:00
|
|
|
= render PhilomenaWeb.TagView, "_tag_list.html", tags: display_order(@image.tags), conn: @conn
|
2019-08-18 20:14:36 +02:00
|
|
|
.block
|
|
|
|
.flex.flex--wrap#image-source
|
|
|
|
= if !!@image.source_url and @image.source_url != "" do
|
|
|
|
a href=@image.source_url = @image.source_url
|
|
|
|
- else
|
2019-11-12 00:04:50 +01:00
|
|
|
em> no source provided yet
|
2019-10-05 02:51:56 +02:00
|
|
|
|
|
|
|
h4 Comments
|
2019-11-17 05:59:24 +01:00
|
|
|
= cond do
|
|
|
|
- @conn.assigns.current_ban ->
|
|
|
|
.block.block--fixed.block--warning
|
|
|
|
h4 You've been banned!
|
|
|
|
p
|
|
|
|
' You cannnot post comments or update metadata (or do anything but
|
|
|
|
' read, really) until
|
|
|
|
= pretty_time(@conn.assigns.current_ban.valid_until)
|
|
|
|
|
|
|
|
- @image.commenting_allowed ->
|
|
|
|
= render PhilomenaWeb.Image.CommentView, "_form.html", image: @image, changeset: @comment_changeset, conn: @conn
|
|
|
|
|
|
|
|
- true ->
|
|
|
|
|
2019-11-12 03:38:51 +01:00
|
|
|
#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
|