File: 0001-Replace-CDN-URL-with-a-local-bootstrap-CSS-file.patch

package info (click to toggle)
django-oauth-toolkit 0.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 728 kB
  • ctags: 785
  • sloc: python: 4,214; makefile: 157
file content (26 lines) | stat: -rw-r--r-- 1,040 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 15d5d2f5fe0decbee63bff4e3673da6b4e2ae518 Mon Sep 17 00:00:00 2001
From: Michael Fladischer <fladi@debian.org>
Date: Fri, 25 Dec 2015 14:05:27 +0100
Subject: Replace CDN URL with a local bootstrap CSS file

Last-Update: 2015-08-27
Forwarded: not-needed
---
 oauth2_provider/templates/oauth2_provider/base.html | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/oauth2_provider/templates/oauth2_provider/base.html b/oauth2_provider/templates/oauth2_provider/base.html
index 0781951..3f2afb1 100644
--- a/oauth2_provider/templates/oauth2_provider/base.html
+++ b/oauth2_provider/templates/oauth2_provider/base.html
@@ -7,8 +7,9 @@
     <meta name="description" content="">
     <meta name="author" content="">
 
+    {% load staticfiles %}
     {% block css %}
-        <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css" rel="stylesheet">
+        <link href="{% static 'oauth2_provider/bootstrap.min.css' %}" rel="stylesheet">
     {% endblock css %}
 
     <style>