Skip to content

Commit

Permalink
fix broke CLR URL in UI
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Nov 27, 2020
1 parent 42c4d73 commit 76ff438
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/grants/templates/grants/shared/active_clr_round.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<div class="container-fluid grants-container">
<div class="container">
{% for active_round in active_rounds %}
<a href="{% if active_round.sub_round_slug %}{% url 'grants:clr_grants' round_num=active_round.round_num sub_round_slug=active_round.sub_round_slug %}{% else %}{% url 'grants:clr_grants' round_num=active_round.round_num %}{% endif %}"
<a
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 %}"
class="d-block text-decoration-none position-relative my-3 text-white"
style="background: url('{% if active_round.logo %} {{ active_round.logo.url }} {% endif %}') no-repeat center ">
<div class="position-absolute"
Expand All @@ -26,8 +27,7 @@ <h5 class="font-weight-bold mb-0">
<small>{{active_round.start_date | date:'m/Y'}} - {{active_round.end_date | date:'m/Y'}}</small>
</h5>
</div>
<p>${{ active_round.total_pot }}</p>

<p class="my-auto font-weight-semibold">${{ active_round.total_pot }}</p>
</div>
</a>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion app/grants/templates/grants/shared/sidebar_search.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<ul class="nav d-inline-block font-smaller-2 mb-2 grants_nav grants_type_nav pl-0 mb-0 pb-2 mt-2 text-left font-smaller-1 font-weight-semibold">
{% for active_round in active_rounds %}
<li>
<a href="{% if active_round.sub_round_slug %}{% url 'grants:clr_grants' round_num=active_round.round_num sub_round_slug=active_round.sub_round_slug %}{% else %}{% url 'grants:clr_grants' round_num=active_round.round_num %}{% endif %}"
<a 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 %}"
:class="`btn btn-link font-smaller-1 text-decoration-none text-left ml-0 pl-0 ${ idle_grants ? 'gc-text-blue' : 'text-black'}`">
{% if active_round.display_text %}
{{ active_round.display_text }}
Expand Down

0 comments on commit 76ff438

Please sign in to comment.