mirror of
https://github.com/System-End/shipment-viewer.git
synced 2026-04-19 22:05:10 +00:00
47 lines
No EOL
1.5 KiB
Text
47 lines
No EOL
1.5 KiB
Text
<div class="card">
|
||
<h4 style="display: inline-block"><%= shipment.icon %> <%= shipment.title_text %></h4> <span style="float: right"><%= shipment.status_icon %></span>
|
||
<hr/>
|
||
📝 <i><%= shipment.type_text %></i><br/>
|
||
📨 <%= shipment.status_text %>
|
||
<% if shipment["Warehouse-Service"] %>
|
||
<br>
|
||
🚚 <%= shipment["Warehouse–Service"] %>
|
||
<% end %>
|
||
<% if shipment.tracking_number %>
|
||
<br/>
|
||
<% if shipment.tracking_link %>
|
||
🔗 <%= external_link(shipment.tracking_number, shipment.tracking_link) %>
|
||
<% else %>
|
||
🔢 <%= shipment.tracking_number %>
|
||
<% end %>
|
||
<% end %>
|
||
<% if shipment.description %>
|
||
<% if shipment.description.is_a? Array %>
|
||
<br/><b>🗃 Contents:</b>
|
||
<ul>
|
||
<% shipment.description.each do |item| %>
|
||
<li><%= item %></li>
|
||
<% end %>
|
||
</ul>
|
||
<% else %>
|
||
<br/>
|
||
🗃️ <b>Description:</b> <%= shipment.description %>
|
||
<% end %>
|
||
<% end %>
|
||
<br/>
|
||
<% if @show_ids %>
|
||
<br/>
|
||
👀 <span class="internal">Airtable: <%= external_link(shipment.source_id, shipment.source_url) %></span>
|
||
<% end %>
|
||
<br/><span>📅 Created on <%= shipment.date&.[](..9) || '??' %></span>
|
||
<% if @internal and shipment.internal_info_partial %>
|
||
<% ii = erb shipment.internal_info_partial, locals: { shipment: } %>
|
||
<% if ii.present? %>
|
||
<br/>
|
||
<div class="internal" style="padding: 5px">
|
||
<b>🤫 internal info:</b><br/>
|
||
<%= ii %>
|
||
</div>
|
||
<% end %>
|
||
<% end %>
|
||
</div> |