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