Skip to content

[ENG -8190] Update admin display of users to be more useful #11184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: feature/pbs-25-10
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 63 additions & 3 deletions admin/templates/users/user.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ <h2>User: <b>{{ user.username }}</b> <a href="{{ user.absolute_url }}"> ({{user.
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td><a href="/admin/osf/osfuser/{{ user.id }}/change/">{{ user.id }}</a></td>
</tr>
<tr>
<td>Full Name</td>
<td>{{ user.fullname }}</td>
Expand All @@ -86,20 +90,42 @@ <h2>User: <b>{{ user.username }}</b> <a href="{{ user.absolute_url }}"> ({{user.
</tr>
<tr>
<td>Disabled</td>
<td>{{ user.is_disabled }}</td>
<td>{{ user.is_disabled }} [{{ user.date_disabled }}]</td>
</tr>
<tr>
<td>Deactivation request</td>
<td>
{% if user.requested_deactivation %}
{% if user.contacted_deactivation %}
Contacted
{% else %}
Requested
{% endif %}
{% else %}
Not requested
{% endif %}
</td>
</tr>
<tr>
<td>Registered</td>
<td>{{ user.is_registered }}</td>
<td>{{ user.is_registered }} [{{ user.date_registered }}]</td>
</tr>
<tr>
<td>Confirmed</td>
<td>{{ user.is_confirmed }}</td>
<td>{{ user.is_confirmed }} [{{ user.date_confirmed }}]</td>
</tr>
<tr>
<td>Last login</td>
<td>{{ user.last_login }}</td>
</tr>
<tr>
<td>Change password last attempt</td>
<td>{{ user.change_password_last_attempt }}</td>
</tr>
<tr>
<td>Change password invalid attempts</td>
<td>{{ user.old_password_invalid_attempts }}</td>
</tr>
<tr>
<td>Emails</td>
<td>
Expand All @@ -116,6 +142,20 @@ <h2>User: <b>{{ user.username }}</b> <a href="{{ user.absolute_url }}"> ({{user.
{% endfor %}
</td>
</tr>
<tr>
<td>Socials</td>
<td>
{% if user.social_links %}
{% for name, link in user.social_links.items %}
<li>
{{ name }}: {{ link }}
</li>
{% endfor %}
{% else %}
None
{% endif %}
</td>
</tr>
{% include "users/two_factor.html" with user=user %}

<tr>
Expand All @@ -124,6 +164,12 @@ <h2>User: <b>{{ user.username }}</b> <a href="{{ user.absolute_url }}"> ({{user.
{{ user.is_spammy }}
</td>
</tr>
<tr>
<td>User is staff</td>
<td>
{{ user.is_staff }}
</td>
</tr>
{% include "users/add_system_tags.html" with user=user %}
{% include "nodes/spam_status.html" with resource=user %}
<tr>
Expand All @@ -139,6 +185,20 @@ <h2>User: <b>{{ user.username }}</b> <a href="{{ user.absolute_url }}"> ({{user.
{% include "util/node_preprint_paginated_list.html" with items=nodes items_paginator=node_page resource_type="node" current_other_param=current_preprint %}
</td>
</tr>
<tr>
<td>Groups</td>
<td>
{% if user.groups %}
{% for group in user.groups.all %}
<li>
{{ group.name }}
</li>
{% endfor %}
{% else %}
None
{% endif %}
</td>
</tr>
</tbody>
</table>
</div>
Expand Down
Loading