Project

General

Profile

Développement #31063

fargo: afficher le taux d'occupation dans l'interface

Added by Benjamin Dauvergne over 6 years ago. Updated almost 4 years ago.

Status:
Fermé
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
04 March 2019
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:

Description

Voir #16828, qui ajoute :

+        occupancy = ctx['occupancy'] = models.Document.occupancy_for_user(self.request.user)
+        max_size = ctx['max_portfolio_size'] = settings.FARGO_MAX_DOCUMENT_BOX_SIZE
+        ctx['occupancy_ratio'] = float(occupancy) / max_size
+        ctx['occupancy_ratio_percent'] = float(occupancy) * 100.0 / max_size

Related issues

Related to Fargo - Développement #16828: Sur l'accueil inclure un indicateur d'occupation de l'espaceFermé11 June 2017

Actions

History

#1

Updated by Benjamin Dauvergne over 6 years ago

#2

Updated by Frédéric Péters over 6 years ago

  • Project changed from Intégrations graphiques Publik to Fargo

Plutôt à faire directement dans fargo, sans nécessiter publik-base-theme. (surtout qu'on n'y redéfinit pour le moment pas le fargo/home.html).

#3

Updated by Benjamin Dauvergne almost 4 years ago

  • Status changed from Nouveau to Fermé

Also available in: Atom PDF