Skip to content

Commit

Permalink
templates: add support for status na
Browse files Browse the repository at this point in the history
Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
  • Loading branch information
hthiery committed Jan 21, 2020
1 parent 556ec8a commit 6e98b27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/templates/package.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
<tr class="table-warning">
{% elif pkg['status'][key][0] == 'error' %}
<tr class="table-danger">
{% elif pkg['status'][key][0] == 'na' %}
<tr class="table-secondary">
{% else %}
<tr class="table-info">
{% endif %}
Expand Down
4 changes: 3 additions & 1 deletion app/templates/packages.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,10 @@

{% if packages[name]['status']['hash-license'][0] == 'ok' %}
<td class="table-success">YES</td>
{% else %}
{% elif packages[name]['status']['hash-license'][0] == 'error' %}
<td class="table-danger">NO</td>
{% elif packages[name]['status']['hash-license'][0] == 'na' %}
<td class="table-secondary">N/A</td>
{% endif %}

{% if packages[name]['status']['developers'][0] == 'ok' %}
Expand Down

0 comments on commit 6e98b27

Please sign in to comment.