Let the annoying commence.
authorRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Mon, 31 Mar 2014 14:01:12 +0000 (16:01 +0200)
committerRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Mon, 31 Mar 2014 14:01:12 +0000 (16:01 +0200)
14 files changed:
edumed/forms.py [changed mode: 0755->0644]
edumed/forum.py [changed mode: 0755->0644]
edumed/settings.d/35-search.py [changed mode: 0755->0644]
edumed/settings.d/40-auth.py
edumed/settings.d/40-cache.py [changed mode: 0755->0644]
edumed/settings.d/50-contrib.py
edumed/settings.d/50-static.py
edumed/static/css/annoy.css [deleted file]
edumed/static/css/base.css
edumed/static/css/base.scss
edumed/static/js/annoy.js [deleted file]
edumed/templates/base_super.html
edumed/views.py [changed mode: 0755->0644]
requirements.txt

old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index 675db9d..14847ac 100644 (file)
@@ -1,5 +1,5 @@
 if 'django_cas' in INSTALLED_APPS:
     AUTHENTICATION_BACKENDS = (
         'django.contrib.auth.backends.ModelBackend',
 if 'django_cas' in INSTALLED_APPS:
     AUTHENTICATION_BACKENDS = (
         'django.contrib.auth.backends.ModelBackend',
-        'django_cas.backends.CASBackend',
+        'fnpdjango.auth_backends.AttrCASBackend',
     )
     )
old mode 100755 (executable)
new mode 100644 (file)
index 74e8ee8..9306de1 100644 (file)
@@ -1,5 +1,5 @@
 CAS_SERVER_URL = 'http://logowanie.nowoczesnapolska.org.pl/cas/'
 CAS_SERVER_URL = 'http://logowanie.nowoczesnapolska.org.pl/cas/'
-CAS_VERSION = '1'
+CAS_VERSION = '3'
 
 SPONSORS_THUMB_WIDTH = 100
 SPONSORS_THUMB_HEIGHT = 56
 
 SPONSORS_THUMB_WIDTH = 100
 SPONSORS_THUMB_HEIGHT = 56
index f2924eb..c667c32 100644 (file)
@@ -25,6 +25,7 @@ PIPELINE_CSS = {
           'catalogue/css/section_list.scss',
           'curriculum/curriculum.scss',
           'jquery/colorbox/colorbox.css',
           'catalogue/css/section_list.scss',
           'curriculum/curriculum.scss',
           'jquery/colorbox/colorbox.css',
+          'fnpdjango/annoy/annoy.css',
 
           'css/forum.scss',
           'css/mil.scss'
 
           'css/forum.scss',
           'css/mil.scss'
@@ -47,6 +48,7 @@ PIPELINE_JS = {
             'curriculum/curriculum.js',
             'js/formset.js',
             'pybb/js/pybbjs.js',
             'curriculum/curriculum.js',
             'js/formset.js',
             'pybb/js/pybbjs.js',
+            'fnpdjango/annoy/annoy.js',
         ),
         'output_filename': 'compressed/base.js',
     },
         ),
         'output_filename': 'compressed/base.js',
     },
diff --git a/edumed/static/css/annoy.css b/edumed/static/css/annoy.css
deleted file mode 100755 (executable)
index 17f689d..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-#annoy-on {
-    font-size: 13px;
-    line-height: 1.15em;
-
-    padding: .1em 1em;
-    background: orange;
-    z-index: 200;
-    font-family: Arial, sans-serif;
-    display: block;
-    padding: 0 1em;
-    width: 1em;
-    text-align:center;
-    border-radius: 0 0 0 1em;
-    position: absolute;
-    top: 0;
-    right: 0;
-    color: black;
-    box-shadow: .5em 0 1em black;
-}
-
-#annoy {
-    font-size: 13px;
-    line-height: 1.15em;
-    padding: 1em 5em 1em 0;
-    display: none;
-    background: orange;
-    font-family: Arial, sans-serif;
-    position: relative;
-    z-index: 200;
-    box-shadow: 0 0 1em black;
-}
-#annoy p {
-    margin: 0 0 0 10em;;
-}
-#annoy a {
-    color: #4E56C8;
-}
-
-#annoy a#annoy-off {
-    padding: .5em 1em .5em;
-    width: 1em;
-    text-align:center;
-    font-family: Arial, sans-serif;
-    display: block;
-
-    border-radius: 0 0 0 1em;
-    position: absolute;
-    top: 0;
-    right: 0;
-    color: black;
-}
-#annoy a#annoy-off:hover {
-    cursor: pointer;
-}
index 95fb533..f718c23 100644 (file)
@@ -1,5 +1,5 @@
 @charset "UTF-8";
 @charset "UTF-8";
-@import url(http://fonts.googleapis.com/css?family=Dosis:400,700&subset=latin,latin-ext);
+@import url(//fonts.googleapis.com/css?family=Dosis:400,700&subset=latin,latin-ext);
 a {
   text-decoration: none;
   color: #ed7831; }
 a {
   text-decoration: none;
   color: #ed7831; }
@@ -44,7 +44,7 @@ header.main {
     list-style: none;
     display: inline-block;
     text-transform: uppercase;
     list-style: none;
     display: inline-block;
     text-transform: uppercase;
-    margin: 0 0.5em;
+    margin: 0 .5em;
     text-align: center;
     /*position:relative;*/ }
   header.main nav a {
     text-align: center;
     /*position:relative;*/ }
   header.main nav a {
index 38f8a09..567c0fb 100644 (file)
@@ -1,4 +1,4 @@
-@import url(http://fonts.googleapis.com/css?family=Dosis:400,700&subset=latin,latin-ext);
+@import url(//fonts.googleapis.com/css?family=Dosis:400,700&subset=latin,latin-ext);
 
 @import "vars";
 @import "mixins";
 
 @import "vars";
 @import "mixins";
diff --git a/edumed/static/js/annoy.js b/edumed/static/js/annoy.js
deleted file mode 100755 (executable)
index 78c34e4..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-(function($) {
-    $(function() {
-
-
-var have_localstorage;
-try {
-    localStorage.setItem("test", "test");
-    localStorage.removeItem("test");
-    have_localstorage = true;
-} catch(e) {
-    have_localstorage = false;
-}
-
-
-
-$("#annoy-on").click(function(e) {
-    e.preventDefault();
-    $("#annoy").slideDown('fast');
-    $(this).hide();
-    if (have_localstorage) localStorage.removeItem("annoyed2013");
-});
-
-$("#annoy-off").click(function() {
-    $("#annoy").slideUp('fast');
-    $("#annoy-on").show();
-    if (have_localstorage) localStorage["annoyed2013"] = true;
-});
-
-
-if (have_localstorage) {
-    if (!localStorage["annoyed2013"]) {
-        $("#annoy-on").hide();
-        $("#annoy").show();
-    }
-}
-
-
-
-    });
-})(jQuery);
index b3ba9d8..753764f 100644 (file)
@@ -96,7 +96,7 @@
             <div class="footer-extra">{% block footer_extra %}{% endblock %}</div>
         </footer>
 
             <div class="footer-extra">{% block footer_extra %}{% endblock %}</div>
         </footer>
 
-    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
+    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
     {% block extra_script %}{% endblock %}
     {% tracking_code %}
     </body>
     {% block extra_script %}{% endblock %}
     {% tracking_code %}
     </body>
old mode 100755 (executable)
new mode 100644 (file)
index 67f9ab9..266f69c 100644 (file)
@@ -12,7 +12,7 @@ django-piwik
 jsonfield>=0.9,<0.10
 
 django_cas>=2.1,<2.2
 jsonfield>=0.9,<0.10
 
 django_cas>=2.1,<2.2
-fnpdjango>=0.1.16,<0.2
+fnpdjango>=0.1.18,<0.2
 
 Feedparser
 
 
 Feedparser