YaleSTC/shifts

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

Summary

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