From a0820e5296b43e6b824ecc181d79b1d50b7f2c31 Mon Sep 17 00:00:00 2001 From: Jorran de Wit <jorrandewit@outlook.com> Date: Mon, 18 Jun 2018 08:06:27 +0200 Subject: [PATCH] Add stream status block --- .../templates/production/production.html | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/production/templates/production/production.html b/production/templates/production/production.html index 9bc26dac5..1c95bac4a 100644 --- a/production/templates/production/production.html +++ b/production/templates/production/production.html @@ -52,17 +52,19 @@ <div class="row"> <div class="col-6"> - <h3>Stream statuses</h3> - <ul> - {% for stream in streams %} - <li class="pb-2"> - <div><strong>{{ stream.submission.title }}</strong></div> - <div class="label label-{% if stream.status == 'initiated' %}outline-danger{% else %}secondary{% endif %} label-sm">{{ stream.get_status_display }}</div> - <div>Opened {{ stream.opened }}</div> - </li> - {% endfor %} - </ul> - <hr> + {% if perms.scipost.can_assign_production_officer %} + <h3>Stream statuses</h3> + <ul> + {% for stream in streams %} + <li class="pb-2"> + <div><strong>{{ stream.submission.title }}</strong></div> + <div class="label label-{% if stream.status == 'initiated' %}outline-danger{% else %}secondary{% endif %} label-sm">{{ stream.get_status_display }}</div> + <div>Opened {{ stream.opened }}</div> + </li> + {% endfor %} + </ul> + <hr> + {% endif %} <ul class="list-unstyled" data-target="active-list"> {% for stream in streams %} <li class="p-2"> -- GitLab