Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Dec 4, 2024
1 parent 86f5770 commit c469764
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/views/trade/admin/orders/_base/_index_tbody.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@
<% if model.unreceived_amount.to_d > 0 %><p class="text-danger"><%= model.unreceived_amount.to_money.format.html_safe %></p><% end %>
</td>
<td>
<div class="tags has-addons is-tag-price mb-0">
<span class="tag <%= model.received_amount.to_d > 0 ? 'is-success' : 'is-light' %>"><%= model.received_amount.to_money.format.html_safe %></span>
</div>
<p class="text-success"><time data-controller="time"><%= model.paid_at&.to_fs(:iso8601) %></time></p>
<p class="<%= model.received_amount.to_d > 0 ? 'text-success' : 'text-grey' %>"><%= model.received_amount.to_money.format.html_safe %></p>
<p class="text-grey"><time data-controller="time"><%= model.paid_at&.to_fs(:iso8601) %></time></p>
</td>
<td>
<p><%# link_to model.user_name, { action: 'user', user_id: model.user_id } if model.user_id %></p>
Expand Down

0 comments on commit c469764

Please sign in to comment.