Fix issue with popover when lecture not attended

This commit is contained in:
Joshua Coles 2023-10-06 20:53:59 +01:00
parent 9a2508bb34
commit 927a9032d4

View File

@ -70,13 +70,13 @@
<% lecture.attendance.kind %>
<% end %>
<% if lecture.attendance.present? %>
<template data-popover-target="content">
<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>
</template>
<% end %>
<% end %>
</template>
</div>
</td>