mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-26 18:58:54 +02:00
70 lines
2.1 KiB
HTML
70 lines
2.1 KiB
HTML
{% extends 'generic/object.html' %}
|
|
{% load helpers %}
|
|
{% load i18n %}
|
|
{% load render_table from django_tables2 %}
|
|
|
|
{% block title %}{% trans "Token" %} {{ object }}{% endblock %}
|
|
|
|
{% block subtitle %}{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="row mb-3">
|
|
<div class="col-md-6">
|
|
<div class="card">
|
|
<h2 class="card-header">{% trans "Token" %}</h2>
|
|
<table class="table table-hover attr-table">
|
|
<tr>
|
|
<th scope="row">{% trans "Version" %}</th>
|
|
<td>{{ object.version }}</td>
|
|
</tr>
|
|
{% if object.version == 1 %}
|
|
<tr>
|
|
<th scope="row">{% trans "Token" %}</th>
|
|
<td>{{ object.partial }}</td>
|
|
</tr>
|
|
{% else %}
|
|
<tr>
|
|
<th scope="row">{% trans "Key" %}</th>
|
|
<td>{{ object }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{% trans "Pepper" %}</th>
|
|
<td>{{ object.pepper }}</td>
|
|
</tr>
|
|
{% endif %}
|
|
<tr>
|
|
<th scope="row">{% trans "User" %}</th>
|
|
<td>
|
|
<a href="{% url 'users:user' pk=object.user.pk %}">{{ object.user }}</a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{% trans "Description" %}</th>
|
|
<td>{{ object.description|placeholder }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{% trans "Write enabled" %}</th>
|
|
<td>{% checkmark object.write_enabled %}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{% trans "Created" %}</th>
|
|
<td>{{ object.created|isodatetime }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{% trans "Expires" %}</th>
|
|
<td>{{ object.expires|isodatetime|placeholder }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{% trans "Last used" %}</th>
|
|
<td>{{ object.last_used|isodatetime|placeholder }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{% trans "Allowed IPs" %}</th>
|
|
<td>{{ object.allowed_ips|join:", "|placeholder }}</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|