|
1 | | -{% load humanize %} |
| 1 | +{% load humanize i18n %} |
2 | 2 | <div class="container-fluid grants-container"> |
3 | 3 | <div class="container"> |
4 | | - <div class="row"> |
5 | | - {% for active_round in active_rounds %} |
6 | | - <div class="col-12 col-lg-6"> |
7 | | - <a |
8 | | - href="/grants/clr{% if active_round.customer_name %}/{{ active_round.customer_name }}{% endif %}{% if active_round.round_num %}/{{ active_round.round_num }}{% endif %}{% if active_round.sub_round_slug %}/{{ active_round.sub_round_slug }}{% endif %}" |
9 | | - class="d-block text-decoration-none position-relative my-3 text-white" |
10 | | - > |
11 | | - <div class="position-absolute w-100 h-100" |
12 | | - style="top: 0; right: 0; z-index: 5; |
13 | | - {% if active_round.logo %} |
14 | | - background: url('{{ active_round.logo.url }}') no-repeat center; |
15 | | - {% endif %} |
16 | | - background-color: #0044e088;" |
| 4 | + <div class="subheading font-weight-bold d-flex justify-content-between" @click="toggleActiveCLRs"> |
| 5 | + <span>{% trans "Active CLR Rounds" as filts %}{{ filts|upper }}</span> |
| 6 | + <span class=" fa fa-fw fa-chevron-down" v-if="!show_active_clrs"></span> |
| 7 | + <span class=" fa fa-fw fa-chevron-up" v-if="show_active_clrs"></span> |
| 8 | + </div> |
| 9 | + <b-collapse :visible="show_active_clrs" id="active_clrs_collapse" > |
| 10 | + |
| 11 | + <div class="row"> |
| 12 | + {% for active_round in active_rounds %} |
| 13 | + <div class="col-12 col-lg-6"> |
| 14 | + <a |
| 15 | + href="/grants/clr{% if active_round.customer_name %}/{{ active_round.customer_name }}{% endif %}{% if active_round.round_num %}/{{ active_round.round_num }}{% endif %}{% if active_round.sub_round_slug %}/{{ active_round.sub_round_slug }}{% endif %}" |
| 16 | + class="d-block text-decoration-none position-relative my-3 text-white" |
17 | 17 | > |
18 | | - </div> |
19 | | - <div class="d-flex px-4 py-3 justify-content-between position-relative" style="z-index: 10"> |
20 | | - <div class="d-flex"> |
21 | | - <div class="bg-white mr-3 overflow-hidden" style="width: 56px; height: 56px; border-radius: 100px;"> |
22 | | - <img class="img-responsive" style="width: 100%; height: 100%;" |
23 | | - src="/dynamic/avatar/{{ active_round.owner.handle | default:'gitcoinco'}}" /> |
| 18 | + <div class="position-absolute w-100 h-100" |
| 19 | + style="top: 0; right: 0; z-index: 5; |
| 20 | + {% if active_round.logo %} |
| 21 | + background: url('{{ active_round.logo.url }}') no-repeat center; |
| 22 | + {% endif %} |
| 23 | + background-color: #0044e088;" |
| 24 | + > |
| 25 | + </div> |
| 26 | + <div class="d-flex px-4 py-3 justify-content-between position-relative" style="z-index: 10"> |
| 27 | + <div class="d-flex"> |
| 28 | + <div class="bg-white mr-3 overflow-hidden" style="width: 56px; height: 56px; border-radius: 100px;"> |
| 29 | + <img class="img-responsive" style="width: 100%; height: 100%;" |
| 30 | + src="/dynamic/avatar/{{ active_round.owner.handle | default:'gitcoinco'}}" /> |
| 31 | + </div> |
| 32 | + <h5 class="font-weight-bold my-auto"> |
| 33 | + {% if active_round.display_text %} |
| 34 | + {{ active_round.display_text|upper }} |
| 35 | + {% elif active_round.customer_name %} |
| 36 | + {{ active_round.customer_name|upper }} - {{ active_round.round_num }} |
| 37 | + {% elif active_round.sub_round_slug %} |
| 38 | + {{ active_round.sub_round_slug|upper }} - {{ active_round.round_num }} |
| 39 | + {% else %} |
| 40 | + {{ active_round.round_num }} |
| 41 | + {% endif %} |
| 42 | + <br /> |
| 43 | + <small class="font-body font-weight-semibold"> |
| 44 | + {{active_round.start_date | date:'m/Y'}} - {{active_round.end_date | date:'m/Y'}} |
| 45 | + </small> |
| 46 | + </h5> |
24 | 47 | </div> |
25 | | - <h5 class="font-weight-bold my-auto"> |
26 | | - {% if active_round.display_text %} |
27 | | - {{ active_round.display_text|upper }} |
28 | | - {% elif active_round.customer_name %} |
29 | | - {{ active_round.customer_name|upper }} - {{ active_round.round_num }} |
30 | | - {% elif active_round.sub_round_slug %} |
31 | | - {{ active_round.sub_round_slug|upper }} - {{ active_round.round_num }} |
32 | | - {% else %} |
33 | | - {{ active_round.round_num }} |
34 | | - {% endif %} |
35 | | - <br /> |
36 | | - <small class="font-body font-weight-semibold"> |
37 | | - {{active_round.start_date | date:'m/Y'}} - {{active_round.end_date | date:'m/Y'}} |
38 | | - </small> |
39 | | - </h5> |
| 48 | + <p class="my-auto font-weight-semibold">${{ active_round.total_pot|floatformat:"0"|intcomma }}</p> |
40 | 49 | </div> |
41 | | - <p class="my-auto font-weight-semibold">${{ active_round.total_pot|floatformat:"0"|intcomma }}</p> |
42 | | - </div> |
43 | | - </a> |
44 | | - </div> |
45 | | - {% endfor %} |
46 | | - </div> |
| 50 | + </a> |
| 51 | + </div> |
| 52 | + {% endfor %} |
| 53 | + </div> |
| 54 | + </b-collapse> |
| 55 | + |
47 | 56 | </div> |
48 | 57 | </div> |
0 commit comments