feat: add search and sort feature
All checks were successful
/ deploy_site (push) Successful in 2m18s
All checks were successful
/ deploy_site (push) Successful in 2m18s
This commit is contained in:
@ -1,27 +1,24 @@
|
||||
<%
|
||||
const priorityLabel = ['CRITICAL', 'Required', 'Recommend'][metadata.priority-1] || 'Recommend'
|
||||
const priorityColor = ['danger', 'warning', 'secondary'][metadata.priority-1] || 'secondary'
|
||||
const priorityColor = ['red', 'yellow', 'gray'][metadata.priority-1] || 'secondary'
|
||||
|
||||
const failResources = metadata.nonCompliantResources.length
|
||||
const isPass = failResources < 1
|
||||
%>
|
||||
|
||||
<tr>
|
||||
<td class="fw-bold">#<%= metadata.idx + 1 %></td>
|
||||
<td>
|
||||
<span
|
||||
class="m-0"
|
||||
data-bs-toggle="tooltip"
|
||||
data-bs-placement="bottom"
|
||||
data-bs-title="<%= metadata.description %>">
|
||||
<tr class="border-b" data-status="<%= isPass ? 'pass' : 'fail' %>" data-category-items="<%= category %>">
|
||||
<td class="font-semibold py-3 px-4">#<%= metadata.idx + 1 %></td>
|
||||
<td class="py-3 px-4">
|
||||
<span class="cursor-help" data-tooltip="<%= metadata.description %>">
|
||||
<%= metadata.name %>
|
||||
</span>
|
||||
</td>
|
||||
<td><%= metadata.bestPracticeCategory %></td>
|
||||
<td class="py-3 px-4"><%= metadata.bestPracticeCategory %></td>
|
||||
|
||||
<td>
|
||||
<td class="py-3 px-4">
|
||||
<span
|
||||
class="badge text-bg-<%= priorityColor %>"
|
||||
data-bs-toggle="tooltip"
|
||||
data-bs-placement="bottom"
|
||||
data-bs-title="<%= metadata.priorityReason %>">
|
||||
class="inline-block px-2 py-1 text-xs font-medium rounded-full bg-<%= priorityColor %>-200 text-<%= priorityColor %>-800 cursor-help"
|
||||
data-tooltip="<%= metadata.priorityReason %>">
|
||||
<%= metadata.priority %> - <%= priorityLabel %>
|
||||
</span>
|
||||
</td>
|
||||
@ -29,5 +26,3 @@
|
||||
<%- include('./bpset_progress.ejs', { metadata }) %>
|
||||
<%- include('./bpset_actions.ejs', { metadata }) %>
|
||||
</tr>
|
||||
|
||||
<%- include('./bpset_fixdialog.ejs', { metadata }) %>
|
||||
|
Reference in New Issue
Block a user