From cf4ca86aaa036476d5fd1aefe35756f651bcc74c Mon Sep 17 00:00:00 2001 From: Chris Lawton <chris.lawton@torchbox.com> Date: Thu, 24 Jan 2019 12:17:50 +0000 Subject: [PATCH] show help text if there are no open or closed rounds --- .../templates/funds/includes/round-block-listing.html | 4 ++++ .../static_src/src/sass/apply/components/_round-block.scss | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/opentech/apply/funds/templates/funds/includes/round-block-listing.html b/opentech/apply/funds/templates/funds/includes/round-block-listing.html index 43f59b4de..0c4fc9625 100644 --- a/opentech/apply/funds/templates/funds/includes/round-block-listing.html +++ b/opentech/apply/funds/templates/funds/includes/round-block-listing.html @@ -25,5 +25,9 @@ <a href="{% url 'apply:rounds:list' %}{{ query }}">Show all</a> </li> {% endif %} + {% empty %} + <p class="round-block__not-found"> + There are no {% if round.end_date %} {{ display_text|lower }} {% else %} open {% endif %} rounds + </p> {% endfor %} </ul> diff --git a/opentech/static_src/src/sass/apply/components/_round-block.scss b/opentech/static_src/src/sass/apply/components/_round-block.scss index 3889673ad..3e5e49227 100644 --- a/opentech/static_src/src/sass/apply/components/_round-block.scss +++ b/opentech/static_src/src/sass/apply/components/_round-block.scss @@ -80,4 +80,11 @@ &__title { font-weight: $weight--semibold; } + + &__not-found { + margin: 0; + padding: 20px; + background-color: $color--white; + border: 1px solid $color--light-mid-grey; + } } -- GitLab