Browse Source

Display user's description in user detail

In the case of using keystone v3, user's description is
displayed in user list, but it is not displayed in user
detail. I think we should display just like a user list.

Change-Id: I113a8e5060481b6715acfa936c21ebdc0f4aae29
Closes-Bug: #1522655
tags/9.0.0.0b2
kenji-ishii 4 years ago
parent
commit
bf8f8702de
2 changed files with 5 additions and 0 deletions
  1. +4
    -0
      openstack_dashboard/dashboards/identity/users/templates/users/_detail_overview.html
  2. +1
    -0
      openstack_dashboard/dashboards/identity/users/views.py

+ 4
- 0
openstack_dashboard/dashboards/identity/users/templates/users/_detail_overview.html View File

@@ -12,6 +12,10 @@
{% endif %}
<dt>{% trans "User Name" %}</dt>
<dd>{{ user.name }}</dd>
{% if description %}
<dt>{% trans "Description" %}</dt>
<dd>{{ description }}</dd>
{% endif %}
<dt>{% trans "ID" %}</dt>
<dd>{{ user.id }}</dd>
<dt>{% trans "Email" %}</dt>


+ 1
- 0
openstack_dashboard/dashboards/identity/users/views.py View File

@@ -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:


Loading…
Cancel
Save