diff --git a/templates/pricemon/dashboard.html b/templates/pricemon/dashboard.html index 86d9ddc..a087d4b 100644 --- a/templates/pricemon/dashboard.html +++ b/templates/pricemon/dashboard.html @@ -7,13 +7,13 @@
-
-
+ -
+
{% trans "Watchers" %}
{{ total_watchers }}
@@ -54,23 +54,107 @@
{% endif %} - +
{% if watchers %} - + + +
+ {% for watcher in watchers %} +
+ +
+
+
+ {{ watcher.name }} + {% if watcher.enabled %} + {% trans "Active" %} + {% else %} + {% trans "Paused" %} + {% endif %} +
+ + {{ watcher.url|truncatechars:55 }} + +
+ {% if watcher.last_checked_at %} + {% trans "Checked" %} {{ watcher.last_checked_at|timesince }} {% trans "ago" %} + {% else %} + {% trans "Never checked" %} + {% endif %} + {{ watcher.get_check_interval_hours_display }} +
+
+
+ {% if watcher.last_price %} + ${{ watcher.last_price }} + {% else %} + + {% endif %} +
+
+ +
+ + + + + + + + + + + +
+ {% csrf_token %} + + +
+
+ {% endfor %} +
+ + +
- - + + {% for watcher in watchers %} - + - - + {% else %}