mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-24 18:07:59 +01:00
37 lines
No EOL
1.4 KiB
Text
37 lines
No EOL
1.4 KiB
Text
= render PhilomenaWeb.ImageView, "_image_meta.html", image: @image, watching: @watching, 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
|
|
= 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 ->
|
|
|
|
#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 |