<%= hook :admin_order_show_buttons do %>
<%= button_link_to t("cancel"), fire_admin_order_url(@order.number, {:e => "cancel"}), :icon => 'delete' if @order.can_cancel? %>
<%= 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_checkout_url(@order.number) : admin_orders_checkout_url(@order.number)) %>
<%= 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_checkout_url(@order.number) : admin_orders_checkout_url(@order.number)) %>
<%= 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 %>