From 119b80edc02d74288e99eafa31e3ead403b63352 Mon Sep 17 00:00:00 2001 From: TwinProduction Date: Wed, 27 Jan 2021 18:46:51 -0500 Subject: [PATCH] Add section for badges --- web/app/src/views/Details.vue | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/web/app/src/views/Details.vue b/web/app/src/views/Details.vue index 541f0b90..420c8585 100644 --- a/web/app/src/views/Details.vue +++ b/web/app/src/views/Details.vue @@ -1,5 +1,5 @@ @@ -58,6 +68,9 @@ export default { } }); }, + generateBadgeImageURL(duration) { + return `${SERVER_URL}/api/v1/badges/uptime/${duration}/${this.serviceStatus.key}`; + }, prettifyUptime(uptime) { if (!uptime) { return "0%";