From d7208c50ff4ea452176aa01b3e0aadcfa1000bc6 Mon Sep 17 00:00:00 2001 From: Julie Zhang Date: Thu, 21 Nov 2019 15:21:14 -0800 Subject: [PATCH] Remove intranet related stuff and USE_LOCAL_FONTS --- askbot/context.py | 9 ++------- askbot/templates/meta/fonts.html | 18 +++--------------- 2 files changed, 5 insertions(+), 22 deletions(-) diff --git a/askbot/context.py b/askbot/context.py index b0855b0b5e..8d9fc2d05a 100644 --- a/askbot/context.py +++ b/askbot/context.py @@ -43,11 +43,6 @@ def application_settings(request): 'ASKBOT_CSS_DEVEL', False ) - my_settings['USE_LOCAL_FONTS'] = getattr( - settings, - 'ASKBOT_USE_LOCAL_FONTS', - False - ) my_settings['CSRF_COOKIE_NAME'] = settings.CSRF_COOKIE_NAME my_settings['DEBUG'] = settings.DEBUG my_settings['USING_RUNSERVER'] = 'runserver' in sys.argv @@ -64,7 +59,7 @@ def application_settings(request): my_settings['LOGOUT_REDIRECT_URL'] = url_utils.get_logout_redirect_url() my_settings['USE_ASKBOT_LOGIN_SYSTEM'] = 'askbot.deps.django_authopenid' \ in settings.INSTALLED_APPS - + current_language = get_language() #for some languages we will start searching for shorter words @@ -72,7 +67,7 @@ def application_settings(request): #we need to open the search box and show info message about #the japanese lang search min_search_word_length = 1 - else: + else: min_search_word_length = my_settings['MIN_SEARCH_WORD_LENGTH'] context = { diff --git a/askbot/templates/meta/fonts.html b/askbot/templates/meta/fonts.html index 4332e1a684..9a04fd56e1 100644 --- a/askbot/templates/meta/fonts.html +++ b/askbot/templates/meta/fonts.html @@ -1,15 +1,3 @@ -{% if settings.USE_LOCAL_FONTS %} - {# this version is for serving fonts locally - e.g. for intranet sites #} - -{% else %} - {# note: for IE8 we ask for fonts separately #} - - -{% endif %} +{# note: for IE8 we ask for fonts separately #} + +