0.4.6 dont show slider on sections page
This commit is contained in:
@@ -55,12 +55,18 @@ def get_content_for_section_ajax(request):
|
|||||||
# }
|
# }
|
||||||
# els_footer_list = [one_list_el]
|
# els_footer_list = [one_list_el]
|
||||||
#
|
#
|
||||||
|
show_slider = True
|
||||||
|
if '/section/' in request.META.get('HTTP_REFERER'):
|
||||||
|
show_slider = False
|
||||||
|
|
||||||
Dict = {
|
Dict = {
|
||||||
'page': section,
|
'page': section,
|
||||||
|
'show_slider': show_slider,
|
||||||
# 'sections': get_sections(),
|
# 'sections': get_sections(),
|
||||||
# 'services': services,
|
# 'services': services,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
from .funcs import get_section_views_Dict
|
from .funcs import get_section_views_Dict
|
||||||
Dict.update(get_section_views_Dict(section))
|
Dict.update(get_section_views_Dict(section))
|
||||||
|
|
||||||
|
|||||||
@@ -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' %}
|
{% include 'blocks/dynamic/b_sections_buttons.html' %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user