diff --git a/controlpanel/frontend/jinja2/user-list.html b/controlpanel/frontend/jinja2/user-list.html index 842bb7ca9..814a45314 100644 --- a/controlpanel/frontend/jinja2/user-list.html +++ b/controlpanel/frontend/jinja2/user-list.html @@ -29,20 +29,17 @@

{{ page_title }}

{{ user.email }} - {%- with login_details=last_login.get(user.auth0_id) -%} - {%- if login_details -%} - {%- with login = login_details.get("last_login") -%} - - {{ timesince(login) }} ago - - {%- if login_details.get("unused") -%} - (unused?) - {%- endif -%} - {%- endwith -%} + {%- if user.last_login -%} + + {{ timesince(user.last_login) }} ago + {%- else -%} + Never logged in. + {%- endif -%} + {%- if user in unused_users -%} + (unused?) {%- endif -%} - {%- endwith -%}