mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-25 16:19:40 +02:00
parent
b98f35af0e
commit
d4bfcfb6f4
1 changed files with 7 additions and 5 deletions
|
@ -41,12 +41,14 @@
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div class="flex items-center justify-between text-sm">
|
<% if trade.security.current_price.present? %>
|
||||||
<dt class="text-gray-500"><%= t(".current_market_price_label") %></dt>
|
<div class="flex items-center justify-between text-sm">
|
||||||
<dd class="text-gray-900"><%= format_money trade.security.current_price %></dd>
|
<dt class="text-gray-500"><%= t(".current_market_price_label") %></dt>
|
||||||
</div>
|
<dd class="text-gray-900"><%= format_money trade.security.current_price %></dd>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<% if trade.buy? %>
|
<% if trade.buy? && trade.unrealized_gain_loss.present? %>
|
||||||
<div class="flex items-center justify-between text-sm">
|
<div class="flex items-center justify-between text-sm">
|
||||||
<dt class="text-gray-500"><%= t(".total_return_label") %></dt>
|
<dt class="text-gray-500"><%= t(".total_return_label") %></dt>
|
||||||
<dd style="color: <%= trade.unrealized_gain_loss.color %>;">
|
<dd style="color: <%= trade.unrealized_gain_loss.color %>;">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue