security: Hide vulnerability table by default

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
[sunil@medhas.org Fix 'rol' attribute to 'role']
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy 2019-08-17 11:16:57 -04:00 committed by Sunil Mohan Adapa
parent cd54cd48b8
commit e157c1f463
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -35,20 +35,29 @@
for each installed app.
{% endblocktrans %}
</p>
<table class="table table-bordered table-condensed table-striped">
<thead>
<tr>
<th>{% trans "App Name" %}</th>
<th>{% trans "Vulnerabilities Reported" %}</th>
</tr>
</thead>
<tbody>
{% for app in apps_vulns %}
<a class="btn btn-default collapsed collapsible-button" role="button"
data-toggle="collapse" href="#collapse-vulns" aria-expanded="false"
aria-controls="collapse-vulns">
<span class="fa fa-chevron-right fa-fw" aria-hidden="true"></span>
{% trans "Show security vulnerabilities" %}
</a>
<div class="collapse" id="collapse-vulns">
<table class="table table-bordered table-condensed table-striped">
<thead>
<tr>
<td>{{ app.name }}</td>
<td>{{ app.count }}</td>
<th>{% trans "App Name" %}</th>
<th>{% trans "Vulnerabilities Reported" %}</th>
</tr>
{% endfor %}
</tbody>
</table>
</thead>
<tbody>
{% for app in apps_vulns %}
<tr>
<td>{{ app.name }}</td>
<td>{{ app.count }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}