Add document links to work items
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user