From 5b0a56691bcbd5c251a460c095a8468eed1bfb7c Mon Sep 17 00:00:00 2001 From: Samuel Shifterovich Date: Sat, 15 Dec 2018 12:16:20 +0100 Subject: [PATCH] Label tooltip support --- _includes/card.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/_includes/card.html b/_includes/card.html index e64b7a37..11847f44 100644 --- a/_includes/card.html +++ b/_includes/card.html @@ -15,7 +15,14 @@ {% assign label_data = label | split:":" %} {% assign color = label_data[0] %} {% assign text = label_data[1] %} - {{text}} + {% assign tooltip = label_data[2] | default: "" %} + {% assign help_icon = '' %} + {{text}} {{ help_icon + }} + {% else %} + >{{text}} + {% endif %} + {% endfor %} {% endif %}