templates: don't include document count on homepage (#41615)

This commit is contained in:
Frédéric Péters 2020-04-11 09:40:14 +02:00
parent ed09b38596
commit c77aa8a455
2 changed files with 0 additions and 11 deletions

View File

@ -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):

View File

@ -44,16 +44,6 @@
<div class="cell">
<h2>{% if site_title %}{{ site_title }}{% else %}{% trans "Portfolio" %}{% endif %}</h2>
<div id="user-files">
{% if count %}
<div id="user-files-count">
{% blocktrans count documents_count=count trimmed %}
You have {{ documents_count }} document stored.
{% plural %}
You have {{ documents_count }} documents stored.
{% endblocktrans %}
</div>
{% endif %}
{% render_table table "fargo/table.html" %}
{% if full %}