From c77aa8a455dc32a93b49c90587137f857dbae570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sat, 11 Apr 2020 09:40:14 +0200 Subject: [PATCH] templates: don't include document count on homepage (#41615) --- fargo/fargo/views.py | 1 - fargo/templates/fargo/home.html | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/fargo/fargo/views.py b/fargo/fargo/views.py index b9912c1..2bedee5 100644 --- a/fargo/fargo/views.py +++ b/fargo/fargo/views.py @@ -124,7 +124,6 @@ class Homepage(SingleTableMixin, CommonUpload): ctx['occupancy_ratio_percent'] = float(occupancy) * 100.0 / max_size ctx['max_documents_per_user'] = settings.FARGO_MAX_DOCUMENTS_PER_USER ctx['full'] = self.full - ctx['count'] = self.count return ctx def post(self, request, *args, **kwargs): diff --git a/fargo/templates/fargo/home.html b/fargo/templates/fargo/home.html index fbd9d76..bfd277d 100644 --- a/fargo/templates/fargo/home.html +++ b/fargo/templates/fargo/home.html @@ -44,16 +44,6 @@

{% if site_title %}{{ site_title }}{% else %}{% trans "Portfolio" %}{% endif %}

- {% if count %} -
- {% blocktrans count documents_count=count trimmed %} - You have {{ documents_count }} document stored. - {% plural %} - You have {{ documents_count }} documents stored. - {% endblocktrans %} -
- {% endif %} - {% render_table table "fargo/table.html" %} {% if full %}