mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-14 15:52:18 -06:00
* Initial work on #19735 * Work in progress * Remove ClusterRemoveDevicesView (anti-pattern) * Misc cleanup * Fix has_bulk_actions * Fix has_bulk_actions for ObjectChildrenView * Restore clone button * Misc cleanup * Clean up custom bulk actions * Rename individual object actions * Collapse into a single template tag * Fix support for legacy action dicts * Rename bulk attr to multi * clone_button tag should fail silently if view name is invalid * Clean up action buttons * Fix export button label * Replace clone_button with an ObjectAction * Create object actions for adding device/VM components * Move core_sync.html to core app * Remove extra_bulk_buttons from template doc
63 lines
1.8 KiB
HTML
63 lines
1.8 KiB
HTML
{% extends 'generic/object.html' %}
|
|
{% load buttons %}
|
|
{% load custom_links %}
|
|
{% load helpers %}
|
|
{% load perms %}
|
|
{% load plugins %}
|
|
{% load i18n %}
|
|
|
|
{% block breadcrumbs %}
|
|
{{ block.super }}
|
|
<li class="breadcrumb-item"><a href="{% url 'core:datafile_list' %}?source_id={{ object.source.pk }}">{{ object.source }}</a></li>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="row mb-3">
|
|
<div class="col">
|
|
<div class="card">
|
|
<h2 class="card-header">{% trans "Data File" %}</h2>
|
|
<table class="table table-hover attr-table">
|
|
<tr>
|
|
<th scope="row">{% trans "Source" %}</th>
|
|
<td>{{ object.source|linkify }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{% trans "Path" %}</th>
|
|
<td>
|
|
<span class="font-monospace" id="datafile_path">{{ object.path }}</span>
|
|
{% copy_content "datafile_path" %}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{% trans "Last Updated" %}</th>
|
|
<td>{{ object.last_updated }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{% trans "Size" %}</th>
|
|
<td>{{ object.size }} {% trans "bytes" %}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{% trans "SHA256 Hash" %}</th>
|
|
<td>
|
|
<span class="font-monospace" id="datafile_hash">{{ object.hash }}</span>
|
|
{% copy_content "datafile_hash" %}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="card">
|
|
<h2 class="card-header">{% trans "Content" %}</h2>
|
|
<div class="card-body">
|
|
<pre>{{ object.data_as_string }}</pre>
|
|
</div>
|
|
</div>
|
|
{% plugin_left_page object %}
|
|
</div>
|
|
</div>
|
|
<div class="row mb-3">
|
|
<div class="col col-md-12">
|
|
{% plugin_full_width_page object %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|