1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Add custom links to templates

This commit is contained in:
Jeremy Stretch
2019-04-15 21:38:04 -04:00
parent 2ec7ac1ea3
commit dd58e78fde
19 changed files with 73 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
{% extends '_base.html' %}
{% load custom_links %}
{% load helpers %}
{% block header %}
@@ -41,6 +42,9 @@
</div>
<h1>{% block title %}{{ cluster }}{% endblock %}</h1>
{% include 'inc/created_updated.html' with obj=cluster %}
<div class="pull-right noprint">
{% custom_links cluster %}
</div>
<ul class="nav nav-tabs">
<li role="presentation"{% if not active_tab %} class="active"{% endif %}>
<a href="{{ cluster.get_absolute_url }}">Cluster</a>

View File

@@ -1,4 +1,5 @@
{% extends '_base.html' %}
{% load custom_links %}
{% load helpers %}
{% block header %}
@@ -40,6 +41,9 @@
</div>
<h1>{% block title %}{{ virtualmachine }}{% endblock %}</h1>
{% include 'inc/created_updated.html' with obj=virtualmachine %}
<div class="pull-right noprint">
{% custom_links virtualmachine %}
</div>
<ul class="nav nav-tabs">
<li role="presentation"{% if not active_tab %} class="active"{% endif %}>
<a href="{{ virtualmachine.get_absolute_url }}">Virtual Machine</a>