_rewards.html.erb 472 Bytes
Newer Older
mafolz's avatar
mafolz committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18


<% rewards.in_groups_of(10) do |grouped_rewards| %>
  <div class="row">
    <% grouped_rewards.each do |reward| %>
      <% if reward.present? %>
        <div class="well col-md-2">
          <h4>
            <%= reward.title %>
          </h4>
          <!-- TODO: should be replaced with paperclip gem -->
          <span class="glyphicon <%= reward.image_url %>"> </span>
          <%= reward.points %>
        </div>
      <% end %>
    <% end %>
  </div>
<% end %>