From 8055b891832c17b8f9b58131e92677ed9dd6dd43 Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Sun, 18 Mar 2018 22:58:55 +0000 Subject: [PATCH] Add some logic to be used when displaying missing reviews --- opentech/apply/funds/templates/funds/includes/review_table.html | 1 + .../apply/funds/templates/funds/includes/review_table_row.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/opentech/apply/funds/templates/funds/includes/review_table.html b/opentech/apply/funds/templates/funds/includes/review_table.html index 52f1dd015..a81124e62 100644 --- a/opentech/apply/funds/templates/funds/includes/review_table.html +++ b/opentech/apply/funds/templates/funds/includes/review_table.html @@ -17,5 +17,6 @@ <th>{{ object.reviews.reviewers_score|default_if_none:'-' }}</th> </tr> {% include 'funds/includes/review_table_row.html' with reviews=reviewer_reviews %} + {# Add logic for showing missing reviews #} {% include 'funds/includes/review_table_row.html' with reviews=object.missing_reviewer_reviews missing=True %} </table> diff --git a/opentech/apply/funds/templates/funds/includes/review_table_row.html b/opentech/apply/funds/templates/funds/includes/review_table_row.html index dd1d08b3d..82da56205 100644 --- a/opentech/apply/funds/templates/funds/includes/review_table_row.html +++ b/opentech/apply/funds/templates/funds/includes/review_table_row.html @@ -1,5 +1,5 @@ {% for review in reviews %} - <tr> + <tr class="{% if missing %}no-response{% endif %}"> {% if missing %} <td>{{ review }}</td> <td>-</td> -- GitLab