Skip to content

Commit

Permalink
Completely disable label distribution downloads in the absence of data
Browse files Browse the repository at this point in the history
  • Loading branch information
dabico committed Jan 26, 2024
1 parent 42decac commit 0d24fe0
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions views/label.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@
<caption>
<div class="d-flex justify-content-between">
<span>Instance Distribution by Category</span>
<a href="#" data-target="category-distribution-<%- label.id %>" class="link-secondary">
<i class="bi bi-download"></i>
</a>
<% if (categories.length) { %>
<a href="#" data-target="category-distribution-<%- label.id %>" class="link-secondary">
<i class="bi bi-download"></i>
</a>
<% } %>
</div>
</caption>
<thead>
Expand Down Expand Up @@ -71,9 +73,11 @@
<caption>
<div class="d-flex justify-content-between">
<span>Review Distribution by Reviewer</span>
<a href="#" data-target="reviewer-distribution-<%- label.id %>" class="link-secondary">
<i class="bi bi-download"></i>
</a>
<% if (reviewers.length) { %>
<a href="#" data-target="reviewer-distribution-<%- label.id %>" class="link-secondary">
<i class="bi bi-download"></i>
</a>
<% } %>
</div>
</caption>
<thead>
Expand Down

0 comments on commit 0d24fe0

Please sign in to comment.