From 46ac248b6bc568756f3d581a8f0abd7aa46543ee Mon Sep 17 00:00:00 2001 From: Aroy-Art Date: Wed, 23 Oct 2024 22:09:42 +0200 Subject: [PATCH] Add submission sidebar post info template --- .../templates/sites/partials/post-info.html | 117 ++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 archivist/apps/templates/sites/partials/post-info.html diff --git a/archivist/apps/templates/sites/partials/post-info.html b/archivist/apps/templates/sites/partials/post-info.html new file mode 100644 index 0000000..d84f61e --- /dev/null +++ b/archivist/apps/templates/sites/partials/post-info.html @@ -0,0 +1,117 @@ +{% load string_helper %} + +

Post Info:

+ +
+ +
+ Tags: + {% if submission.content_object.tags.exists %} + {% for tag in submission.content_object.tags.all %} + + {{ tag.tag|capfirst }} + + {% endfor %} + {% else %} + This submission has no tags + {% endif %} +
+ +
+ + + + + {% if submission.category.name == "furaffinity" %} + + {% elif submission.category.name == "twitter" %} + + {% elif submission.category.name == "instagram" %} + + {% else %} + + {% endif %} + + + + {% if submission.category.name == "furaffinity" %} + + + {% endif %} + + + + + + + + + + + + + + + + + + + + + + + + + + +
FurAffinity IDTwitter IDInstagram IDSubmission ID{{ submission.content_object.submission_id }}
Views{{ submission.content_object.views }}
Gallery Type{{ submission.content_object.gallery_type|capfirst }}
Lang{{ submission.content_object.lang }}
Favorites{{ submission.content_object.favorites_count }}
Retweets{{ submission.content_object.retweet_count }}
Quotes{{ submission.content_object.quote_count }}
Replies{{ submission.content_object.reply_count }}
+ +

Media Info:

+ +
+ + + + {% if submission.content_object.files.all|length == 0 %} + + + {% elif submission.content_object.files.all|length <= 1 %} + + + + + + + + + + + {% else %} + {% for file in submission.content_object.files.all %} + + + + + + + + + + {% endfor %} + + {% endif %} + + + + + + + + + + + + + +
+ No Media
Image Size{{ submission.content_object.files.first.image_width }} x {{ submission.content_object.files.first.image_height }}
Size{{ submission.content_object.files.first.size|size_to_human_readable }}
Image Res {{ forloop.counter }}{{ file.image_width }} x {{ file.image_height }}
Size {{ forloop.counter }}{{ file.size|size_to_human_readable }}
Mature{{ submission.content_object.sensitive|default_if_none:False }}
Orginal Date{{ submission.content_object.date |date:'Y-m-d H:i:s' }}
Archive Date{{ submission.date_added |date:'Y-m-d H:i:s' }}