Updated main layout logo settings
authorThierry Florac <tflorac@ulthar.net>
Wed, 26 Sep 2018 16:57:54 +0200
changeset 93 5949012d0262
parent 92 7103aeba5eb7
child 94 4d9e04453c06
Updated main layout logo settings
src/pyams_zmi/interfaces/templates/admin-layout.pt
--- a/src/pyams_zmi/interfaces/templates/admin-layout.pt	Wed Sep 26 16:56:43 2018 +0200
+++ b/src/pyams_zmi/interfaces/templates/admin-layout.pt	Wed Sep 26 16:57:54 2018 +0200
@@ -31,7 +31,10 @@
 				  tal:define="logo config.logo | nothing"
 				  tal:condition="logo">
 				<a href="/admin">
-					<img tal:attributes="src tales:absolute_url(logo, '++thumb++200x36.png');" />
+					<img tal:define="thumbnails tales:thumbnails(logo);
+									 thumb thumbnails.get_thumbnail('220x50');
+									 src tales:absolute_url(thumb);"
+						 src="${src}?_=${tales:timestamp(thumb)}" />
 				</a>
 			</span>
 		</div>