From d4c148abc509c09b00a5602fd87b1639a229b9dd Mon Sep 17 00:00:00 2001
From: George Katsikas <giorgakis.katsikas@gmail.com>
Date: Wed, 30 Aug 2023 10:57:44 +0200
Subject: [PATCH] change status when pub offer is pending response

---
 .../_hx_productionstream_summary_assignees_status.html   | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/scipost_django/production/templates/production/_hx_productionstream_summary_assignees_status.html b/scipost_django/production/templates/production/_hx_productionstream_summary_assignees_status.html
index 12984e28b..177559595 100644
--- a/scipost_django/production/templates/production/_hx_productionstream_summary_assignees_status.html
+++ b/scipost_django/production/templates/production/_hx_productionstream_summary_assignees_status.html
@@ -49,12 +49,17 @@
               hx-get="{% url 'production:_hx_toggle_on_hold' stream_id=productionstream.id %}"
               hx-target="#productionstream-{{productionstream.id}}-details"
               hx-swap="outerHTML" hx-confirm="Are you sure the issues in this stream have been resolved?">
-            <span class="text-white justify-self-start">{% include 'bi/exclamation-triangle-fill.html' %}</span>
+            <span class="text-white">{% include 'bi/exclamation-triangle-fill.html' %}</span>
             On Hold
           </div>
         {% else %}
           <div class="p-2 badge bg-{% if productionstream.status == 'initiated' %}danger{% else %}primary{% endif %}">
-            {{ productionstream.status|readable_str|title }}
+            {% if productionstream.in_stasis %}
+              <span class="text-white">{% include 'bi/exclamation-triangle-fill.html' %}</span>
+              Offer pending
+            {% else %}
+              {{ productionstream.status|readable_str|title }}
+            {% endif %}
           </div>
         {% endif %}
       </div>
-- 
GitLab