app/views/spree/admin/orders/_carton.html.erb in solidus_backend-2.6.6 vs app/views/spree/admin/orders/_carton.html.erb in solidus_backend-2.7.0
- old
+ new
@@ -48,10 +48,15 @@
<% end %>
<tr class="show-tracking total">
<td colspan="5">
<% if carton.tracking.present? %>
- <strong><%= Spree::Carton.human_attribute_name(:tracking) %>:</strong> <%= carton.tracking %>
+ <strong><%= Spree::Carton.human_attribute_name(:tracking) %>:</strong>
+ <% if carton.tracking_url %>
+ <%= link_to carton.tracking, carton.tracking_url, target: "_blank" %>
+ <% else %>
+ <%= carton.tracking %>
+ <% end %>
<% else %>
<i><%= t('spree.no_tracking_present') %></i>
<% end %>
</td>
</tr>