From 9a45b1bc967b3ee554db2e4f5eab982b35f2cdd1 Mon Sep 17 00:00:00 2001 From: imlonghao Date: Sun, 23 Jan 2022 16:51:34 +0800 Subject: [PATCH] feat(html): use emoji instead of text in status field --- CHANGELOG.md | 4 ++++ html/logs.html | 10 +++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4422c7a..d73dcc3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- Use emoji instead of text in status field + ### Fixed - Remove the quote tag from more href diff --git a/html/logs.html b/html/logs.html index 65ab6ec..6281ce7 100644 --- a/html/logs.html +++ b/html/logs.html @@ -55,7 +55,15 @@ { targets: 3, title: "状态", - data: "result" + data: "result", + render: function (data, type, row, meta) { + switch (data) { + case "Successful": return "✅" + case "Failed": return "❌" + case "Staged": return "♻️" + default: return data + } + } }, { targets: 4,