diff --git a/frontend/templates/metrics.html b/frontend/templates/metrics.html
index 94d35ad2..53239d2d 100644
--- a/frontend/templates/metrics.html
+++ b/frontend/templates/metrics.html
@@ -98,6 +98,25 @@
+
Ebook Files
+
+
+ - {{ ebookfiles.today.count }} have been added today.
+ - {{ ebookfiles.yesterday.count }} were added yesterday.
+
+ - {{ ebookfiles.days7.count }} have been added in the past 7 days.{% if request.user.is_staff %}
+
{% for ebook_file in ebookfiles.days7 %}
+ - {{ebook_file.edition.work.title}}: {{ebook_file.file}} created {{ebook_file.created}}
+ {% endfor %}
{% endif %}
+
+
+ - {{ ebookfiles.month.count }} have been added in this month.
+
+ - {{ ebookfiles.all.count }} have been added in total.
+
+
+
+
Pledges
diff --git a/frontend/views.py b/frontend/views.py
index 7823b66e..cba345ef 100755
--- a/frontend/views.py
+++ b/frontend/views.py
@@ -2061,6 +2061,12 @@ class InfoPageView(TemplateView):
ebooks.year = ebooks.filter(created__year = date_today().year)
ebooks.month = ebooks.year.filter(created__month = date_today().month)
ebooks.yesterday = ebooks.filter(created__range = (date_today()-timedelta(days=1), date_today()))
+ ebookfiles = models.EbookFile.objects
+ ebookfiles.today = ebookfiles.filter(created__range = (date_today(), now()))
+ ebookfiles.days7 = ebookfiles.filter(created__range = (date_today()-timedelta(days=7), now()))
+ ebookfiles.year = ebookfiles.filter(created__year = date_today().year)
+ ebookfiles.month = ebookfiles.year.filter(created__month = date_today().month)
+ ebookfiles.yesterday = ebookfiles.filter(created__range = (date_today()-timedelta(days=1), date_today()))
wishlists= models.Wishlist.objects.exclude(wishes__isnull=True)
wishlists.today = wishlists.filter(created__range = (date_today(), now()))
wishlists.days7 = wishlists.filter(created__range = (date_today()-timedelta(days=7), now()))
@@ -2088,6 +2094,7 @@ class InfoPageView(TemplateView):
'users': users,
'works': works,
'ebooks': ebooks,
+ 'ebookfiles': ebookfiles,
'wishlists': wishlists,
'transactions': transactions,
}