From 99e152480316209c2591fc9b0388be3b12d7787b Mon Sep 17 00:00:00 2001
From: Daniel Windloff <daniel.jc.windloff@googlemail.com>
Date: Fri, 2 Dec 2016 13:15:30 +0100
Subject: [PATCH] [TASK] Streamline ElementInformation template

- Change "Show" button to btn-default
- Use infobox for missing files
- Streamline button order and groups
    - preview / edit
    - history
    - opens list module

Resolves: #78864
Releases: master
Change-Id: I1e74b5e5d75a0678ab385b40f53802a30028980a
Reviewed-on: https://review.typo3.org/50851
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
---
 .../ContentElement/ElementInformation.html    | 27 ++++++++++---------
 1 file changed, 14 insertions(+), 13 deletions(-)

diff --git a/typo3/sysext/backend/Resources/Private/Templates/ContentElement/ElementInformation.html b/typo3/sysext/backend/Resources/Private/Templates/ContentElement/ElementInformation.html
index daaecd1ae56d..3c4d7a12ad7f 100644
--- a/typo3/sysext/backend/Resources/Private/Templates/ContentElement/ElementInformation.html
+++ b/typo3/sysext/backend/Resources/Private/Templates/ContentElement/ElementInformation.html
@@ -6,12 +6,7 @@
     </f:if>
 </h1>
 <f:if condition="{missingFile}">
-    <p>
-        <span class="label label-danger">
-            <f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:warning.file_missing" />
-        </span>
-        &nbsp;{missingFile}<br />
-    </p>
+    <f:be.infobox title="{f:translate(key:'LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:warning.file_missing')}" state="1">{missingFile}</f:be.infobox>
 </f:if>
 <f:if condition="{fileRenderer}">
     <p>
@@ -28,7 +23,7 @@
 </f:if>
 <f:if condition="{url}">
     <p>
-        <a class="btn btn-primary" href="{url}" target="_blank">
+        <a class="btn btn-default" href="{url}" target="_blank">
             <core:icon identifier="actions-document-view" size="small" alternativeMarkupIdentifier="inline" />
             <f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.show" />
         </a>
@@ -189,19 +184,25 @@
 
 <f:section name="action">
     <div class="btn-group" role="group">
+	<f:if condition="{line.webListUrl}">
+            <a class="btn btn-default btn-sm" href="#" onclick="{line.viewOnClick}" title="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_common.xlf:labels.showPage')}">
+                <core:icon identifier="actions-document-view" size="small" />
+            </a>
+	</f:if>
         <a class="btn btn-default btn-sm" href="{line.recordEditUrl}">
             <core:icon identifier="actions-open" size="small" />
         </a>
+    </div>
+    <div class="btn-group" role="group">
         <a class="btn btn-default btn-sm" href="{line.recordHistoryUrl}">
             <core:icon identifier="actions-document-history-open" size="small" />
         </a>
-        <f:if condition="{line.webListUrl}">
+    </div>
+    <f:if condition="{line.webListUrl}">
+        <div class="btn-group" role="group">
             <a class="btn btn-default btn-sm" href="{line.webListUrl}" title="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_common.xlf:labels.showList')}">
                 <core:icon identifier="actions-system-list-open" size="small" />
             </a>
-            <a class="btn btn-default btn-sm" href="#" onclick="{line.viewOnClick}" title="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_common.xlf:labels.showPage')}">
-                <core:icon identifier="actions-document-view" size="small" />
-            </a>
-        </f:if>
-    </div>
+        </div>
+    </f:if>
 </f:section>
-- 
GitLab