<%= if @offer_email_report do %> <% end %>

Analytics for <%= link(@site.domain, to: "//" <> @site.domain, target: "_blank") %>

<%= @current_visitors %> current visitors
<%= if @query.period == "month" do %>
<%= link(to: "/#{@site.domain}?period=month&date=#{@query.date_range.first |> Timex.shift(months: -1) |> Timex.format!("{ISOdate}")}", class: "flex items-center px-2 border-r border-grey-light") do %> <% end %> <%= link(to: "/#{@site.domain}?period=month&date=#{@query.date_range.first |> Timex.shift(months: 1) |> Timex.format!("{ISOdate}")}", class: "flex items-center px-2") do %> <% end %>
<% end %> <%= if @query.period == "day" do %>
<%= link(to: "/#{@site.domain}?period=day&date=#{@query.date_range.first |> Timex.shift(days: -1) |> Timex.format!("{ISOdate}")}", class: "flex items-center px-2 border-r border-grey-light") do %> <% end %> <%= link(to: "/#{@site.domain}?period=day&date=#{@query.date_range.first |> Timex.shift(days: 1) |> Timex.format!("{ISOdate}")}", class: "flex items-center px-2") do %> <% end %>
<% end %>
<%= timeframe_text(@site, @query) %>