<%= hook :admin_order_show_buttons do %>
<%= button_link_to t("edit"), edit_admin_order_url(@order.number), :icon => 'edit' %>
<% end %>
<%= render :partial => 'admin/shared/order_tabs', :locals => {:current => "Order Details"} %>
<%= hook :admin_order_show_addresses do %>
<% if @order.bill_address %>
<%= link_to t("bill_address"), (@current_action=="edit" ? edit_admin_order_checkout_url(@order) : admin_order_checkout_url(@order)) %>
<%= render :partial => 'admin/shared/address', :locals => {:address => @order.bill_address} %>
<% end %>
<% if @order.ship_address %>
<%= link_to t("ship_address"), (@current_action=="edit" ? edit_admin_order_checkout_url(@order) : admin_order_checkout_url(@order)) %>
<%= t("ship_address") if @order.shipments.empty? %>
<%= render :partial => 'admin/shared/address', :locals => {:address => @order.ship_address} %>
<% end %>
<% end %>
<%= hook :admin_order_show_details do %>
<%= render :partial => 'admin/shared/order_details', :locals => {:order => @order} %>
<% end %>