Used helper user_signed_in? insead of current_user

This commit is contained in:
2024-09-17 11:04:48 +02:00
parent 47901de8a3
commit b1b24a3b26

View File

@@ -1,6 +1,6 @@
<%= turbo_frame_tag dom_id(job, :cancel_button) do %>
<%# TODO: Refactor! %>
<% if current_user %>
<% if user_signed_in? %>
<% if allowed_to? :cancel?, job %>
<%= button_to icon("x-circle", class: "icon size-10 text-hsrm-red", title: "Druckauftrag abbrechen (Anmeldung erforderlich)"), cancel_job_path(job), method: :patch, target: "_top", form: {data: {turbo_frame: "_top", turbo_confirm: 'Den Plottauftrag wirklich abbrechen?'}}, form_class: "inline" %>
<% else %>