Explorar el Código

Merge pull request #3561 from netbox-community/3560-drf-bootstrap-css

Override DRF's builtin Bootstrap with NetBox's own more recent copy
Jeremy Stretch hace 6 años
padre
commit
7a65930361
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      netbox/templates/rest_framework/api.html

+ 6 - 0
netbox/templates/rest_framework/api.html

@@ -1,4 +1,10 @@
 {% extends 'rest_framework/base.html' %}
+{% load static %}
+
+{% block bootstrap_theme %}
+    <link rel="stylesheet" type="text/css" href="{% static 'bootstrap-3.4.1-dist/css/bootstrap.min.css' %}"/>
+    <link rel="stylesheet" type="text/css" href="{% static "rest_framework/css/bootstrap-tweaks.css" %}"/>
+{% endblock %}
 
 {% block branding %}
     <a class="navbar-brand" href="/{{ settings.BASE_PATH }}">NetBox</a>