app/views/maps/_header.html.erb
<header class="wrapper map-header">
<div class="title">
<div class="map-logo"><%= icon "globe" %></div>
<div class="map-title">
<% if edit_mode? %>
<h1 class="name"><%= f.input :name %></h1>
<% else %>
<h1 class="name"><%= map.name %></h1>
<time class="last-update" datetime="<%= map.updated_at.to_datetime.rfc3339 %>">
<%= t 'maps.last_updated', date: time_ago_in_words(map.updated_at) %>
</time>
<% end %>
</div>
</div>
<% unless edit_mode? %>
<%= render 'shared/counters', presenter: CountersPresenter.new(object: map, ctx: self, size: :big) %>
<% end %>
</header>