[BUGFIX] Render ext icon in EM only if available 93/26693/3
authorGeorg Ringer <georg.ringer@gmail.com>
Wed, 8 Jan 2014 14:22:26 +0000 (15:22 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 8 Jan 2014 14:39:58 +0000 (15:39 +0100)
Even if the ext icon is required, it can happen that it is still not
there. Currently this leads to an ugly output which can be easily
fixed by just checking if the icon is there.

Change-Id: I207a93bb796510fba6096085a86f1dd832100e06
Resolves: #54838
Releases: 6.2
Reviewed-on: https://review.typo3.org/26693
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/extensionmanager/Resources/Private/Templates/List/Index.html

index 74c0530..d359536 100644 (file)
                                                <td>
                                        </f:else>
                                </f:if>
-
-                                       <img class="ext-icon" src="../{extension.siteRelPath}/{extension.ext_icon}" alt="{extension.title}" /><em:configureExtension extension="{extension}" forceConfiguration="0" showDescription="1">{extension.title}</em:configureExtension>
+                                       <f:if condition="{extension.ext_icon}">
+                                               <img class="ext-icon" src="../{extension.siteRelPath}/{extension.ext_icon}" alt="{extension.title}" />
+                                       </f:if>
+                                       <em:configureExtension extension="{extension}" forceConfiguration="0" showDescription="1">{extension.title}</em:configureExtension>
                                </td>
                                <td>
                                        {extensionKey}