diff --git a/borgweb/borg/templates/borg/index.html b/borgweb/borg/templates/borg/index.html index 478fcba..9193d4e 100644 --- a/borgweb/borg/templates/borg/index.html +++ b/borgweb/borg/templates/borg/index.html @@ -6,56 +6,64 @@ Borg Summary {% load static %} - - - + + {{ hour_list|json_script:"hour_list" }} +

{% if repo_list %} - {% for repo in repo_list %} - {% if repo.archive_after_latest_error %} -
- {% else %} -
- {% endif %} -

{{ repo.label }} {{ repo.location }}

-
-
Latest backup:
-
{{ repo.last_backup }}
-
-
-
Hourly backups:
-
{{ repo.hourly_archive_string }}
-
-
-
Size:
-
{{ repo.size_string }}
-
- {% if repo.recent_errors|length > 0 %} -
-
Recent errors:
-
- {% endif %} -
- {% for error in repo.recent_errors %} -
{{ error.time_ago }}
-
{{ error.error }}
- {% endfor %} -
-
- {% endfor %} - {% else %} -

No repos found.

- {% endif %} -
- +
+{% for repo in repo_list %} +
+

{{ repo.label }} + {{ repo.location }} +

+
+
Latest backup:
+
{{ repo.last_backup }}
+
+
+
Hourly backups:
+
{{ repo.hourly_archive_string }}
+
+
+
Size:
+
{{ repo.size_string }}
+
+ {% if repo.recent_errors|length > 0 %} +
+
Recent errors:
+
+ {% endif %} +
+ {% for error in repo.recent_errors %} +
{{ error.time_ago }}
+
{{ error.error }}
+ {% endfor %} +
+{% endfor %} +
+ +
+{% else %} +

No repos found.

+{% endif %} +
\ No newline at end of file