0.5.17 fix docs not allow
This commit is contained in:
@@ -40,11 +40,15 @@ def get_inter_Dict(user, context_Dict):
|
||||
feedback_form.initial = {'form_name': form_name}
|
||||
Dict.update({'feedback_form': feedback_form})
|
||||
|
||||
from DocsApp.models import DocArt
|
||||
arts_exists = DocArt.objects.filter(enable=True).exists()
|
||||
|
||||
Dict.update({
|
||||
'sections': sections,
|
||||
'logo': get_logo_url(),
|
||||
'hide_form_field_description': hide_form_field_description,
|
||||
'footer_contacts': get_footer_contacts(),
|
||||
'allow_documentation': arts_exists,
|
||||
})
|
||||
# from SubscribesApp.funcs import get_cur_user_subscribe
|
||||
# user_subscribe = get_cur_user_subscribe(user)
|
||||
|
||||
@@ -10,7 +10,9 @@
|
||||
</a>
|
||||
<div class="right_part_header">
|
||||
{# <a class="standart_txt text_header pointer">Поддержка</a>#}
|
||||
<a href="{% url 'docs_main' %}" class="standart_txt text_header last_left pointer">{% translate "Поддержка" %}</a>
|
||||
{% if allow_documentation %}
|
||||
<a href="{% url 'docs_main' %}" class="standart_txt text_header last_left pointer">{% translate "Поддержка" %}</a>
|
||||
{% endif %}
|
||||
<a href="{% url 'contacts' %}" class="standart_txt text_header last_left pointer">{% translate "Контакты" %}</a>
|
||||
<div class="splitter_text_header"></div>
|
||||
<div class="language_select close">
|
||||
|
||||
Reference in New Issue
Block a user