[FEATURE] Show a special image for official distributions in EM 92/42292/3
authorDaniel Maier <dani-maier@gmx.de>
Wed, 5 Aug 2015 19:43:33 +0000 (21:43 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Wed, 5 Aug 2015 20:57:39 +0000 (22:57 +0200)
For official distributions a special image is displayed in the "Get
preconfigured distribution" list. So it is easier now to distinguish
the official distributions from others.

Resolves: #68773
Releases: master
Change-Id: I5a6b1b5925e9c61af984b1b0faaea5711973549e
Reviewed-on: http://review.typo3.org/42292
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/core/Documentation/Changelog/master/Feature-68773-ShowASpecialImageForOfficialDistributionsInExtensionManager.rst [new file with mode: 0644]
typo3/sysext/extensionmanager/Resources/Private/Partials/List/Distribution.html
typo3/sysext/extensionmanager/Resources/Public/Images/OfficialDistribution.png [new file with mode: 0644]

diff --git a/typo3/sysext/core/Documentation/Changelog/master/Feature-68773-ShowASpecialImageForOfficialDistributionsInExtensionManager.rst b/typo3/sysext/core/Documentation/Changelog/master/Feature-68773-ShowASpecialImageForOfficialDistributionsInExtensionManager.rst
new file mode 100644 (file)
index 0000000..caaa1ce
--- /dev/null
@@ -0,0 +1,8 @@
+======================================================================================
+Feature: #68773 - Show a special image for official distributions in Extension Manager
+======================================================================================
+
+Description
+===========
+
+For official distributions a special image is displayed in the "Get preconfigured distribution" list. So it is easier now to distinguish the official distributions from others.
\ No newline at end of file
index 70db92a..aabf610 100644 (file)
@@ -6,12 +6,24 @@
                                <em:typo3Dependency extension="{distribution}" />
                        </div>
                </f:if>
-               <em:image
-                               src="EXT:{distribution.extensionKey}/Resources/Public/Images/Distribution.png" alt="{distribution.title}"
-                               fallbackImage="EXT:extensionmanager/Resources/Public/Images/Distribution.png"
-                               height="225"
-                               width="300"
-                       />
+               <f:if condition="{official}">
+                       <f:then>
+                               <em:image
+                                               src="EXT:{distribution.extensionKey}/Resources/Public/Images/Distribution.png" alt="{distribution.title}"
+                                               fallbackImage="EXT:extensionmanager/Resources/Public/Images/OfficialDistribution.png"
+                                               height="225"
+                                               width="300"
+                                               />
+                       </f:then>
+                       <f:else>
+                               <em:image
+                                               src="EXT:{distribution.extensionKey}/Resources/Public/Images/Distribution.png" alt="{distribution.title}"
+                                               fallbackImage="EXT:extensionmanager/Resources/Public/Images/Distribution.png"
+                                               height="225"
+                                               width="300"
+                                               />
+                       </f:else>
+               </f:if>
                <div class="distribution-hover">
                        <div class="distribution-hover-inner">
                                <dl class="dl-horizontal">
diff --git a/typo3/sysext/extensionmanager/Resources/Public/Images/OfficialDistribution.png b/typo3/sysext/extensionmanager/Resources/Public/Images/OfficialDistribution.png
new file mode 100644 (file)
index 0000000..42fc7b1
Binary files /dev/null and b/typo3/sysext/extensionmanager/Resources/Public/Images/OfficialDistribution.png differ