<%= page_title %>

<% if @from_date.present? && @to_date.present? -%>

Viewing <%= distance_of_time_in_words @from_date, @to_date %> of metrics from <%= @from_date.strftime('%b %e, %Y at %H:%M %Z') %>

<% end -%> <% if @metric.present? -%>

<% for parent in @metric.ancestors.reverse -%> <%= link_to parent.name, metric_path(parent) %> > <% end -%> <%= @metric.name %>

<% end -%>