From d64528665d1284a7e92b3c4af2a294dae907cebf Mon Sep 17 00:00:00 2001 From: John Cowen Date: Wed, 20 Jun 2018 15:14:16 +0100 Subject: [PATCH] Use the pill styling elsewhere... TODO: Probably change the %tag to %pill now I've remembered the word I was looking for! --- ui-v2/app/styles/app.scss | 1 + ui-v2/app/styles/routes/dc/service/index.scss | 2 ++ ui-v2/app/templates/dc/nodes/-services.hbs | 6 ++++-- ui-v2/app/templates/dc/services/index.hbs | 6 ++++-- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ui-v2/app/styles/app.scss b/ui-v2/app/styles/app.scss index cebc321f1..9fa550d5f 100644 --- a/ui-v2/app/styles/app.scss +++ b/ui-v2/app/styles/app.scss @@ -45,6 +45,7 @@ @import 'components/notice'; @import 'routes/dc/service/index'; +@import 'routes/dc/nodes/index'; @import 'routes/dc/kv/index'; main a { diff --git a/ui-v2/app/styles/routes/dc/service/index.scss b/ui-v2/app/styles/routes/dc/service/index.scss index e8883041c..d60c5c77a 100644 --- a/ui-v2/app/styles/routes/dc/service/index.scss +++ b/ui-v2/app/styles/routes/dc/service/index.scss @@ -6,6 +6,8 @@ html.template-service.template-show main dl { html.template-service.template-show main dt { display: none; } +// TODO: Generalize this, also see nodes/index +html.template-service.template-list td.tags span, html.template-service.template-show main dd span { @extend %tag; background-color: $gray; diff --git a/ui-v2/app/templates/dc/nodes/-services.hbs b/ui-v2/app/templates/dc/nodes/-services.hbs index 185875f3c..1aeaa01be 100644 --- a/ui-v2/app/templates/dc/nodes/-services.hbs +++ b/ui-v2/app/templates/dc/nodes/-services.hbs @@ -20,9 +20,11 @@ {{item.Port}} - + {{#if (gt item.Tags.length 0)}} - {{join ', ' item.Tags}} + {{#each item.Tags as |item|}} + {{item}} + {{/each}} {{/if}} {{/block-slot}} diff --git a/ui-v2/app/templates/dc/services/index.hbs b/ui-v2/app/templates/dc/services/index.hbs index 067c63107..5267078b6 100644 --- a/ui-v2/app/templates/dc/services/index.hbs +++ b/ui-v2/app/templates/dc/services/index.hbs @@ -35,9 +35,11 @@
{{format_number item.ChecksCritical}}
- + {{#if (gt item.Tags.length 0)}} - {{join ', ' item.Tags}} + {{#each item.Tags as |item|}} + {{item}} + {{/each}} {{/if}} {{/block-slot}}