Add status symbols for upcoming prep and review entries
This commit is contained in:
parent
927a9032d4
commit
c706aa2561
@ -58,17 +58,22 @@
|
|||||||
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
|
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
|
||||||
</td>
|
</td>
|
||||||
<% else %>
|
<% else %>
|
||||||
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500 flex justify-center" data-controller="popover">
|
<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 data-action="mouseenter->popover#show mouseleave->popover#hide">
|
<div class="flex flex-row gap-2">
|
||||||
<% if lecture.attendance.nil? %>
|
<% if lecture.attendance.nil? %>
|
||||||
<i class="fa fa-times text-red-700"></i>
|
<i class="fa fa-times text-red-700"></i>
|
||||||
<% elsif lecture.attendance.kind == 'concurrent' %>
|
<% 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-chalkboard-user text-green-700"></i>
|
||||||
|
|
||||||
|
<i class="fa fa-hourglass-end text-green-700"></i>
|
||||||
<% elsif lecture.attendance.kind == 'catchup' %>
|
<% elsif lecture.attendance.kind == 'catchup' %>
|
||||||
<i class="fa fa-video text-green-700"></i>
|
<i class="fa fa-video text-green-700"></i>
|
||||||
<% else %>
|
<% else %>
|
||||||
<% lecture.attendance.kind %>
|
<% lecture.attendance.kind %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</div>
|
||||||
|
|
||||||
<template data-popover-target="content">
|
<template data-popover-target="content">
|
||||||
<% if lecture.attendance.present? %>
|
<% if lecture.attendance.present? %>
|
||||||
@ -77,7 +82,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
|
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user