<% content_for :page_title do %> <%= t(:promotions) %> <% end %> <% content_for :page_actions do %>
  • <%= button_link_to t(:new_promotion), spree.new_admin_promotion_path, :icon => 'icon-plus' %>
  • <% end %> <% unless @promotions.any? %>
    <%= t(:no_promotions_found) %>. <%= link_to t(:add_one), spree.new_admin_promotion_path %>!
    <% else %> <% @promotions.each do |promotion| %> <% end %>
    <%= t(:name) %> <%= t(:code) %> <%= t(:description) %> <%= t(:usage_limit) %> <%= t(:expiration) %>
    <%= promotion.name %> <%= promotion.code %> <%= promotion.description %> <%= promotion.usage_limit %> <%= promotion.expires_at.to_date.to_s(:short_date) if promotion.expires_at %> <%= link_to_edit promotion, :no_text => true %> <%= link_to_delete promotion, :no_text => true %>
    <% end %>