Add status symbols for upcoming prep and review entries

This commit is contained in:
Joshua Coles 2023-10-06 21:04:34 +01:00
parent 927a9032d4
commit c706aa2561

View File

@ -58,17 +58,22 @@
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
</td>
<% else %>
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500 flex justify-center" data-controller="popover">
<div data-action="mouseenter->popover#show mouseleave->popover#hide">
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500" data-controller="popover" data-action="mouseenter->popover#show mouseleave->popover#hide">
<div class="flex flex-row gap-2">
<% if lecture.attendance.nil? %>
<i class="fa fa-times text-red-700"></i>
<% elsif lecture.attendance.kind == 'concurrent' %>
<i class="fa fa-hourglass-start text-green-700"></i>
<i class="fa fa-chalkboard-user text-green-700"></i>
<i class="fa fa-hourglass-end text-green-700"></i>
<% elsif lecture.attendance.kind == 'catchup' %>
<i class="fa fa-video text-green-700"></i>
<% else %>
<% lecture.attendance.kind %>
<% end %>
</div>
<template data-popover-target="content">
<% if lecture.attendance.present? %>
@ -77,7 +82,6 @@
</div>
<% end %>
</template>
</div>
</td>
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">