<% (-3..3).each do |n| date = @date + n %> <% if @all_dates.include?(date) %> <%= content_tag :div, class: (:current if @date == date) do %> <%= link_to l(date), diff_path(date) %> <% end %> <% else %> <%= content_tag :div, class: (:nodata) do %> <%= link_to l(date), diff_path(date) %> <%end %> <% end %> <% end %>

Changes for <%= l @date %>

<% if @diffs.empty? %>
No changes found!
<% end %> <% @diffs.each do |diff| site = diff.site %>

<%= link_to (site.name || site.url), site.url %>

<%= link_to "↑ Top ↑", '#top' %>
<% end %>