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

#6834: Add favicon to REST API web UI

This commit is contained in:
jeremystretch
2021-07-29 15:02:52 -04:00
parent 81e1b7490e
commit 689f67b1a8
3 changed files with 9 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

View File

@ -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 #}

View File

@ -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> <a class="navbar-brand" href="/{{ settings.BASE_PATH }}">NetBox</a>
{% endblock %} {% endblock branding %}