Skip to content

Commit

Permalink
Merge pull request #1161 from NASA-IMPACT/1154-delta-urls-with-a-coun…
Browse files Browse the repository at this point in the history
…t-of-0-on-the-collection-list-page-do-not-have-active-link-to-delta-urls-page

Conditional anchor updated for 0 Delta URLs
  • Loading branch information
CarsonDavis authored Dec 18, 2024
2 parents 6651bae + 633cc15 commit 60b9afd
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 60b9afd

Please sign in to comment.