YaleSTC/shifts

View on GitHub
app/views/timeline/_footer.html.erb

Summary

Maintainability
Test Coverage
<div class="shifts_bottom" style="clear:both">
  <div class="shift_links">
    <%= link_to HTMLEntities.new.decode("&lt;&lt; Earlier"), {date: (@period_start - 7), anchor: @period_start - 1        }, class: "last_week"  %>
    <%= link_to HTMLEntities.new.decode("Later &gt;&gt;"),   {date: (@period_start + 7), anchor: @period_start + (2*7) - 1}, class: "next_week" %>
  </div>
  <div class="week_title">
    <%= @period_start.to_s(:just_date_long) %> to <%= (@period_start + 6).to_s(:just_date_long) %>
  </div>
</div>