YaleSTC/shifts

View on GitHub
app/views/punch_clocks/index.html.erb

Summary

Maintainability
Test Coverage
<% title "Running Punch Clocks" %>

<% if @punch_clocks.empty? %>
  There are currently no punch clocks running.
  <%= form_tag action: :create do %>
    <%= submit_tag "Punch in" %>
  <% end %>
<% else %>
  <%= render partial: "clocks", object: @punch_clocks %>
<% end %>