diff --git a/opentech/apply/funds/templates/funds/includes/review_table.html b/opentech/apply/funds/templates/funds/includes/review_table.html index 0b03fc85998479c8081cd0aec548e99ee36bd996..c9c04081a0117903bc31e42bd8f7ad41ba40bb85 100644 --- a/opentech/apply/funds/templates/funds/includes/review_table.html +++ b/opentech/apply/funds/templates/funds/includes/review_table.html @@ -1,16 +1,19 @@ {% load review_tags %} - <table class="reviews-sidebar"> - <tr class="tr tr--subchild light-grey-bg"> - <th colspan="2"></th> - <th>{{ object.reviews.submitted.recommendation|traffic_light }}</th> - <th>{{ object.reviews.submitted.score|floatformat|default_if_none:'-' }}</th> - </tr> - {% include 'funds/includes/review_table_row.html' with reviews=staff_reviews %} - {% include 'funds/includes/review_table_row.html' with reviews=object.staff_not_reviewed missing=True %} + {% if staff_reviews or object.staff_not_reviewed %} + <tr class="tr tr--subchild light-grey-bg"> + <th colspan="2"></th> + <th>{{ object.reviews.submitted.recommendation|traffic_light }}</th> + <th>{{ object.reviews.submitted.score|floatformat|default_if_none:'-' }}</th> + </tr> + {% include 'funds/includes/review_table_row.html' with reviews=staff_reviews %} + {% include 'funds/includes/review_table_row.html' with reviews=object.staff_not_reviewed missing=True %} + {% else %} + <tr><td class="reviews-sidebar__no-reviews">No reviews yet</td></tr> + {% endif %} {% if object.stage.has_external_review %} - <tr class="tr tr--subchild light-grey-bg"><td colspan="4"><hr></td></tr> + <tr class="tr tr--subchild"><td colspan="4"><hr></td></tr> {% include 'funds/includes/review_table_row.html' with reviews=reviewer_reviews %} {# Add logic for showing missing reviews #} diff --git a/opentech/static_src/src/sass/apply/components/_reviews-sidebar.scss b/opentech/static_src/src/sass/apply/components/_reviews-sidebar.scss index b74b660dc85032d504a4db6f08a97cd1bfdfce21..3ce2c91f11211002ac9cb1537d101be9becfaff3 100644 --- a/opentech/static_src/src/sass/apply/components/_reviews-sidebar.scss +++ b/opentech/static_src/src/sass/apply/components/_reviews-sidebar.scss @@ -5,14 +5,14 @@ tbody { tr { - @include media-query(tablet-portrait) { - border-bottom: 0; - } - &:hover { box-shadow: none; } + @include media-query(tablet-portrait) { + border-bottom: 0; + } + > th { font-size: inherit; font-weight: $weight--bold; @@ -30,6 +30,12 @@ padding: 10px; } + &:only-child { + > td { + padding: 0; + } + } + &.no-response { color: $color--black-20; } @@ -53,4 +59,8 @@ } } } + + &__no-reviews { + color: $color--mid-grey; + } }