Fix issue with popover when lecture not attended
This commit is contained in:
parent
9a2508bb34
commit
927a9032d4
@ -70,13 +70,13 @@
|
|||||||
<% lecture.attendance.kind %>
|
<% lecture.attendance.kind %>
|
||||||
<% end %>
|
<% 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">
|
<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
|
In lecture: <%= lecture.attendance.duration.in_minutes.round %> minutes
|
||||||
</div>
|
</div>
|
||||||
</template>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user