Small design changes in operator/job_tr
This commit is contained in:
@@ -17,12 +17,16 @@
|
|||||||
</td>
|
</td>
|
||||||
<td class="p-2 py-3">
|
<td class="p-2 py-3">
|
||||||
<% if job.pdf.attached? %>
|
<% 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 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 %>
|
<%= link_to_if job.printing?, truncate(job.pdf.filename.to_s, length: 45), job.pdf, download:true %>
|
||||||
<span class="ml-2 badge">
|
<% if job.printing? %>
|
||||||
<%=number_to_human_size job.pdf.blob.byte_size%>
|
<%= link_to job.pdf, download:true do %>
|
||||||
</span>
|
<span class="badge badge-hover">
|
||||||
|
<%= icon("document-arrow-down", class: "text-hsrm-gray size-6 inline", title: "Download") %>
|
||||||
|
<%=number_to_human_size job.pdf.blob.byte_size%>
|
||||||
|
</span>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
<% Job::AVAILABLE_PAGE_FORMATS.each do |din| %>
|
<% Job::AVAILABLE_PAGE_FORMATS.each do |din| %>
|
||||||
@@ -30,7 +34,7 @@
|
|||||||
<% if job.printing? %>
|
<% if job.printing? %>
|
||||||
<div class="flex flex-col items-center">
|
<div class="flex flex-col items-center">
|
||||||
<span class="p-1 badge badge-hover">
|
<span class="p-1 badge badge-hover">
|
||||||
<%= 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" %>
|
||||||
</span>
|
</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
<span class="badge">
|
<span class="badge">
|
||||||
@@ -38,7 +42,7 @@
|
|||||||
</span>
|
</span>
|
||||||
<% if job.printing? %>
|
<% if job.printing? %>
|
||||||
<span class="p-1 badge badge-hover">
|
<span class="p-1 badge badge-hover">
|
||||||
<%= 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" %>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
Reference in New Issue
Block a user