Skip to content

Commit

Permalink
Rectified curated url link condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhanur Sharma committed Dec 31, 2024
1 parent bb7dde7 commit 9635cf3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,16 +150,16 @@ <h2 class="title">Welcome back!</h2>
<!-- Division Column -->
<td class="whiteText noBorder">{{ collection.get_division_display }}</td>

<!-- Delta URLs Column - Shows count and links if > 0 -->
<!-- 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"
role="button">{{ collection.num_delta_urls|intcomma }}</a>
</td>

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

0 comments on commit 9635cf3

Please sign in to comment.