From c9deda52ea000a9034e475fce94de34defa62d2b Mon Sep 17 00:00:00 2001 From: Chris Lawton <chris.lawton@torchbox.com> Date: Fri, 22 Feb 2019 16:57:45 +0000 Subject: [PATCH] show role icon if reviewer has left an opinion --- .../funds/templates/funds/includes/review_sidebar_item.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opentech/apply/funds/templates/funds/includes/review_sidebar_item.html b/opentech/apply/funds/templates/funds/includes/review_sidebar_item.html index 87dce8719..be0bba5a1 100644 --- a/opentech/apply/funds/templates/funds/includes/review_sidebar_item.html +++ b/opentech/apply/funds/templates/funds/includes/review_sidebar_item.html @@ -37,7 +37,9 @@ <li class="reviews-sidebar__item reviews-sidebar__item--decision"> <div class="reviews-sidebar__name"> <span>{{ opinion.author }}</span> - {% if opinion.role %}{% image opinion.role.icon max-12x12 %}{% endif %} + {% with role=opinion.get_author_role %} + {% if role %}{% image role.icon max-12x12 %}{% endif %} + {% endwith %} </div> <div></div> <div class="reviews-sidebar__outcome {{ opinion.get_opinion_display|lower }}">{{ opinion.get_opinion_display}}</div> -- GitLab