This is an example of some kind of table. There are lots of things wrong with it but who cares. It is a nice
table, isn't it? I'm hoping this text spans all the way across so I can see what it looks like when it renders.
Date |
Day |
BAES Barrow |
RRDL |
Op. Berths |
Comments |
<% @january_dates.each do |e| %>
<% if e.saturday? %>
<%= e.strftime("%d/%m") %> |
<%= e.strftime("%A") %> |
- |
- |
- |
- |
<% elsif e.sunday? %>
<%= e.strftime("%d/%m") %> |
<%= e.strftime("%A") %> |
- |
- |
- |
- |
<% else %>
<%= e.strftime("%d/%m") %> |
<%= e.strftime("%A") %> |
-- |
- |
- |
- |
<% end %>
<% end %>
<%# Two concerns: %>
<%# 1. draw a table given a month, year and array of orgs %>
<%# 2. populate that table with Events for each Organisation given the date %>
<%# 3. Move this into a partial %>
Date |
Day |
BAES Barrow |
RRDL |
Op. Berths |
Comments |
<% @january_dates.each do |e| %>
<% if e.saturday? %>
<%= e.strftime("%d/%m") %> |
<%= e.strftime("%A") %> |
- |
- |
- |
- |
<% elsif e.sunday? %>
<%= e.strftime("%d/%m") %> |
<%= e.strftime("%A") %> |
- |
- |
- |
- |
<% else %>
<%= e.strftime("%d/%m") %> |
<%= e.strftime("%A") %> |
DSC 2/A |
- |
- |
- |
<% end %>
<% end %>
...