Skip to content

Commit

Permalink
Render exploitability as a badge #98
Browse files Browse the repository at this point in the history
Signed-off-by: tdruez <[email protected]>
  • Loading branch information
tdruez committed Nov 18, 2024
1 parent 6f4f3d1 commit e228710
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
{% trans 'Concluded license' %}
</span>
</th>
<th style="width: 140px;">
<th style="width: 175px;">
<span class="help_text" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-title="{{ help_texts.review_status }}">
{% trans 'Compliance status' %}
</span>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{% if instance.exploitability %}
<span class="
{% if instance.exploitability == 0.5 %}text-success
{% elif instance.exploitability == 1.0 %}text-warning
{% elif instance.exploitability == 2.0 %}text-danger
<span class="badge
{% if instance.exploitability == 0.5 %}bg-success
{% elif instance.exploitability == 1.0 %}bg-warning
{% elif instance.exploitability == 2.0 %}bg-danger
{% else %}bg-secondary
{% endif %}
">
{{ instance.get_exploitability_display }}
Expand Down

0 comments on commit e228710

Please sign in to comment.