From 242c9fbaed13d20ce7af0a9b664e699259d6e7ea Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Tue, 29 Nov 2022 07:20:39 +0000 Subject: [PATCH] Make a proper front page --- core/templates/index.html | 121 ++++++++++++++--------- core/templates/partials/profit-list.html | 8 +- core/templates/wm/widget.html | 2 +- core/views/positions.py | 1 + core/views/profit.py | 16 ++- 5 files changed, 93 insertions(+), 55 deletions(-) diff --git a/core/templates/index.html b/core/templates/index.html index acbb596..31a68d2 100644 --- a/core/templates/index.html +++ b/core/templates/index.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% load static %} {% load joinsep %} -{% block outer_content %} +{% block content %}
-
+ -
+
+
+
+
+
{% endblock %} diff --git a/core/templates/partials/profit-list.html b/core/templates/partials/profit-list.html index 6768123..7e5aab9 100644 --- a/core/templates/partials/profit-list.html +++ b/core/templates/partials/profit-list.html @@ -15,10 +15,10 @@ currency {% for item in object_list %} - + {{ item.account.id }} {{ item.account.name }} {{ item.pl }} diff --git a/core/templates/wm/widget.html b/core/templates/wm/widget.html index c0c87a6..2dfac60 100644 --- a/core/templates/wm/widget.html +++ b/core/templates/wm/widget.html @@ -1,5 +1,5 @@
-
+