diff --git a/borgweb/borg/models/repo.py b/borgweb/borg/models/repo.py index 9c026e8..29cc473 100644 --- a/borgweb/borg/models/repo.py +++ b/borgweb/borg/models/repo.py @@ -33,10 +33,7 @@ class Repo(models.Model): days = 7 days_ago = (datetime.utcnow() - timedelta(days=7)) errors = self.label.errors.all().filter(time__gt=days_ago) - if len(errors) == 1: - return f"1 error since {days} days ago" - else: - return f"{len(errors)} errors since {days} days ago" + return len(errors) def archive_dates(self): days = self.get_archive_days() diff --git a/borgweb/borg/static/css/index.css b/borgweb/borg/static/css/index.css index ad74ac5..a9ae253 100644 --- a/borgweb/borg/static/css/index.css +++ b/borgweb/borg/static/css/index.css @@ -1,19 +1,15 @@ -.repo_info { - outline: 2px solid black; +div { padding: 8px; - float: left; - width: auto; - margin: 16px; + margin: 8px; + background: lightblue; } -.repo_label { +header { font-size: x-large; + text-align: center; } -.repo_point { - list-style-type: none; -} - -.point_label { - font-weight: bold; +dl { + margin: 0px; + font-size: 16px; } \ No newline at end of file diff --git a/borgweb/borg/templates/borg/index.html b/borgweb/borg/templates/borg/index.html index 805dca5..2c97794 100644 --- a/borgweb/borg/templates/borg/index.html +++ b/borgweb/borg/templates/borg/index.html @@ -1,26 +1,40 @@
- + +