jeremystretch 4 лет назад
Родитель
Сommit
689f67b1a8

BIN
netbox/project-static/img/rest-api.ico


+ 1 - 1
netbox/templates/base/layout.html

@@ -49,7 +49,7 @@
 
 
             {# REST API #}
             {# REST API #}
             <a type="button" class="nav-link" href="{% url 'api-root' %}" target="_blank">
             <a type="button" class="nav-link" href="{% url 'api-root' %}" target="_blank">
-              <i title="REST API" class="mdi mdi-code-braces text-primary" data-bs-placement="top" data-bs-toggle="tooltip"></i>
+              <i title="REST API" class="mdi mdi-cloud-braces text-primary" data-bs-placement="top" data-bs-toggle="tooltip"></i>
             </a>
             </a>
 
 
             {# API docs #}
             {# API docs #}

+ 8 - 2
netbox/templates/rest_framework/api.html

@@ -1,5 +1,11 @@
 {% extends 'rest_framework/base.html' %}
 {% extends 'rest_framework/base.html' %}
+{% load static %}
+
+{% block head %}
+  {{ block.super }}
+  <link rel="icon" type="image/png" href="{% static 'rest-api.ico' %}" />
+{% endblock head %}
 
 
 {% block branding %}
 {% block branding %}
-    <a class="navbar-brand" href="/{{ settings.BASE_PATH }}">NetBox</a>
-{% endblock %}
+  <a class="navbar-brand" href="/{{ settings.BASE_PATH }}">NetBox</a>
+{% endblock branding %}