mirror of
				https://github.com/netbox-community/netbox.git
				synced 2024-05-10 07:54:54 +00:00 
			
		
		
		
	migrate templates to bootstrap 5
This commit is contained in:
		@@ -25,23 +25,23 @@
 | 
			
		||||
 | 
			
		||||
{% block tabs %}
 | 
			
		||||
  <ul class="nav nav-tabs" style="margin-bottom: 20px">
 | 
			
		||||
    <li role="presentation"{% if not active_tab %} class="active"{% endif %}>
 | 
			
		||||
      <a href="{% url 'ipam:vlan' pk=object.pk %}">VLAN</a>
 | 
			
		||||
    <li class="nav-item" role="presentation">
 | 
			
		||||
      <a class="nav-link{% if not active_tab %} active{% endif %}" href="{% url 'ipam:vlan' pk=object.pk %}">VLAN</a>
 | 
			
		||||
    </li>
 | 
			
		||||
    <li role="presentation"{% if active_tab == 'interfaces' %} class="active"{% endif %}>
 | 
			
		||||
      <a href="{% url 'ipam:vlan_interfaces' pk=object.pk %}">Device Interfaces <span class="badge">{{ object.get_interfaces.count }}</span></a>
 | 
			
		||||
    <li class="nav-item" role="presentation">
 | 
			
		||||
      <a class="nav-link{% if active_tab == 'interfaces' %} active{% endif %}" href="{% url 'ipam:vlan_interfaces' pk=object.pk %}">Device Interfaces <span class="badge bg-primary">{{ object.get_interfaces.count }}</span></a>
 | 
			
		||||
    </li>
 | 
			
		||||
    <li role="presentation"{% if active_tab == 'vminterfaces' %} class="active"{% endif %}>
 | 
			
		||||
      <a href="{% url 'ipam:vlan_vminterfaces' pk=object.pk %}">VM Interfaces <span class="badge">{{ object.get_vminterfaces.count }}</span></a>
 | 
			
		||||
    <li class="nav-item" role="presentation">
 | 
			
		||||
      <a class="nav-link{% if active_tab == 'vminterfaces' %} active{% endif %}" href="{% url 'ipam:vlan_vminterfaces' pk=object.pk %}">VM Interfaces <span class="badge bg-primary">{{ object.get_vminterfaces.count }}</span></a>
 | 
			
		||||
    </li>
 | 
			
		||||
    {% if perms.extras.view_journalentry %}
 | 
			
		||||
      <li role="presentation"{% if active_tab == 'journal' %} class="active"{% endif %}>
 | 
			
		||||
        <a href="{% url 'ipam:vlan_journal' pk=object.pk %}">Journal</a>
 | 
			
		||||
      <li class="nav-item" role="presentation">
 | 
			
		||||
        <a class="nav-link{% if active_tab == 'journal' %} active{% endif %}" href="{% url 'ipam:vlan_journal' pk=object.pk %}">Journal</a>
 | 
			
		||||
      </li>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
    {% if perms.extras.view_objectchange %}
 | 
			
		||||
      <li role="presentation"{% if active_tab == 'changelog' %} class="active"{% endif %}>
 | 
			
		||||
        <a href="{% url 'ipam:vlan_changelog' pk=object.pk %}">Change Log</a>
 | 
			
		||||
      <li class="nav-item" role="presentation">
 | 
			
		||||
        <a class="nav-link{% if active_tab == 'changelog' %} active{% endif %}" href="{% url 'ipam:vlan_changelog' pk=object.pk %}">Change Log</a>
 | 
			
		||||
      </li>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
  </ul>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user