eduardogsilva.routerfleet/templates/router_manager/sshkey_list.html
2024-04-15 10:48:11 -03:00

55 lines
No EOL
2.1 KiB
HTML

{% extends 'base.html' %}
{% block content %}
<div class='row'>
<div class='col-lg-12'>
<div class="card card-primary card-outline">
{% if page_title %}
<div class="card-header">
<h3 class="card-title">{{ page_title }}</h3>
</div>
{% endif %}
<div class="card-body">
{% include 'router_manager/router_nav_tabs.html' %}
<div class="row">
<div class="col-lg-12">
<table class="table table-hover datatables-no-export">
<thead>
<th>Name</th>
<th>Public Key</th>
<th>Routers</th>
<th></th>
</thead>
<tbody>
{% for sshkey in sshkey_list %}
<tr>
<td>{{ sshkey.name }}</td>
<td>{{ sshkey.public_key|slice:40 }}...</td>
<td>{{ sshkey.router_set.count }}</td>
<td class="min-width">
<a href="/router/manage_sshkey/?uuid={{ sshkey.uuid }}"><i
class="fas fa-edit"></i></a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<a href="/router/manage_sshkey/" class="btn btn-primary">Add SSH Key</a>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}