Skip to content

Commit

Permalink
Conditional anchor updated for 0 Delta URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhanur Sharma committed Dec 16, 2024
1 parent 6651bae commit 633cc15
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ <h2 class="title">Welcome back!</h2>

<!-- Delta URLs Column - Shows count and links if > 0 -->
<td class="noBorder centerAlign">
<a href=" {% if collection.num_delta_urls > 0 %} {% url 'sde_collections:delta_urls' collection.pk %} {% endif %} "
class="btn btn-sm {% if collection.num_delta_urls > 0 %}btn-primary {% else %}disabled{% endif %}candidateCount"
<a href=" {% if collection.num_delta_urls >= 0 %} {% url 'sde_collections:delta_urls' collection.pk %} {% endif %} "
class="btn btn-sm {% if collection.num_delta_urls >= 0 %}btn-primary {% else %}disabled{% endif %}candidateCount"
role="button">{{ collection.num_delta_urls|intcomma }}</a>
</td>

Expand Down

0 comments on commit 633cc15

Please sign in to comment.