diff options
Diffstat (limited to 'app/views/events/index.html.erb')
-rw-r--r-- | app/views/events/index.html.erb | 36 |
1 files changed, 29 insertions, 7 deletions
diff --git a/app/views/events/index.html.erb b/app/views/events/index.html.erb index f07b5df..5c9402f 100644 --- a/app/views/events/index.html.erb +++ b/app/views/events/index.html.erb @@ -6,10 +6,29 @@ <%# <%= link_to "New event", new_event_path %1> %> -<table class="table table-success table-striped table-bordered mt-5"> +<style type="text/css" media="screen"> + table { + width: 100%; + border-collapse: collapse; + background: lightgreen; + margin-top: 30px; + table-layout: fixed; + border: 2px solid; + } + th, td { + border: 1px solid; + padding: 3px; + } +</style> + +<table> + <col style="width: 5%"> + <col style="width: 10%"> + <col style="width: 85%"> <thead> <tr> - <th>January Date</th> + <th>Date</th> + <th>Bunter</th> <th>Day</th> </tr> </thead> @@ -17,17 +36,20 @@ <% @january_dates.each do |e| %> <% if e.saturday? %> <tr> - <td style="color: gray"><%= e %></td> - <td style="color: gray"><%= e.strftime("%A") %></td> + <td style="background: lightgray; color: gray"><%= e.day %></td> + <td style="background: lightgray; color: gray">Toss</td> + <td style="background: lightgray; color: gray"><%= e.strftime("%A") %></td> </tr> <% elsif e.sunday? %> <tr> - <td style="color: gray"><%= e %></td> - <td style="color: gray"><%= e.strftime("%A") %></td> + <td style="background: lightgray; color: gray"><%= e.day %></td> + <td style="background: lightgray; color: gray">Toss</td> + <td style="background: lightgray; color: gray"><%= e.strftime("%A") %></td> </tr> <% else %> <tr> - <td><%= e %></td> + <td><%= e.day %></td> + <td>Toss</td> <td><%= e.strftime("%A") %></td> </tr> <% end %> |