Add document links to work items

This commit is contained in:
2023-10-08 16:40:16 +01:00
parent f712837f91
commit 3d078f215f
3 changed files with 15 additions and 6 deletions
+8 -5
View File
@@ -8,6 +8,12 @@
</td>
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
<% if work_item.started? && !work_item.completed? %>
<%= button_to "Complete",
work_item_complete_path(work_item),
class: 'action-button'
%>
<% end %>
</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">
@@ -48,11 +54,8 @@
</td>
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
<% if work_item.started? && !work_item.completed? %>
<%= button_to "Complete",
work_item_complete_path(work_item),
class: 'action-button'
%>
<% if work_item.document_link.present? %>
<%= link_to "Open recording", work_item.document_link %>
<% end %>
</td>
</tr>