From bc98b3731740fe701d407d589b43de82826c8840 Mon Sep 17 00:00:00 2001
From: Martin Leblanc <m26lebla@uwaterloo.ca>
Date: Thu, 12 Jan 2023 15:39:38 -0500
Subject: [PATCH] ISTWCMS-6023: Update the logic for when to print contact
 label

---
 .../04-components/card/card-elements/_links.twig       | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/patterns/04-components/card/card-elements/_links.twig b/src/patterns/04-components/card/card-elements/_links.twig
index 72e338e5..aa65b3c0 100644
--- a/src/patterns/04-components/card/card-elements/_links.twig
+++ b/src/patterns/04-components/card/card-elements/_links.twig
@@ -8,9 +8,15 @@
 
     {% block details_content %}
 
+      {% if bundle == "contact" %}
+        {% set  labelPrint = 'Link to profile' %}
+      {% else %}
+        {% set  labelPrint = 'Link to additional information' %}
+      {% endif %}
+
       {% if links.profile %}
         {% include '@components/card/card-elements/_link.twig' with {
-          'label': 'Link to additional information',
+          'label': labelPrint,
           'link_type': 'profile',
           'links': links.profile
         } %}
@@ -50,7 +56,7 @@
 
       {% if links.contact %}
         {% include '@components/card/card-elements/_link.twig' with {
-          'label': 'Contact for additional informationn',
+          'label': 'Contact for additional information',
           'link_type': 'contact-for',
           'links': links.contact
         } %}
-- 
GitLab