_earning.html.erb 794 Bytes
Newer Older
1
2
3
<div class="list-group-item row list-group-item-success"
   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>
7
8
9
10
11
12
13
14
15
16
  <span class="col-md-2">
    +<%= 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_earning_path(entry), :method => :post %>
    </span>
  <% end %>
</div>
<% if entry.cancel.present? %>
  <%= render({
    :partial => 'hackers/chronicle/earning_cancel', 
    :locals  => {:entry => entry.cancel} 
  }) %>
<% end %>