Fixed links if partial rendered from model broadcast

This commit is contained in:
David Böhm
2024-08-04 15:58:58 +02:00
parent 2df2ced8b9
commit 583b513510

View File

@@ -16,9 +16,9 @@
<span class="p-1.5 text-xs font-medium uppercase tracking-wider bg-opacity-50 text-status-<%= job.status.to_sym %> bg-status-<%= job.status %>-light rounded-lg"><%= job.status %></span>
</td>
<td class="p-3 text-sm text-left text-hsrm-gray whitespace-nowrap">
<%= link_to "edit", edit_job_url(job), class: "p-1.5 ml-2 rounded-lg bg-gray-100 font-medium" %>
<%= link_to "edit", edit_job_path(job), class: "p-1.5 ml-2 rounded-lg bg-gray-100 font-medium" %>
<% if job.able_to_cancel? %>
<%= button_to "cancel", cancel_job_url(job), method: :patch, class: "p-1.5 ml-2 rounded-lg bg-gray-100 font-medium" %>
<%= button_to "cancel", cancel_job_path(job), method: :patch, class: "p-1.5 ml-2 rounded-lg bg-gray-100 font-medium" %>
<% end %>
</td>
</tr>