--- /dev/null
+#!/usr/bin/env python
+# -*- coding:utf8 -*-
+# Copyright (C) 2014 FinalsClub Foundation
+
+from django.conf import settings
+
+def s3_url(request):
+ return { 'S3_URL': settings.S3_URL }
+
+
'django.core.context_processors.tz',
'django.contrib.messages.context_processors.messages',
'django.core.context_processors.request',
+ 'karmaworld.apps.notes.context_processors.s3_url',
# allauth specific context processors
"allauth.account.context_processors.account",
'Cache-Control': 'max-age=%d, s-maxage=%d, must-revalidate' % (AWS_EXPIREY,
AWS_EXPIREY)
}
-
-# See: https://docs.djangoproject.com/en/dev/ref/settings/#static-url
-# S3_URL comes from karmaworld.secret.static_s3
-STATIC_URL = S3_URL
########## END STORAGE CONFIGURATION
+++ /dev/null
-{% comment %}
-Integrate opentip seamlessly into any page, just use:
-
-`{% include 'partial/opentip/html' %}`
-anywhere in another template and then apply something like this:
-
-
- <i
- data-ot="Upload directly to this course"
- data-ot-target="true"
- data-ot-tip-joint="top center"
- data-ot-target-joint="bottom center"
- data-ot-background="white"
- data-ot-border-color="black"
- class="fa fa-upload opentip"></i>
-
-to create a Font Awesome with a rollover opentip
-
-{% endcomment %}
-
-
-{% block opentip %}
- <script src="{{ STATIC_URL }}js/opentip-jquery-excanvas.min.js"></script>
- <link rel="stylesheet" href="{{ STATIC_URL }}css/vendor/opentip.css"> <!-- opentip -->
-{% endblock %}