mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-09 15:35:22 +02:00
Clean up some stuff on the holding sidebar
This commit is contained in:
parent
30f75eb153
commit
06614f250c
3 changed files with 7 additions and 7 deletions
|
@ -15,7 +15,7 @@
|
|||
<div class="grid grid-cols-12 items-center uppercase text-xs font-medium text-secondary px-4 py-2">
|
||||
<%= tag.p t(".name"), class: "col-span-4" %>
|
||||
<%= tag.p t(".weight"), class: "col-span-2 justify-self-end" %>
|
||||
<%= tag.p t(".cost"), class: "col-span-2 justify-self-end" %>
|
||||
<%= tag.p t(".average_cost"), class: "col-span-2 justify-self-end" %>
|
||||
<%= tag.p t(".holdings"), class: "col-span-2 justify-self-end" %>
|
||||
<%= tag.p t(".return"), class: "col-span-2 justify-self-end" %>
|
||||
</div>
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
</div>
|
||||
|
||||
<div class="flex items-center justify-between text-sm">
|
||||
<dt class="text-secondary"><%= t(".trend_label") %></dt>
|
||||
<dt class="text-secondary"><%= t(".total_return_label") %></dt>
|
||||
<dd style="color: <%= @holding.trend&.color %>;">
|
||||
<%= @holding.trend ? render("shared/trend_change", trend: @holding.trend) : t(".unknown") %>
|
||||
</dd>
|
||||
|
|
|
@ -9,13 +9,13 @@ en:
|
|||
per_share: per share
|
||||
shares: "%{qty} shares"
|
||||
index:
|
||||
cost: cost
|
||||
average_cost: Average cost
|
||||
holdings: Holdings
|
||||
name: name
|
||||
name: Name
|
||||
new_holding: New transaction
|
||||
no_holdings: No holdings to show.
|
||||
return: total return
|
||||
weight: weight
|
||||
return: Total return
|
||||
weight: Weight
|
||||
missing_price_tooltip:
|
||||
description: This investment has missing values and we could not calculate
|
||||
its returns or value.
|
||||
|
@ -33,5 +33,5 @@ en:
|
|||
settings: Settings
|
||||
ticker_label: Ticker
|
||||
trade_history_entry: "%{qty} shares of %{security} at %{price}"
|
||||
trend_label: Trend
|
||||
total_return_label: Total Return
|
||||
unknown: Unknown
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue