Projet

Général

Profil

0001-templates-don-t-include-document-count-on-homepage-4.patch

Frédéric Péters, 11 avril 2020 09:42

Télécharger (1,61 ko)

Voir les différences:

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(-)
fargo/fargo/views.py
124 124
        ctx['occupancy_ratio_percent'] = float(occupancy) * 100.0 / max_size
125 125
        ctx['max_documents_per_user'] = settings.FARGO_MAX_DOCUMENTS_PER_USER
126 126
        ctx['full'] = self.full
127
        ctx['count'] = self.count
128 127
        return ctx
129 128

  
130 129
    def post(self, request, *args, **kwargs):
fargo/templates/fargo/home.html
44 44
  <div class="cell">
45 45
  <h2>{% if site_title %}{{ site_title }}{% else %}{% trans "Portfolio" %}{% endif %}</h2>
46 46
  <div id="user-files">
47
    {% if count %}
48
      <div id="user-files-count">
49
        {% blocktrans count documents_count=count trimmed %}
50
        You have {{ documents_count }} document stored.
51
        {% plural %}
52
        You have {{ documents_count }} documents stored.
53
        {% endblocktrans %}
54
      </div>
55
    {% endif %}
56

  
57 47
    {% if not table.page %}
58 48
       <div class="table-container">
59 49
    {% endif %}
60
-