diff --git a/app/views/operator/jobs/_job_tr.html.erb b/app/views/operator/jobs/_job_tr.html.erb index dd6b7d1..6a099fa 100644 --- a/app/views/operator/jobs/_job_tr.html.erb +++ b/app/views/operator/jobs/_job_tr.html.erb @@ -17,12 +17,16 @@ <% if job.pdf.attached? %> - <%= link_to_if job.printing?, icon("document-arrow-down", class: "text-hsrm-gray #{ unless job.printing?; 'text-opacity-25' else; 'hover:text-opacity-75'; end} size-6 inline", title: "Download"), job.pdf, download:true %> <%#= link_to job.pdf.filename, rails_blob_path(job.pdf, disposition: "attachment") %> <%= link_to_if job.printing?, truncate(job.pdf.filename.to_s, length: 45), job.pdf, download:true %> - - <%=number_to_human_size job.pdf.blob.byte_size%> - + <% if job.printing? %> + <%= link_to job.pdf, download:true do %> + + <%= icon("document-arrow-down", class: "text-hsrm-gray size-6 inline", title: "Download") %> + <%=number_to_human_size job.pdf.blob.byte_size%> + + <% end %> + <% end %> <% end %> <% Job::AVAILABLE_PAGE_FORMATS.each do |din| %> @@ -30,7 +34,7 @@ <% if job.printing? %>
- <%= button_to icon("chevron-up", class: "size-5 inline", title: "erhöhen"), increment_page_operator_job_path(job, din:), method: :patch, form_class: "inline" %> + <%= button_to icon("plus", class: "size-5 inline", title: "erhöhen"), increment_page_operator_job_path(job, din:), method: :patch, form_class: "inline" %> <% end %> @@ -38,7 +42,7 @@ <% if job.printing? %> - <%= button_to icon("chevron-down", class: "size-5 inline", title: "verringern"), decrement_page_operator_job_path(job, din:), method: :patch, form_class: "inline" %> + <%= button_to icon("minus", class: "size-5 inline", title: "verringern"), decrement_page_operator_job_path(job, din:), method: :patch, form_class: "inline" %>
<% end %>