Make status and relevant smiley emote float right

This commit is contained in:
bel
2020-03-15 17:20:44 +00:00
parent 0ccdee8bd1
commit 99e33214b9
3 changed files with 21 additions and 5 deletions

View File

@@ -38,8 +38,16 @@ function init() {
})
}
function format(job) {
var smiley = "128522"
if (job.last.status != 0) {
smiley = "129324"
}
smiley = `&#${smiley};`
return `<tr><td><details>
<summary name="${job.id}">(${job.last.status}) ${job.title}</summary>
<summary name="${job.id}"}">
<span>${job.title}</span>
<span>${job.last.status} ${smiley}</span>
</summary>
<table>
<tr>
<td><code>${job.cron}</code></td>