From 7a37be546c74cddc69cf7875d968b72b6fbd21bd Mon Sep 17 00:00:00 2001 From: j Date: Thu, 17 Aug 2023 12:27:49 +0200 Subject: [PATCH] add embed info --- app/item/views.py | 1 + app/templates/item.html | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/app/item/views.py b/app/item/views.py index 8944b55..fb8aa52 100644 --- a/app/item/views.py +++ b/app/item/views.py @@ -59,6 +59,7 @@ def item(request, id): ): raise Http404 context['item'] = item + context['url'] = request.build_absolute_uri(item.get_absolute_url()) qs = item.comments.order_by('created') if not request.user.is_staff: q = ~Q(published=None) diff --git a/app/templates/item.html b/app/templates/item.html index c348234..adf059e 100644 --- a/app/templates/item.html +++ b/app/templates/item.html @@ -1,6 +1,18 @@ {% extends "base.html" %} {% load static sass_tags compress %} {% block head %} + {{ item.title }} - {{ settings.SITENAME }} + + + {% if item.data.thumbnail %} + + + + {% endif %} + {% if url %} + + {% endif %} + {% endblock %} {% block main %}