Add status symbols for upcoming prep and review entries
This commit is contained in:
parent
927a9032d4
commit
c706aa2561
@ -58,26 +58,30 @@
|
||||
<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 %>
|
||||
|
||||
<template data-popover-target="content">
|
||||
<% if lecture.attendance.present? %>
|
||||
<div class="absolute p-1 w-max whitespace-normal break-words rounded-lg border border-blue-gray-50 bg-white text-blue-gray-500 shadow-lg shadow-blue-gray-500/10 focus:outline-none" data-popover-target="card">
|
||||
In lecture: <%= lecture.attendance.duration.in_minutes.round %> minutes
|
||||
</div>
|
||||
<% end %>
|
||||
</template>
|
||||
</div>
|
||||
|
||||
<template data-popover-target="content">
|
||||
<% if lecture.attendance.present? %>
|
||||
<div class="absolute p-1 w-max whitespace-normal break-words rounded-lg border border-blue-gray-50 bg-white text-blue-gray-500 shadow-lg shadow-blue-gray-500/10 focus:outline-none" data-popover-target="card">
|
||||
In lecture: <%= lecture.attendance.duration.in_minutes.round %> minutes
|
||||
</div>
|
||||
<% end %>
|
||||
</template>
|
||||
</td>
|
||||
|
||||
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user