mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
# Conflicts: # netbox/dcim/tables/template_code.py # netbox/netbox/views/__init__.py # netbox/project-static/css/base.css # netbox/templates/base.html # netbox/templates/circuits/circuit.html # netbox/templates/circuits/circuittermination_edit.html # netbox/templates/circuits/inc/circuit_termination.html # netbox/templates/circuits/provider.html # netbox/templates/dcim/device.html # netbox/templates/dcim/device/base.html # netbox/templates/dcim/device_component.html # netbox/templates/dcim/devicetype.html # netbox/templates/dcim/inc/device_napalm_tabs.html # netbox/templates/dcim/rack.html # netbox/templates/dcim/site.html # netbox/templates/dcim/virtualchassis.html # netbox/templates/extras/configcontext.html # netbox/templates/extras/object_journal.html # netbox/templates/extras/tag.html # netbox/templates/generic/object.html # netbox/templates/generic/object_list.html # netbox/templates/home.html # netbox/templates/inc/nav_menu.html # netbox/templates/ipam/aggregate.html # netbox/templates/ipam/ipaddress.html # netbox/templates/ipam/prefix.html # netbox/templates/ipam/vlan.html # netbox/templates/ipam/vlangroup_edit.html # netbox/templates/ipam/vlangroup_vlans.html # netbox/templates/secrets/secret.html # netbox/templates/tenancy/tenant.html # netbox/templates/users/api_tokens.html # netbox/templates/virtualization/cluster.html # netbox/templates/virtualization/vminterface_edit.html # netbox/utilities/forms/fields.py # netbox/utilities/templates/buttons/export.html
77 lines
2.4 KiB
HTML
77 lines
2.4 KiB
HTML
{% extends 'layout.html' %}
|
|
{% load buttons %}
|
|
{% load custom_links %}
|
|
{% load helpers %}
|
|
{% load perms %}
|
|
{% load plugins %}
|
|
|
|
|
|
{% block title %}<a href="{{ object.get_absolute_url }}">{{ object }}</a>{% endblock %}
|
|
|
|
{% block breadcrumb_main %}
|
|
<nav class="breadcrumb-container" aria-label="breadcrumb">
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item"><a href="/">Home</a></li>
|
|
{% block breadcrumbs %}{%endblock%}
|
|
</ol>
|
|
</nav>
|
|
{% endblock %}
|
|
|
|
{% block controls %}
|
|
{% plugin_buttons object %}
|
|
<div class="container mb-2 mx-0">
|
|
<div class="d-flex flex-wrap justify-content-end">
|
|
{% block extra_controls %}{% endblock %}
|
|
{% if request.user|can_add:object %}
|
|
{% clone_button object %}
|
|
{% endif %}
|
|
{% if request.user|can_change:object %}
|
|
{% edit_button object %}
|
|
{% endif %}
|
|
{% if request.user|can_delete:object %}
|
|
{% delete_button object %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block tabs %}
|
|
<ul class="nav nav-tabs mb-3">
|
|
{% block tab_items %}
|
|
<li class="nav-item" role="presentation">
|
|
<a class="nav-link{% if not active_tab %} active{% endif %}" href="{{ object.get_absolute_url }}">{{ object|meta:"verbose_name"|bettertitle }}</a>
|
|
</li>
|
|
{% endblock %}
|
|
{% if perms.extras.view_journalentry %}
|
|
{% with journal_viewname=object|viewname:'journal' %}
|
|
{% url journal_viewname pk=object.pk as journal_url %}
|
|
{% if journal_url %}
|
|
<li role="presentation" class="nav-item">
|
|
<a href="{{ journal_url }}" class="nav-link{% if active_tab == 'journal'%} active{% endif %}">Journal</a>
|
|
</li>
|
|
{% endif %}
|
|
{% endwith %}
|
|
{% endif %}
|
|
{% if perms.extras.view_objectchange %}
|
|
{% with changelog_viewname=object|viewname:'changelog' %}
|
|
{% url changelog_viewname pk=object.pk as changelog_url %}
|
|
<li role="presentation" class="nav-item">
|
|
<a href="{{ changelog_url }}" class="nav-link{% if active_tab == 'changelog'%} active{% endif %}">Change Log</a>
|
|
</li>
|
|
{% endwith %}
|
|
{% endif %}
|
|
</ul>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<p>
|
|
<small class="text-muted">
|
|
Created {{ object.created }} ·
|
|
Updated <span title="{{ object.last_updated }}">{{ object.last_updated|timesince }}</span> ago
|
|
</small>
|
|
<span class="badge bg-primary">{{ object|meta:"app_label" }}.{{ object|meta:"model_name" }}:{{ object.pk }}</span>
|
|
</p>
|
|
{% block tab_buttons %}{% custom_links object %}{% endblock %}
|
|
{% endblock %}
|
|
{% block components %}{% endblock %}
|