_redemption.html.erb 808 Bytes
Newer Older
1
2
3
<div class="list-group-item list-group-item-warning row"
   data-popup-top="true" data-content="<%= triggered_by(entry.user) %>"
  >
4
5
6
  <span class="col-md-1">
    <%= image_tag gravatar_url_for(entry.hacker.email, 24) %>
  </span>
surma Lodur's avatar
surma Lodur committed
7
  <span class="col-md-1 col-md-offset-1">
8
9
10
11
12
13
14
15
16
    +<%= 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
17
  <span class="btn  btn-danger btn-xs col-md-1">
18
19
20
21
22
23
24
25
26
27
    <%= 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 %>