Skip to content

Commit

Permalink
Add table-sm
Browse files Browse the repository at this point in the history
  • Loading branch information
anorthall committed Dec 18, 2023
1 parent eaca8a7 commit dc1b071
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions app/staff/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ def get_context_data(self, **kwargs):
photos_deleted = TripPhoto.objects.deleted()

statistics = [
get_time_statistics(trips),
get_time_statistics(trips, metric="Updated", lookup="updated__gte"),
get_time_statistics(cavers),
get_time_statistics(cavers, metric="Updated", lookup="updated__gte"),
get_time_statistics(comments),
get_time_statistics(photos_valid, metric="Valid", lookup="added__gte"),
get_time_statistics(
photos_deleted, metric="Deleted", lookup="deleted_at__gte"
Expand All @@ -38,6 +33,9 @@ def get_context_data(self, **kwargs):
get_integer_field_statistics(
photos_deleted, "Deleted storage", "filesize", "deleted_at__gte"
),
get_time_statistics(cavers),
get_time_statistics(comments),
get_time_statistics(trips),
get_time_statistics(users, metric="New", lookup="date_joined__gte"),
get_time_statistics(users, metric="Active", lookup="last_seen__gte"),
]
Expand Down
2 changes: 1 addition & 1 deletion app/templates/staff/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h1 class="title-underline">
</h1>

<div class="table-responsive">
<table class="table table-hover">
<table class="table table-hover table-sm">
<thead>
<tr>
<th>Model</th>
Expand Down

0 comments on commit dc1b071

Please sign in to comment.