diff options
author | lxf <sng@luxagraf.net> | 2022-02-18 12:34:34 -0500 |
---|---|---|
committer | lxf <sng@luxagraf.net> | 2022-02-18 12:34:34 -0500 |
commit | 0245cc3683da9e65afa1551a10dc9e80b4273a0e (patch) | |
tree | 0df2bf50d3d5c82c59cf48fb24416248826c3ce1 /app/trading/templates | |
parent | 82f01f5f10190bcb70cb5357ec4bac542b7c197a (diff) |
trad: added green/red to stock list
Diffstat (limited to 'app/trading/templates')
-rw-r--r-- | app/trading/templates/trading/list.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/trading/templates/trading/list.html b/app/trading/templates/trading/list.html index 909d2c4..0fdc03d 100644 --- a/app/trading/templates/trading/list.html +++ b/app/trading/templates/trading/list.html @@ -239,8 +239,8 @@ <th>Total Invested</th> <th>$ at Risk</th> <th>$ Goal</th> - <th>Realized $</th> <th>Realized %</th> + <th>Realized $</th> <th>Notes</th> </tr> </thead> @@ -256,8 +256,8 @@ <td>${{object.amount_invested}}</td> <td>${{object.risk_dollars}}</td> <td>${{object.goal_dollars}}</td> - <td>${{object.realized_dollars}}</td> <td>{{object.realized_percent}}</td> + <td {%if object.realized_dollars > 0 %}class="money"{%elif object.realized_dollars < 0 %}class="nomoney"{%endif%}>${{object.realized_dollars|floatformat:2}}</td> <td class="notes"> {% if object.notes %} <div class="wrapper"> |