]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/_header.html.erb
Use HTML5 picture element to prefer SVG logo
[rails.git] / app / views / layouts / _header.html.erb
index 869d76cd7e7d918e04d82fede285619ac6c84d6e..7e4dd96d3dec3e73456aae0176e0f0e27edf7e62 100644 (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>
@@ -63,7 +66,7 @@
           <li>
             <%= link_to inbox_path(:display_name => @user.display_name) do %>
               <span class='count-number'><%= number_with_delimiter(@user.new_messages.size) %></span>
-              <%= t('message.inbox.my_inbox') %>
+              <%= t('user.view.my messages') %>
             <% end %>
           </li>
           <li>