From e591289cd192dfc4e7a3505ddcc807c1cc1d1db6 Mon Sep 17 00:00:00 2001 From: George Katsikas <giorgakis.katsikas@gmail.com> Date: Wed, 5 Jul 2023 10:14:57 +0200 Subject: [PATCH] fix typo preventing drafting of publications --- .../production/_hx_productionstream_details_contents.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scipost_django/production/templates/production/_hx_productionstream_details_contents.html b/scipost_django/production/templates/production/_hx_productionstream_details_contents.html index 2fdf85f4f..4adcb5f0c 100644 --- a/scipost_django/production/templates/production/_hx_productionstream_details_contents.html +++ b/scipost_django/production/templates/production/_hx_productionstream_details_contents.html @@ -176,7 +176,7 @@ <div class="row m-0 d-none-empty"> <button class="btn btn-warning text-white" hx-get="{% url 'production:mark_as_completed' stream_id=productionstream.id %}" - {% if stream.status != 'published' %}hx-confirm="Are you sure you want to mark this unpublished stream as completed?"{% endif %} + {% if productionstream.status != 'published' %}hx-confirm="Are you sure you want to mark this unpublished stream as completed?"{% endif %} hx-target="#productionstream-{{ productionstream.id }}-details"> Mark this stream as completed </button> @@ -184,7 +184,7 @@ </div> {% endif %} - {% if perms.scipost.can_draft_publication and stream.status == 'accepted' %} + {% if perms.scipost.can_draft_publication and productionstream.status == 'accepted' %} <div class="col-12 col-sm-auto col-md-12 col-lg-auto h-100 d-none-empty"> <div class="row m-0 d-none-empty"> <a class="btn btn-primary text-white" -- GitLab