mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
86 lines
2.7 KiB
HTML
86 lines
2.7 KiB
HTML
{% extends 'users/base.html' %}
|
|
{% load helpers %}
|
|
{% load render_table from django_tables2 %}
|
|
|
|
{% block title %}User Profile{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="row mb-3">
|
|
<div class="col-md-6">
|
|
<div class="card">
|
|
<h5 class="card-header">Account Details</h5>
|
|
<div class="card-body">
|
|
<table class="table table-hover attr-table">
|
|
<tr>
|
|
<th scope="row">Username</th>
|
|
<td>{{ request.user.username }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">Full Name</th>
|
|
<td>
|
|
{% if request.user.first_name or request.user.last_name %}
|
|
{{ request.user.first_name }} {{ request.user.last_name }}
|
|
{% else %}
|
|
<span class="text-muted">—</span>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">Email</th>
|
|
<td>{{ request.user.email|placeholder }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">Account Created</th>
|
|
<td>{{ request.user.date_joined|annotated_date }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">Superuser</th>
|
|
<td>
|
|
{% if request.user.is_superuser %}
|
|
<i class="mdi mdi-check-bold text-success" title="Yes"></i>
|
|
{% else %}
|
|
<i class="mdi mdi-close-thick text-danger" title="No"></i>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">Admin Access</th>
|
|
<td>
|
|
{% if request.user.is_staff %}
|
|
<i class="mdi mdi-check-bold text-success" title="Yes"></i>
|
|
{% else %}
|
|
<i class="mdi mdi-close-thick text-danger" title="No"></i>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="card">
|
|
<h5 class="card-header">Assigned Groups</h5>
|
|
<ul class="list-group list-group-flush">
|
|
{% for group in request.user.groups.all %}
|
|
<li class="list-group-item">{{ group }}</li>
|
|
{% empty %}
|
|
<li class="list-group-item text-muted">None</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% if perms.extras.view_objectchange %}
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="card">
|
|
<h5 class="card-header text-center">Recent Activity</h5>
|
|
<div class="card-body table-responsive">
|
|
{% render_table changelog_table 'inc/table.html' %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|