diff --git a/openstack_dashboard/dashboards/identity/users/templates/users/_detail_overview.html b/openstack_dashboard/dashboards/identity/users/templates/users/_detail_overview.html index 06033695d1..e8a2f81539 100644 --- a/openstack_dashboard/dashboards/identity/users/templates/users/_detail_overview.html +++ b/openstack_dashboard/dashboards/identity/users/templates/users/_detail_overview.html @@ -12,6 +12,10 @@ {% endif %}
{% trans "User Name" %}
{{ user.name }}
+ {% if description %} +
{% trans "Description" %}
+
{{ description }}
+ {% endif %}
{% trans "ID" %}
{{ user.id }}
{% trans "Email" %}
diff --git a/openstack_dashboard/dashboards/identity/users/views.py b/openstack_dashboard/dashboards/identity/users/views.py index 52f7658e7b..5eae45d651 100644 --- a/openstack_dashboard/dashboards/identity/users/views.py +++ b/openstack_dashboard/dashboards/identity/users/views.py @@ -181,6 +181,7 @@ class DetailView(views.HorizonTemplateView): except Exception: exceptions.handle(self.request, _('Unable to retrieve project domain.')) + context["description"] = getattr(user, "description", _("None")) context["user"] = user if tenant: