[Python-modules-commits] [django-oauth-toolkit] 06/07: Add use_local_bootstrap.patch to replace CDN URL with a local bootstrap CSS file.

Michael Fladischer fladi at moszumanska.debian.org
Thu Aug 27 19:46:58 UTC 2015


This is an automated email from the git hooks/post-receive script.

fladi pushed a commit to branch master
in repository django-oauth-toolkit.

commit 55e8a76182dff2683c52ee93d2ea554d3fdc3cb7
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date:   Thu Aug 27 21:21:29 2015 +0200

    Add use_local_bootstrap.patch to replace CDN URL with a local bootstrap CSS file.
---
 debian/patches/series                    |  1 +
 debian/patches/use_local_bootstrap.patch | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..c359d7e
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+use_local_bootstrap.patch
diff --git a/debian/patches/use_local_bootstrap.patch b/debian/patches/use_local_bootstrap.patch
new file mode 100644
index 0000000..aa04596
--- /dev/null
+++ b/debian/patches/use_local_bootstrap.patch
@@ -0,0 +1,19 @@
+Description: Replace CDN URL with a local bootstrap CSS file
+Author: Michael Fladischer <fladi at debian.org>
+Last-Update: 2015-08-27
+Forwarded: not-needed
+Index: django-oauth-toolkit/oauth2_provider/templates/oauth2_provider/base.html
+===================================================================
+--- django-oauth-toolkit.orig/oauth2_provider/templates/oauth2_provider/base.html	2015-06-19 17:49:54.920213280 +0200
++++ django-oauth-toolkit/oauth2_provider/templates/oauth2_provider/base.html	2015-08-27 20:54:07.807502746 +0200
+@@ -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>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/django-oauth-toolkit.git



More information about the Python-modules-commits mailing list