<%= code.id %> |
<%= code.code %> |
<%= code.internal_description %> |
<%= code.description %> |
<% used = code.promotions.pluck(:user_id).uniq.count %>
<% ratio = (code.uses_remaining * 100.0) / (code.uses_remaining + used) %>
- <%= used %> used
- <%= code.uses_remaining %> remaining
- <%= used + code.uses_remaining %> originally available
|
<%= code.promotions.active.pluck(:user_id).uniq.count %> |
<% code.page_types.each do |page_type| %>
<% klass = content_class_from_name(page_type) %>
<%= klass.icon %>
<% end %>
|
<%= code.days_active %> days |
<% end %>