_earning.html.erb 719 Bytes
Newer Older
1
<div class="list-group-item row list-group-item-success">
2 3 4
  <span class="col-md-1">
    <%= image_tag gravatar_url_for(entry.hacker.email, 24) %>
  </span>
5 6 7 8 9 10 11 12 13 14
  <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
15
    <span class="btn  btn-danger btn-xs col-md-1">
16 17 18 19 20 21 22 23 24 25
      <%= 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 %>