-
- {{ plan.name }} £{{ plan.cost }}
- {% if plan in user_plans %}
-
- {% endif %}
-
- {{ plan.description }}
-
+{% cache 600 objects_plans request.user.id plans %}
+ {% for plan in plans %}
+
+
+
-
+
+
+ {% endfor %}
+{% endcache %}
\ No newline at end of file
diff --git a/core/templates/partials/rule-list.html b/core/templates/partials/rule-list.html
index 7fa3e08..89f8561 100644
--- a/core/templates/partials/rule-list.html
+++ b/core/templates/partials/rule-list.html
@@ -1,93 +1,95 @@
+{% load cache %}
{% include 'mixins/partials/notify.html' %}
-
-
-
- id |
- user |
- name |
- interval |
- window |
- priority |
- topic |
- enabled |
- data length |
- match |
- actions |
-
- {% for item in object_list %}
-
- {{ item.id }} |
- {{ item.user }} |
- {{ item.name }} |
- {{ item.interval }}s |
- {{ item.window|default_if_none:"—" }} |
- {{ item.priority }} |
- {{ item.topic|default_if_none:"—" }} |
-
- {% if item.enabled %}
-
-
-
- {% else %}
-
-
-
- {% endif %}
- |
- {{ item.data|length }} |
- {{ item.matches }} |
-
- |