From 900f9bb44d92dbac7ab5558e64c13f4e88fed40d Mon Sep 17 00:00:00 2001 From: j Date: Thu, 31 Aug 2023 12:22:57 +0100 Subject: [PATCH] show description in mobile view --- pandora/mobile/views.py | 2 ++ pandora/templates/document.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora/mobile/views.py b/pandora/mobile/views.py index 9e02ae7b..1fc87e6f 100644 --- a/pandora/mobile/views.py +++ b/pandora/mobile/views.py @@ -25,6 +25,8 @@ def index(request, fragment): document = Document.objects.filter(id=ox.fromAZ(id)).first() if document and document.access(request.user): context['title'] = document.data['title'] + if document.data.get('description'): + context['description'] = document.data['description'] link = request.build_absolute_uri(document.get_absolute_url()) # FIXME: get preview image or fragment parse from url public_id = ox.toAZ(document.id) diff --git a/pandora/templates/document.html b/pandora/templates/document.html index c893d363..34139cc4 100644 --- a/pandora/templates/document.html +++ b/pandora/templates/document.html @@ -22,7 +22,7 @@
{{title}}
-
{{description_html|safe}}
+
{{description|safe}}
{% for c in clips %}