From b579ce1a7ced67693969d144d552c1d6df553329 Mon Sep 17 00:00:00 2001 From: Aditya Anand M C Date: Sat, 19 Oct 2019 12:48:18 -0500 Subject: [PATCH] bug: ensure fund + detail button are always visible --- app/assets/v2/css/grants/card.css | 15 ++++++ app/grants/templates/grants/card/back.html | 59 ++++++++++------------ 2 files changed, 41 insertions(+), 33 deletions(-) diff --git a/app/assets/v2/css/grants/card.css b/app/assets/v2/css/grants/card.css index ab11710ce76..61b3d3a3ab7 100644 --- a/app/assets/v2/css/grants/card.css +++ b/app/assets/v2/css/grants/card.css @@ -115,4 +115,19 @@ #CLR_banner .logo { float: right; +} + +.grant-item__info a { + border-color: white; + background-color: #6144FF; + color: white; +} + +.grant-item__info a:hover { + color: white; + text-decoration: underline; +} + +.h-90 { + height: 90% !important; } \ No newline at end of file diff --git a/app/grants/templates/grants/card/back.html b/app/grants/templates/grants/card/back.html index 8644b82f5e1..7ad5c1235cd 100644 --- a/app/grants/templates/grants/card/back.html +++ b/app/grants/templates/grants/card/back.html @@ -16,47 +16,40 @@ {% endcomment %} {% load i18n static humanize grants_extra avatar_tags %}
- {% if grant.active %} + +
{% if grant.activeSubscriptions %} -
-

{% trans 'Contributors' %} ({{ grant.activeSubscriptions|length }})

+

{% trans 'Contributors' %} ({{ grant.activeSubscriptions|length }})

+
{% for handle in grant.activeSubscriptions %} {% endfor %}
- {% else %} - +

No Contributons yet

+

Click on fund grant to become the first contributor for this grant!

+ {% endif %} +
+ +
+

+ + {% trans 'View Details' %} + +

+ {% if grant.active %} +

+ + {% trans 'Fund this Grant' %} + +

+ {% else %} +

{% trans 'This grant is no longer active.' %}

{% endif %} +
- {% else %} -
-

{% trans 'This grant is no longer active.' %}

-
- {% endif %}