% content_for :page_title do %> <%= t(:promotions) %> <% end %> <% content_for :page_actions do %>
<%= 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 %> |