fix(vulnerabilities): clarify group pagination and selection counts
This commit is contained in:
parent
fbba8a20e3
commit
0d65da6223
|
|
@ -2826,7 +2826,11 @@
|
|||
"sortOldest": "الإنشاء: الأقدم أولاً",
|
||||
"expandPage": "توسيع الصفحة",
|
||||
"collapsePage": "طي الصفحة",
|
||||
"hostPagination": "عرض {{start}}–{{end}} من أصل {{total}} مجموعة حسب المضيف",
|
||||
"hostPagination": "مجموعات المضيفين {{start}}–{{end}} من {{total}}",
|
||||
"selectedPageFindings": "{{count}} ثغرة ضمن التحديد في هذه الصفحة",
|
||||
"hostsPerPage": "مجموعات المضيفين لكل صفحة",
|
||||
"tasksPerPage": "مجموعات المهام لكل صفحة",
|
||||
"recordsPerPage": "الثغرات لكل صفحة",
|
||||
"taskPagination": "عرض {{start}}–{{end}} من أصل {{total}} مجموعة حسب المهمة",
|
||||
"recordPagination": "عرض {{start}}–{{end}} من أصل {{total}} سجل ثغرة",
|
||||
"viewLabel": "عرض الثغرات",
|
||||
|
|
|
|||
|
|
@ -2969,7 +2969,11 @@
|
|||
"sortOldest": "Created: oldest first",
|
||||
"expandPage": "Expand page",
|
||||
"collapsePage": "Collapse page",
|
||||
"hostPagination": "Showing {{start}}–{{end}} of {{total}} host groups",
|
||||
"hostPagination": "Host groups {{start}}–{{end}} of {{total}}",
|
||||
"selectedPageFindings": "{{count}} findings in the selection on this page",
|
||||
"hostsPerPage": "Host groups per page",
|
||||
"tasksPerPage": "Task groups per page",
|
||||
"recordsPerPage": "Findings per page",
|
||||
"taskPagination": "Showing {{start}}–{{end}} of {{total}} task groups",
|
||||
"recordPagination": "Showing {{start}}–{{end}} of {{total}} findings",
|
||||
"viewLabel": "Vulnerability view",
|
||||
|
|
|
|||
|
|
@ -2982,7 +2982,11 @@
|
|||
"sortOldest": "Создание: сначала старые",
|
||||
"expandPage": "Развернуть страницу",
|
||||
"collapsePage": "Свернуть страницу",
|
||||
"hostPagination": "Показано {{start}}–{{end}} из {{total}} групп по хостам",
|
||||
"hostPagination": "Группы хостов {{start}}–{{end}} из {{total}}",
|
||||
"selectedPageFindings": "Уязвимостей в выбранной области на этой странице: {{count}}",
|
||||
"hostsPerPage": "Групп хостов на странице",
|
||||
"tasksPerPage": "Групп задач на странице",
|
||||
"recordsPerPage": "Уязвимостей на странице",
|
||||
"taskPagination": "Показано {{start}}–{{end}} из {{total}} групп по задачам",
|
||||
"recordPagination": "Показано {{start}}–{{end}} из {{total}} записей",
|
||||
"viewLabel": "Вид списка уязвимостей",
|
||||
|
|
|
|||
|
|
@ -2957,7 +2957,11 @@
|
|||
"sortOldest": "创建时间:最早优先",
|
||||
"expandPage": "展开本页",
|
||||
"collapsePage": "收起本页",
|
||||
"hostPagination": "显示 {{start}}–{{end}} / 共 {{total}} 个域名组",
|
||||
"hostPagination": "主机分组 {{start}}–{{end}} / 共 {{total}} 组",
|
||||
"selectedPageFindings": "本页所选范围 {{count}} 条漏洞",
|
||||
"hostsPerPage": "每页主机组数",
|
||||
"tasksPerPage": "每页任务组数",
|
||||
"recordsPerPage": "每页漏洞数",
|
||||
"taskPagination": "显示 {{start}}–{{end}} / 共 {{total}} 个任务组",
|
||||
"recordPagination": "显示 {{start}}–{{end}} / 共 {{total}} 条漏洞",
|
||||
"viewLabel": "漏洞视图",
|
||||
|
|
|
|||
|
|
@ -1582,7 +1582,7 @@ function renderVulnerabilityBrowserTable() {
|
|||
heading.title = heading.textContent;
|
||||
document.getElementById('vulnerability-host-clear').hidden = !selection;
|
||||
document.getElementById('vulnerability-host-selection-count').textContent =
|
||||
vulnT('vulnerabilityPage.groupPageCount', { count: items.length });
|
||||
vulnT(selection ? 'vulnerabilityPage.selectedPageFindings' : 'vulnerabilityPage.pageFindings', { count: items.length });
|
||||
const counts = {};
|
||||
let pending = 0;
|
||||
for (const item of items) {
|
||||
|
|
@ -1668,6 +1668,12 @@ function renderVulnerabilityPagination() {
|
|||
none: 'vulnerabilityPage.recordPagination'
|
||||
}[vulnerabilityView];
|
||||
|
||||
const pageSizeLabel = {
|
||||
host: 'vulnerabilityPage.hostsPerPage',
|
||||
task: 'vulnerabilityPage.tasksPerPage',
|
||||
none: 'vulnerabilityPage.recordsPerPage'
|
||||
}[vulnerabilityView];
|
||||
|
||||
// 计算显示范围
|
||||
const start = total === 0 ? 0 : (currentPage - 1) * pageSize + 1;
|
||||
const end = total === 0 ? 0 : Math.min(currentPage * pageSize, total);
|
||||
|
|
@ -1679,7 +1685,7 @@ function renderVulnerabilityPagination() {
|
|||
<div class="pagination-info">
|
||||
<span>${escapeHtml(vulnT(paginationLabel, { start, end, total }))}</span>
|
||||
<label class="pagination-page-size">
|
||||
${escapeHtml(vulnT('skillsPage.perPageLabel'))}
|
||||
${escapeHtml(vulnT(pageSizeLabel))}
|
||||
<select id="vulnerability-page-size-pagination" onchange="changeVulnerabilityPageSize()">
|
||||
<option value="10" ${pageSize === 10 ? 'selected' : ''}>10</option>
|
||||
<option value="20" ${pageSize === 20 ? 'selected' : ''}>20</option>
|
||||
|
|
|
|||
|
|
@ -7135,7 +7135,7 @@
|
|||
<script src="/static/js/skills.js?v=20261115-ui-20261103-personal-integration"></script>
|
||||
<script src="/static/js/fact-graph.js"></script>
|
||||
<script src="/static/js/projects.js?v=20260819-1-pagination-20261027"></script>
|
||||
<script src="/static/js/vulnerability.js?v=20261115-timestamps"></script>
|
||||
<script src="/static/js/vulnerability.js?v=20261115-pagination-units"></script>
|
||||
<script src="/static/js/assessment-finding-links.js?v=20261115-review-state"></script>
|
||||
<script src="/static/js/vulnerability-workspace.js?v=20261115-timestamps"></script>
|
||||
<script src="/static/js/vulnerability-download.js?v=20261030-2"></script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue