Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

No badge for SELinux state if it is null. #207

Merged
merged 1 commit into from
May 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ <h4 class="tab-title">Security</h4>

{% if object.deviceinfo.selinux_state.enabled and object.deviceinfo.selinux_state.mode == 'enforcing'%}
<span class="p-1 badge badge-pill badge-success">✓</span>
{% else %}
{% elif object.deviceinfo.selinux_state.enabled is not None %}
<span class="p-1 badge badge-pill badge-warning">✗</span>
{% endif %}
</td>
Expand Down