mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 08:46:10 -06:00
Add template translations
This commit is contained in:
parent
a245c3d37f
commit
4342ebc027
@ -1,12 +1,17 @@
|
|||||||
{% extends 'generic/object.html' %}
|
{% extends 'generic/object.html' %}
|
||||||
{% load form_helpers %}
|
{% load form_helpers %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
|
{% load i18n %}
|
||||||
{% load plugins %}
|
{% load plugins %}
|
||||||
|
|
||||||
{% block breadcrumbs %}
|
{% block breadcrumbs %}
|
||||||
<li class="breadcrumb-item"><a href="{% url 'users:usertoken_list' %}">My API Tokens</a></li>
|
<li class="breadcrumb-item"><a href="{% url 'users:usertoken_list' %}">{% trans "My API Tokens" %}</a></li>
|
||||||
{% endblock breadcrumbs %}
|
{% endblock breadcrumbs %}
|
||||||
|
|
||||||
|
{% block title %}{% trans "Token" %} {{ object }}{% endblock %}
|
||||||
|
|
||||||
|
{% block subtitle %}{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col col-md-12">
|
<div class="col col-md-12">
|
||||||
@ -16,12 +21,12 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h5 class="card-header">Token</h5>
|
<h5 class="card-header">{% trans "Token" %}</h5>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<table class="table table-hover attr-table">
|
<table class="table table-hover attr-table">
|
||||||
{% if key %}
|
{% if key %}
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">Key</th>
|
<th scope="row">{% trans "Key" %}</th>
|
||||||
<td>
|
<td>
|
||||||
<div class="float-end">
|
<div class="float-end">
|
||||||
{% copy_content "token_id" %}
|
{% copy_content "token_id" %}
|
||||||
@ -31,24 +36,24 @@
|
|||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">Description</th>
|
<th scope="row">{% trans "Description" %}</th>
|
||||||
<td>{{ object.description|placeholder }}</td>
|
<td>{{ object.description|placeholder }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">User</th>
|
<th scope="row">{% trans "User" %}</th>
|
||||||
<td>{{ object.user }}</td>
|
<td>{{ object.user }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">Created</th>
|
<th scope="row">{% trans "Created" %}</th>
|
||||||
<td>{{ object.created|annotated_date }}</td>
|
<td>{{ object.created|annotated_date }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">Expires</th>
|
<th scope="row">{% trans "Expires" %}</th>
|
||||||
<td>
|
<td>
|
||||||
{% if object.expires %}
|
{% if object.expires %}
|
||||||
{{ object.expires|annotated_date }}
|
{{ object.expires|annotated_date }}
|
||||||
{% else %}
|
{% else %}
|
||||||
<span>Never</span>
|
<span>{% trans "Never" %}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
Loading…
Reference in New Issue
Block a user