mirror of
				https://github.com/netbox-community/netbox.git
				synced 2024-05-10 07:54:54 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			42 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {% extends 'base.html' %}
 | |
| {% load helpers %}
 | |
| {% load perms %}
 | |
| {% load plugins %}
 | |
| 
 | |
| {% block header %}
 | |
|     <div class="row noprint">
 | |
|         <div class="col-md-12">
 | |
|             <ol class="breadcrumb">
 | |
|                 <li><a href="{% url 'dcim:device_list' %}">Devices</a></li>
 | |
|                 <li><a href="{{ instance.device.get_absolute_url }}">{{ instance.device }}</a></li>
 | |
|                 <li><a href="{% url instance|viewname:"list" %}?device_id={{ instance.device.pk }}">{{ instance|meta:"verbose_name_plural"|bettertitle }}</a></li>
 | |
|                 <li>{{ instance }}</li>
 | |
|             </ol>
 | |
|         </div>
 | |
|     </div>
 | |
|     <div class="pull-right noprint">
 | |
|         {% plugin_buttons instance %}
 | |
|         {% if request.user|can_change:instance %}
 | |
|             <a href="{% url instance|viewname:"edit" pk=instance.pk %}" class="btn btn-warning">
 | |
|                 <span class="mdi mdi-pencil" aria-hidden="true"></span> Edit
 | |
|             </a>
 | |
|         {% endif %}
 | |
|         {% if request.user|can_delete:instance %}
 | |
|             <a href="{% url instance|viewname:"delete" pk=instance.pk %}" class="btn btn-danger">
 | |
|                 <span class="mdi mdi-trash-can-outline" aria-hidden="true"></span> Delete
 | |
|             </a>
 | |
|         {% endif %}
 | |
|     </div>
 | |
|     <h1>{% block title %}{{ instance.device }} / {{ instance }}{% endblock %}</h1>
 | |
|     <ul class="nav nav-tabs">
 | |
|         <li role="presentation"{% if not active_tab %} class="active"{% endif %}>
 | |
|             <a href="{{ instance.get_absolute_url }}">{{ instance|meta:"verbose_name"|bettertitle }}</a>
 | |
|         </li>
 | |
|         {% if perms.extras.view_objectchange %}
 | |
|             <li role="presentation"{% if active_tab == 'changelog' %} class="active"{% endif %}>
 | |
|                 <a href="{% url instance|viewname:"changelog" pk=instance.pk %}">Change Log</a>
 | |
|             </li>
 | |
|         {% endif %}
 | |
|     </ul>
 | |
| {% endblock %}
 |