Skip to content

Commit 9635cf3

Browse files
committed
Rectified curated url link condition
1 parent bb7dde7 commit 9635cf3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sde_indexing_helper/templates/sde_collections/collection_list.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,16 +150,16 @@ <h2 class="title">Welcome back!</h2>
150150
<!-- Division Column -->
151151
<td class="whiteText noBorder">{{ collection.get_division_display }}</td>
152152

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

160-
<!-- Curated URLs Column - Shows count and links if > 0 -->
160+
<!-- Curated URLs Column - Shows count and links if >= 0 -->
161161
<td class="noBorder centerAlign">
162-
<a href=" {% if collection.num_curated_urls > 0 %} {% url 'sde_collections:delta_urls' collection.pk %} {% endif %} "
162+
<a href=" {% if collection.num_curated_urls >= 0 %} {% url 'sde_collections:delta_urls' collection.pk %} {% endif %} "
163163
class="btn btn-sm {% if collection.num_curated_urls > 0 %}btn-primary {% else %}disabled{% endif %}candidateCount"
164164
role="button">{{ collection.num_curated_urls|intcomma }}</a>
165165
</td>

0 commit comments

Comments
 (0)