{% extends "admin_app.html" %} {% from "library.j2" import action_button, avatar, icon, render_user, value_or_hint, custom_form_button with context %} {% block content %}
| {% trans %}User{% endtrans %} | {% trans %}Last active{% endtrans %} | {% trans %}Actions{% endtrans %} | ||
|---|---|---|---|---|
| {%- call render_user(user) -%}{%- endcall -%} | {% if user.enabled %}{{ user.last_active | format_last_activity }} | {% elif user.deletion_request %}{% trans %}Deleted{% endtrans %} | {% else %}{% trans %}Locked{% endtrans %} | {% endif %}{%- call action_button("edit", url_for(".edit_user", localpart=user.localpart), class="primary") -%} {% trans user_name=user.localpart %}Edit user {{ user_name }}{% endtrans %} {%- endcall -%} |