mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
37 lines
1.3 KiB
HTML
37 lines
1.3 KiB
HTML
{% extends base_template %}
|
|
|
|
{% block title %}{% if obj %}{{ obj }}{% else %}{{ block.super }}{% endif %} - Changelog{% endblock %}
|
|
|
|
{% block content %}
|
|
{% if obj %}<h1>{{ obj }}</h1>{% endif %}
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Time</th>
|
|
<th>User</th>
|
|
<th>Action</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for change in changes %}
|
|
<tr>
|
|
<td>{{ change.time }}</td>
|
|
<td>{{ change.user }}</td>
|
|
<td>{{ change.get_action_display }}</td>
|
|
<td>
|
|
<button class="btn btn-xs btn-primary" type="button" data-toggle="collapse" data-target="#change{{ change.pk }}" aria-expanded="false" aria-controls="collapseExample">
|
|
<i class="fa fa-search"></i>
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
<tr class="collapse" id="change{{ change.pk }}">
|
|
<td colspan="4">
|
|
<pre class="well">{{ change.object_data_pretty }}</pre>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endblock %}
|