From 6a665bf6e8b65de585d10ec752b7f72d915e7f1d Mon Sep 17 00:00:00 2001
From: Robert Lange <robert.lange@uni-leipzig.de>
Date: Wed, 8 Feb 2023 14:10:27 +0100
Subject: [PATCH] refs #23221 [finc] keep indentation for resolver texts next
 to traffic lights

---
 themes/finc/templates/ajax/resolverLink.phtml | 38 ++++++++++---------
 1 file changed, 21 insertions(+), 17 deletions(-)

diff --git a/themes/finc/templates/ajax/resolverLink.phtml b/themes/finc/templates/ajax/resolverLink.phtml
index 7c9b0376360..c67e5633863 100644
--- a/themes/finc/templates/ajax/resolverLink.phtml
+++ b/themes/finc/templates/ajax/resolverLink.phtml
@@ -1,7 +1,8 @@
 <!-- finc - templates - ajax - resolverLink -->
 <?php if (!empty($link['href'])): ?>
     <?php /* finc-specific change #7986 - CK - traffic light */ ?>
-    <div class="show-availability">
+    <div class="flex">
+      <div class="show-availability">
         <span class="sr-only">
           <?=$this->translate('Availability')?>: <?=$this->transEsc('resolver_link_access_' . $link['access'])?>
         </span>
@@ -10,23 +11,26 @@
         <span class="second"></span>
         <span class="last"></span>
       </div>
+      </div>
+      <?php /* finc-specific change #7986 - END */ ?>
+      <div>
+        <?= $this->externalLink(
+            $this->escapeHtmlAttr($link['href']),
+            $link['title'] ?? '',
+            [
+                'title' => $link['service_type'] ?? '',
+                'class' => !empty($link['access']) ? 'access-' . $link['access'] : ''
+            ]
+        ) ?>
+        <?php /* finc-specific change #5334 - CK */ ?>
+        <small>
+            <?= isset($link['coverage']) ? $this->escapeHtml($link['coverage']) : '' ?>
+            <?= isset($link['coverageHref'])
+                ? $this->externalLink($link['coverageHref'], $this->translate('Readme'))
+                : '' ?>
+        </small>
+      </div>
     </div>
-    <?php /* finc-specific change #7986 - END */ ?>
-    <?= $this->externalLink(
-        $this->escapeHtmlAttr($link['href']),
-        $link['title'] ?? '',
-        [
-            'title' => $link['service_type'] ?? '',
-            'class' => !empty($link['access']) ? 'access-' . $link['access'] : ''
-        ]
-    ) ?>
-    <?php /* finc-specific change #5334 - CK */ ?>
-    <small>
-        <?= isset($link['coverage']) ? $this->escapeHtml($link['coverage']) : '' ?>
-        <?= isset($link['coverageHref'])
-            ? $this->externalLink($link['coverageHref'], $this->translate('Readme'))
-            : '' ?>
-    </small>
     <?php /* finc-specific change #5334 - END */ ?>
 <?php else: ?>
     <?=isset($link['title'])?$this->escapeHtml($link['title']):''?> <?=isset($link['coverage'])?$this->transEsc($link['coverage']):''?>
-- 
GitLab