Skip to content

Commit

Permalink
only show nodes if it's positive
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom committed Jan 13, 2025
1 parent 2456c97 commit 81a9e84
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
<span class="card-text"> (<%= session.job_id %>)</span>
<div class="float-end">
<%- if session.starting? || session.running? -%>
<%- if num_nodes.positive? -%>
<span class="badge <%= badge_class %> rounded-pill"><%= pluralize(num_nodes, "node") %></span>
<span class="card-text"> | </span>
<%- end -%>
<span class="badge <%= badge_class %> rounded-pill"><%= pluralize(num_cores, "core") %></span>
<span class="card-text"> | </span>
<%- end -%>
Expand Down

0 comments on commit 81a9e84

Please sign in to comment.