mirror of
https://github.com/System-End/shipment-viewer.git
synced 2026-04-19 16:28:19 +00:00
hide empty internal info
This commit is contained in:
parent
e1ae5a4333
commit
1e718e3766
1 changed files with 4 additions and 1 deletions
|
|
@ -35,10 +35,13 @@
|
|||
<% 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/>
|
||||
<%= erb shipment.internal_info_partial, locals: { shipment: } %>
|
||||
<%= ii %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
Loading…
Add table
Reference in a new issue