Small design changes for job list
This commit is contained in:
@@ -1,24 +1,21 @@
|
||||
<tr id="<%= dom_id job %>" class="bg-status-<%= job.status %>-light odd:bg-opacity-20 even:bg-opacity-10">
|
||||
<tr id="<%= dom_id job %>" class="bg-status-<%= job.status %>-light odd:bg-opacity-20 even:bg-opacity-15">
|
||||
<td class="p-3 text-sm text-hsrm-gray whitespace-nowrap">
|
||||
<span class="p-1.5 text-xs font-medium uppercase tracking-wider bg-opacity-50 text-status-<%= job.status %> bg-status-<%= job.status %>-light rounded-lg">
|
||||
<span class="p-1.5 text-sm font-medium uppercase tracking-wider bg-opacity-50 text-status-<%= job.status %> bg-status-<%= job.status %>-light rounded-lg">
|
||||
<%= job.id %>
|
||||
</span>
|
||||
</td>
|
||||
<td class="p-3 text-sm text-center text-hsrm-gray">
|
||||
<% if job.pdf.attached? %>
|
||||
<%#= image_tag(url_for(job.pdf.blob.preview(resize_to_limit: [100, 100]))) %>
|
||||
<%= image_tag job.pdf.preview(resize_to_limit: [50, 50]), class: "mx-auto" %>
|
||||
<% end %>
|
||||
</td>
|
||||
<td class="p-3 text-sm text-hsrm-gray whitespace-nowrap">
|
||||
<%= job.costumer_fullname %>
|
||||
</td>
|
||||
<td class="p-3 text-sm text-hsrm-gray whitespace-nowrap w-6">
|
||||
<% if job.pdf.attached? %>
|
||||
<%= image_tag url_for(job.pdf.preview(resize_to_limit: [100, 100])) %>
|
||||
<% end %>
|
||||
</td>
|
||||
<td class="p-3 text-sm text-hsrm-gray whitespace-nowrap">
|
||||
<% if job.pdf.attached? %>
|
||||
<%#= link_to job.pdf.filename, rails_blob_path(job.pdf, disposition: "attachment") %>
|
||||
<%= link_to job.pdf.filename, job.pdf, download:true %>
|
||||
<span class="p-1.5 bg-gray-300 bg-opacity-50 text-hsrm-gray font-medium rounded-lg ml-2">
|
||||
<%=number_to_human_size job.pdf.blob.byte_size%>
|
||||
</span>
|
||||
<%= job.pdf.filename %>
|
||||
<% end %>
|
||||
</td>
|
||||
<td class="p-3 text-sm text-left text-hsrm-gray whitespace-nowrap">
|
||||
|
||||
Reference in New Issue
Block a user