From d1e1f311f02a41cc5c35a5638de63eb1686c167c Mon Sep 17 00:00:00 2001 From: j Date: Sun, 31 Oct 2021 11:17:38 +0000 Subject: [PATCH] more metadata --- app/templates/text.html | 23 +++++++++++++++++++++++ app/text/views.py | 2 ++ 2 files changed, 25 insertions(+) diff --git a/app/templates/text.html b/app/templates/text.html index ea23207..1a8e82b 100755 --- a/app/templates/text.html +++ b/app/templates/text.html @@ -7,6 +7,29 @@ + + + + + {% if text.data.related %} + + + + + {% elif text.data.item %} + + + + + {% endif %} + + + + + + + + {% endblock head %} {% block main %}
diff --git a/app/text/views.py b/app/text/views.py index 055029b..4d443a9 100755 --- a/app/text/views.py +++ b/app/text/views.py @@ -2,6 +2,7 @@ from django.shortcuts import render, redirect, get_object_or_404 from django.conf import settings from . import models +from ..video.views import get_stream_prefix def fallback(request, slug=''): if not slug: @@ -51,4 +52,5 @@ def text(request, slug): context['text'] = get_object_or_404(models.Text, slug=slug) else: context['text'] = get_object_or_404(models.Text, slug=slug, public=True) + context['stream_prefix'] = get_stream_prefix(request) return render(request, 'text.html', context)