Add future styling

This commit is contained in:
Joshua Coles 2023-09-29 21:40:52 +01:00
parent 211825faf8
commit 3c55c64b3f

View File

@ -25,7 +25,8 @@
</tr> </tr>
<% lectures.each do |lecture| %> <% lectures.each do |lecture| %>
<tr> <% style = if lecture.start_time.future? then 'background: repeating-linear-gradient(45deg, #f3f4f6, #f3f4f6 10px, white 10px, white 20px);' else '' end %>
<tr style="<%= style %>">
<td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6"> <td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6">
<%= lecture.nice_title %> <%= lecture.nice_title %>
</td> </td>