src/pyams_zmi/interfaces/templates/admin-layout.pt
changeset 96 fcb69669c40c
parent 93 5949012d0262
child 99 197768d369c5
equal deleted inserted replaced
95:9957b31eb006 96:fcb69669c40c
     5 				  anonymous request.principal.id == '__none__';"
     5 				  anonymous request.principal.id == '__none__';"
     6 	  tal:attributes="lang request.locale_name">
     6 	  tal:attributes="lang request.locale_name">
     7 <head>
     7 <head>
     8 	<tal:var replace="structure tales:metas" />
     8 	<tal:var replace="structure tales:metas" />
     9 
     9 
    10 	<tal:if define="icon config.icon | nothing; url tales:absolute_url(icon);" condition="icon">
    10 	<tal:if define="icon config.icon | nothing;
       
    11 					url tales:absolute_url(icon);"
       
    12 			condition="icon">
    11 		<!-- Favorite icon -->
    13 		<!-- Favorite icon -->
    12 		<link rel="shortcut icon" tal:attributes="href url" type="image/x-icon">
    14 		<tal:var define="size icon.get_image_size()[0];
    13 		<link rel="icon" tal:attributes="href url" type="image/x-icon">
    15 						 timestamp tales:timestamp(icon)">
       
    16 			<link tal:condition="size > 144"
       
    17 				  rel="apple-touch-icon" sizes="180x180" href="${url}/++thumb++180x180?_=${timestamp}" type="${icon.content_type}" />
       
    18 			<link tal:condition="size > 114"
       
    19 				  rel="apple-touch-icon" sizes="144x144" href="${url}/++thumb++144x144?_=${timestamp}" type="${icon.content_type}" />
       
    20 			<link tal:condition="size > 72"
       
    21 				  rel="apple-touch-icon" sizes="114x114" href="${url}/++thumb++114x114?_=${timestamp}" type="${icon.content_type}" />
       
    22 			<link tal:condition="size > 32"
       
    23 				  rel="apple-touch-icon" sizes="72x72" href="${url}/++thumb++72x72?_=${timestamp}" type="${icon.content_type}" />
       
    24 			<link rel="apple-touch-icon" sizes="16x16" href="${url}/++thumb++16x16?_=${timestamp}" type="${icon.content_type}" />
       
    25 			<link tal:condition="size > 64"
       
    26 				  rel="icon" sizes="128x128" href="${url}/++thumb++128x128?_=${timestamp}" type="${icon.content_type}" />
       
    27 			<link tal:condition="size > 32"
       
    28 				  rel="icon" sizes="64x64" href="${url}/++thumb++64x64?_=${timestamp}" type="${icon.content_type}" />
       
    29 			<link tal:condition="size > 16"
       
    30 				  rel="icon" sizes="32x32" href="${url}/++thumb++32x32?_=${timestamp}" type="${icon.content_type}" />
       
    31 			<link rel="icon" sizes="16x16" href="${url}/++thumb++16x16?_=${timestamp}" type="${icon.content_type}" />
       
    32 			<link rel="shortcut icon" href="${url}" type="${icon.content_type}" />
       
    33 		</tal:var>
    14 	</tal:if>
    34 	</tal:if>
    15 
    35 
    16 	<tal:var replace="tales:resources" />
    36 	<tal:var replace="tales:resources" />
    17 
    37 
    18 	<!-- Javascript extensions -->
    38 	<!-- Javascript extensions -->