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

package info (click to toggle)
django-oauth-toolkit 1.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,032 kB
  • sloc: python: 6,039; makefile: 154
file content (25 lines) | stat: -rw-r--r-- 969 bytes parent folder | download | duplicates (2)
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
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 048c41f..7afd814 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>