From 6c1b39bc044db54c62948c1ff910986afbc4955a Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Fri, 24 Apr 2020 20:57:01 +0200 Subject: [PATCH 01/11] remove AliasInfo.latest_activity --- app/dashboard/views/index.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/dashboard/views/index.py b/app/dashboard/views/index.py index 396c8180..fd7f69de 100644 --- a/app/dashboard/views/index.py +++ b/app/dashboard/views/index.py @@ -31,7 +31,6 @@ class AliasInfo: nb_blocked: int nb_reply: int - latest_activity: Arrow latest_email_log: EmailLog = None latest_contact: Contact = None @@ -225,7 +224,6 @@ def get_alias_infos(user, query=None, highlight_alias_id=None) -> [AliasInfo]: nb_forward=0, nb_reply=0, highlight=alias.id == highlight_alias_id, - latest_activity=alias.created_at, ) alias_info = aliases[alias.email] From 4727249958feca6a0ff23a8dfedfd199c4ad0b7b Mon Sep 17 00:00:00 2001 From: Son NK Date: Sat, 25 Apr 2020 10:57:25 +0200 Subject: [PATCH 02/11] do not use alias_info.highlight --- app/dashboard/templates/dashboard/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dashboard/templates/dashboard/index.html b/app/dashboard/templates/dashboard/index.html index cfe967c2..8945520c 100644 --- a/app/dashboard/templates/dashboard/index.html +++ b/app/dashboard/templates/dashboard/index.html @@ -77,7 +77,7 @@ {% set alias = alias_info.alias %}
-
+
From 5839c637f6f5d9f710be1ebfd23cc44453b89da7 Mon Sep 17 00:00:00 2001 From: Son NK Date: Sat, 25 Apr 2020 11:06:35 +0200 Subject: [PATCH 03/11] use pagination for alias --- app/dashboard/templates/dashboard/index.html | 17 ++++ app/dashboard/views/index.py | 102 +++++++++++-------- 2 files changed, 74 insertions(+), 45 deletions(-) diff --git a/app/dashboard/templates/dashboard/index.html b/app/dashboard/templates/dashboard/index.html index 8945520c..52142f27 100644 --- a/app/dashboard/templates/dashboard/index.html +++ b/app/dashboard/templates/dashboard/index.html @@ -279,6 +279,23 @@ {% endfor %}
+
+
+ +
+
+ {% if client_users %}