_redemption.html.erb 635 Bytes
Newer Older
1
<div class="list-group-item list-group-item-warning row">
surma Lodur's avatar
surma Lodur committed
2
  <span class="col-md-1 col-md-offset-1">
3
4
5
6
7
8
9
10
11
    +<%= entry.points %>
  </span>
  <span class="col-md-2">
    <%= l(entry.created_at, :format => :short) %>
  </span>
  <span class="col-md-4">
    <%= entry.chronicle_text %>
  </span>
  <% if entry.cancel.blank? %>
surma Lodur's avatar
surma Lodur committed
12
  <span class="btn  btn-danger btn-xs col-md-1">
13
14
15
16
17
18
19
20
21
22
    <%= link_to 'Storno', cancel_redemption_path(entry), :method => :post %>
  </span>
<% end %>
</div>
<% if entry.cancel.present? %>
  <%= render({
    :partial => 'hackers/chronicle/redemption_cancel', 
    :locals  => {:entry => entry.cancel} 
  }) %>
<% end %>