diff --git a/ServicesApp/js_views.py b/ServicesApp/js_views.py index bc47649..2db4f03 100644 --- a/ServicesApp/js_views.py +++ b/ServicesApp/js_views.py @@ -55,12 +55,18 @@ def get_content_for_section_ajax(request): # } # els_footer_list = [one_list_el] # + show_slider = True + if '/section/' in request.META.get('HTTP_REFERER'): + show_slider = False + Dict = { 'page': section, + 'show_slider': show_slider, # 'sections': get_sections(), # 'services': services, } + from .funcs import get_section_views_Dict Dict.update(get_section_views_Dict(section)) diff --git a/templates/pages/content/c_section_content.html b/templates/pages/content/c_section_content.html index 918c42b..904e010 100644 --- a/templates/pages/content/c_section_content.html +++ b/templates/pages/content/c_section_content.html @@ -1,4 +1,7 @@ -{% include 'blocks/b_slider.html' %} + +{% if show_slider %} + {% include 'blocks/b_slider.html' %} +{% endif %} {% include 'blocks/dynamic/b_sections_buttons.html' %}