fixed more typos + added check for tooltip
This commit is contained in:
15
status.html
15
status.html
@@ -80,7 +80,7 @@
|
||||
<th scope="col">Status</th>
|
||||
<th scope="col">Reason</th>
|
||||
<th class="text-center" scope="col"
|
||||
title="link time optimization does not guarantee that package is actually build with LTO">
|
||||
title="link time optimization does not guarantee that package is actually built with LTO">
|
||||
LTO
|
||||
</th>
|
||||
<th class="text-center" scope="col" title="Debug-symbols available via debuginfod">DS
|
||||
@@ -258,7 +258,10 @@
|
||||
Info.style.backgroundColor = rowColor
|
||||
const logFile = pkg.status === 'failed' ? '<a href="https://alhp.dev/logs/' + pkg.repo.slice(pkg.repo.indexOf('-') + 1) + '/' + pkg.pkgbase + '.log" class="text-decoration-none text-white-50"><i class="fa fa-file-text fa-lg"></i></a>' : ''
|
||||
const aw = '<a href="https://archlinux.org/packages/?q=' + pkg.pkgbase + '" target="_blank" title="ArchWeb" class="text-decoration-none text-white-50 fw-bold">AW</a>'
|
||||
const info = '<i class="fa fa-info-circle fa-lg text-white-50" data-bs-html="true" data-bs-placement="bottom" data-bs-toggle="tooltip" title="' + `${pkg.build_date ? 'Build on ' + pkg.build_date + ' ' : ''}${pkg.peak_mem ? 'Peak-Memory: ' + pkg.peak_mem : ''}` + '"></i>'
|
||||
let info = ''
|
||||
if (pkg.build_date && pkg.peak_mem) {
|
||||
info = '<i class="fa fa-info-circle fa-lg text-white-50" data-bs-html="true" data-bs-placement="bottom" data-bs-toggle="tooltip" title="' + `${pkg.build_date ? 'Built on ' + pkg.build_date + ' ' : ''}${pkg.peak_mem ? 'Peak-Memory: ' + pkg.peak_mem : ''}` + '"></i>'
|
||||
}
|
||||
Info.classList.add('text-end')
|
||||
Info.innerHTML = `${logFile} ${aw} ${info}`
|
||||
ntr.appendChild(Info)
|
||||
@@ -325,13 +328,13 @@
|
||||
switch (lto) {
|
||||
case 'enabled':
|
||||
icon = {
|
||||
title: 'build with LTO',
|
||||
title: 'built with LTO',
|
||||
class: 'fa fa-check fa-lg text-success'
|
||||
}
|
||||
break
|
||||
case 'unknown':
|
||||
icon = {
|
||||
title: 'not build with LTO yet',
|
||||
title: 'not built with LTO yet',
|
||||
class: 'fa fa-hourglass-o fa-lg text-black-50'
|
||||
}
|
||||
break
|
||||
@@ -365,13 +368,13 @@
|
||||
break
|
||||
case 'unknown':
|
||||
icon = {
|
||||
title: 'Not build yet',
|
||||
title: 'Not built yet',
|
||||
class: 'fa fa-hourglass-o fa-lg text-black-50'
|
||||
}
|
||||
break
|
||||
case 'not_available':
|
||||
icon = {
|
||||
title: 'Not build with debug symbols',
|
||||
title: 'Not built with debug symbols',
|
||||
class: 'fa fa-times fa-lg text-danger'
|
||||
}
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user