Skip to content

Commit 60b9afd

Browse files
authored
Merge pull request #1161 from NASA-IMPACT/1154-delta-urls-with-a-count-of-0-on-the-collection-list-page-do-not-have-active-link-to-delta-urls-page
Conditional anchor updated for 0 Delta URLs
2 parents 6651bae + 633cc15 commit 60b9afd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sde_indexing_helper/templates/sde_collections/collection_list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ <h2 class="title">Welcome back!</h2>
148148

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

0 commit comments

Comments
 (0)