49 lines
1.6 KiB
Plaintext
49 lines
1.6 KiB
Plaintext
<tr class="bg-purple-200">
|
|
<td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6">
|
|
<%= work_item.title %>
|
|
</td>
|
|
|
|
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
|
|
</td>
|
|
|
|
<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">
|
|
<i class="fa fa-times text-red-700"></i>
|
|
</div>
|
|
|
|
<template data-popover-target="content">
|
|
<% unless work_item.tracked_time_entries.empty? %>
|
|
<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>
|
|
Time spent: <%= humanise_duration(work_item.total_overall_time) %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
</template>
|
|
</td>
|
|
|
|
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
|
|
<% if work_item.start_time.future? %>
|
|
<%= button_to "Prepare",
|
|
"X",
|
|
class: 'action-button'
|
|
%>
|
|
<% elsif work_item.start_time.past? && work_item.due_date.future? %>
|
|
<%= button_to "Start",
|
|
"X",
|
|
class: 'action-button'
|
|
%>
|
|
<% else %>
|
|
<div class="flex justify-center">
|
|
<%= button_to "Review",
|
|
"X",
|
|
class: 'action-button'
|
|
%>
|
|
</div>
|
|
<% end %>
|
|
</td>
|
|
|
|
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
|
|
</td>
|
|
</tr>
|