From e47ec5c1a2e3e21844062076aaf50b79b0fdf291 Mon Sep 17 00:00:00 2001 From: nitrohorse <1514352+nitrohorse@users.noreply.github.com> Date: Sun, 18 Aug 2019 07:13:19 -0700 Subject: [PATCH] Update Wire's metadata warning to increase clarity (#1172) * Update Wire's metadata warning for clarity * Update cardv2 to support commas in labels * Update label delimiter to | * Update label delimiter to | for badges * Update cardv2.html formatting --- _includes/cardv2.html | 272 +++++++++++++++++----- _includes/sections/instant-messenger.html | 2 +- 2 files changed, 220 insertions(+), 54 deletions(-) diff --git a/_includes/cardv2.html b/_includes/cardv2.html index 3e8e590a..bc055202 100644 --- a/_includes/cardv2.html +++ b/_includes/cardv2.html @@ -2,88 +2,254 @@
-
- {{include.description}}
+
+ {{ include.description }}
{% if include.labels %}
- {% assign labels = include.labels | replace:", ", "," | split:"," %}
- {% for label in labels %}
- {% assign label_data = label | split:":" %}
- {% assign color = label_data[0] %}
- {% assign text = label_data[1] %}
- {% assign tooltip = label_data[2] | default: false %}
- {% assign help_icon = '' %}
- {{text}} {{ help_icon
- }}
- {% else %}
- >{{text}}
- {% endif %}
-
- {% endfor %}
+ {% assign labels = include.labels | split:"|" %}
+ {% for label in labels %}
+ {% assign label_data = label | split:":" %}
+ {% assign color = label_data[0] %}
+ {% assign text = label_data[1] %}
+ {% assign tooltip = label_data[2] | default: false %}
+ {% assign help_icon = '' %}
+ {{text}} {{ help_icon }}
+ {% else %}
+ > {{text}}
+ {% endif %}
+
+ {% endfor %}
{% endif %}