-
-
- {{ plan.name }} £{{ plan.cost }}
- {% if plan in user_plans %}
-
- {% endif %}
-
- {{ plan.description }}
-
+ {% for plan in plans %}
+
+
+
-
+
+
+ {% endfor %}
+{% endcache %}
\ No newline at end of file
diff --git a/core/templates/partials/profit-list.html b/core/templates/partials/profit-list.html
index 8c7ead8..b11c353 100644
--- a/core/templates/partials/profit-list.html
+++ b/core/templates/partials/profit-list.html
@@ -1,32 +1,34 @@
+{% load cache %}
{% include 'mixins/partials/notify.html' %}
+{% cache 600 objects_profit request.user.id object_list %}
+
+
+ id |
+ name |
+ P/L |
+ trade |
+ balance |
+ currency |
+
+ {% for item in object_list %}
+
+ {{ item.account.id }} |
+ {{ item.account.name }} |
+ {{ item.pl }} |
+ {{ item.unrealizedPL }} |
+ {{ item.balance }} |
+ {{ item.currency }} |
+
+ {% endfor %}
-
-
- id |
- name |
- P/L |
- trade |
- balance |
- currency |
-
- {% for item in object_list %}
-
- {{ item.account.id }} |
- {{ item.account.name }} |
- {{ item.pl }} |
- {{ item.unrealizedPL }} |
- {{ item.balance }} |
- {{ item.currency }} |
-
- {% endfor %}
-
-
+
+{% endcache %}
\ No newline at end of file
diff --git a/core/templates/partials/risk-list.html b/core/templates/partials/risk-list.html
index bbf3160..d447c67 100644
--- a/core/templates/partials/risk-list.html
+++ b/core/templates/partials/risk-list.html
@@ -1,65 +1,67 @@
+{% load cache %}
{% include 'mixins/partials/notify.html' %}
-
-
-
- id |
- user |
- name |
- description |
- max loss percent |
- max risk percent |
- max open trades |
- max open trades per symbol |
- actions |
-
- {% for item in object_list %}
-
- {{ item.id }} |
- {{ item.user }} |
- {{ item.name }} |
- {{ item.description }} |
- {{ item.max_loss_percent }} |
- {{ item.max_risk_percent }} |
- {{ item.max_open_trades }} |
- {{ item.max_open_trades_per_symbol }} |
-
- |
+{% endcache %}
\ No newline at end of file
diff --git a/core/templates/partials/signal-list.html b/core/templates/partials/signal-list.html
index 00ef265..938cb0d 100644
--- a/core/templates/partials/signal-list.html
+++ b/core/templates/partials/signal-list.html
@@ -1,99 +1,101 @@
+{% load cache %}
{% include 'mixins/partials/notify.html' %}
-
-
-
- id |
- user |
- name |
- signal |
- hook |
- direction |
- received hooks |
- actions |
-
- {% for item in object_list %}
-
- {{ item.id }} |
- {{ item.user }} |
- {{ item.name }} |
- {{ item.signal }} |
-
- {{ item.hook.name }}
-
- |
- {{ item.direction }} |
- {{ item.received }} |
-
-
+ |
+
+ {% endfor %}
-
+
+{% endcache %}
\ No newline at end of file
diff --git a/core/templates/partials/strategy-list.html b/core/templates/partials/strategy-list.html
index a29c4f9..efe3e04 100644
--- a/core/templates/partials/strategy-list.html
+++ b/core/templates/partials/strategy-list.html
@@ -1,98 +1,100 @@
+{% load cache %}
{% include 'mixins/partials/notify.html' %}
-
-
-
- id |
- name |
- description |
- account |
- enabled |
- TP |
- SL |
- actions |
-
- {% for item in object_list %}
-
- {{ item.id }} |
- {{ item.name }} |
- {{ item.description|truncatechars:80 }} |
- {{ item.account }} |
-
- {% if item.enabled %}
-
-
-
- {% else %}
-
-
-
- {% endif %}
- |
- {{ item.take_profit_percent }} |
- {{ item.stop_loss_percent }} |
-
- |
+{% endcache %}
\ No newline at end of file
diff --git a/core/templates/partials/trade-list.html b/core/templates/partials/trade-list.html
index 98806fd..6254978 100644
--- a/core/templates/partials/trade-list.html
+++ b/core/templates/partials/trade-list.html
@@ -1,66 +1,82 @@
+{% load cache %}
{% include 'mixins/partials/notify.html' %}
-
-
-
- id |
- status |
- account id |
- symbol |
- type |
- amount |
- price |
- SL |
- TL |
- actions |
-
- {% for item in object_list %}
-
- {{ item.id }} |
- {{ item.status }} |
- {{ item.account.id }} |
- {{ item.symbol }} |
- {{ item.type }} |
- {{ item.amount }} |
- {{ item.price }} |
- {{ item.stop_loss }} |
- {{ item.take_profit }} |
-
- |
+{% endcache %}
\ No newline at end of file
diff --git a/core/templates/partials/trading-time-list.html b/core/templates/partials/trading-time-list.html
index 198ed9e..c637201 100644
--- a/core/templates/partials/trading-time-list.html
+++ b/core/templates/partials/trading-time-list.html
@@ -1,61 +1,63 @@
+{% load cache %}
{% include 'mixins/partials/notify.html' %}
-
-
-
- id |
- user |
- name |
- description |
- start |
- end |
- actions |
-
- {% for item in object_list %}
-
- {{ item.id }} |
- {{ item.user }} |
- {{ item.name }} |
- {{ item.description }} |
- {{ item.get_start_day_display }} at {{ item.start_time }} |
- {{ item.get_end_day_display }} at {{ item.end_time }} |
-
- |
+{% endcache %}
\ No newline at end of file
diff --git a/core/templates/partials/trend-direction-list.html b/core/templates/partials/trend-direction-list.html
index ae5acc8..349770b 100644
--- a/core/templates/partials/trend-direction-list.html
+++ b/core/templates/partials/trend-direction-list.html
@@ -1,55 +1,57 @@
+{% load cache %}
{% include 'mixins/partials/notify.html' %}
-
-
-
- symbol |
- direction |
- actions |
-
- {% for key, item in object_list.items %}
-
- {{ key }} |
- {{ item }} |
-
- |
+{% endcache %}
\ No newline at end of file