[CLEANUP] Streamline Avatar-related code in EXT:backend
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Resources / Private / Templates / Avatar / Main.html
index dac008f..bf3eed7 100644 (file)
@@ -1,10 +1,10 @@
-    <span class="avatar">
-    <span class="avatar-image">
-        {image -> f:format.raw()}
-    </span>
-    <f:if condition="{icon}">
-    <span class="avatar-icon">
-        {icon -> f:format.raw()}
-    </span>
-    </f:if>
-</span>
\ No newline at end of file
+<span class="avatar">
+       <span class="avatar-image">
+               {image -> f:format.raw()}
+       </span>
+       <f:if condition="{showIcon}">
+               <span class="avatar-icon">
+                       <core:iconForRecord table="be_users" row="{backendUser}" size="small" />
+               </span>
+       </f:if>
+</span>