Use HTML5 picture element to prefer SVG logo

This commit is contained in:
Holger Jeromin 2015-09-12 20:50:48 +02:00 committed by Tom Hughes
parent 284b56bee9
commit ecc4b64a23

View file

@ -1,7 +1,10 @@
<header class="closed">
<h1>
<a href="<%= root_path %>" class="geolink">
<%= image_tag "osm_logo.png", :alt => t('layouts.logo.alt_text'), :class => 'logo' %>
<picture>
<source srcset="<%= image_path "osm_logo.svg" %>" type="image/svg+xml">
<%= image_tag "osm_logo.png", :alt => t('layouts.logo.alt_text'), :class => 'logo' %>
</picture>
<%= t 'layouts.project_name.h1' %>
</a>
</h1>