1.0.7 push routines
This commit is contained in:
@@ -69,7 +69,7 @@ def get_inter_http_respose(template_obj, context_Dict, request):
|
|||||||
title = getattr(context_Dict['page'], 'title', None)
|
title = getattr(context_Dict['page'], 'title', None)
|
||||||
text = getattr(context_Dict['page'], 'description', None)
|
text = getattr(context_Dict['page'], 'description', None)
|
||||||
|
|
||||||
if text and title and not request.user.is_anonymous:
|
# if text and title and not request.user.is_anonymous:
|
||||||
send_push(user=request.user, title=title, text=text)
|
# send_push(user=request.user, title=title, text=text)
|
||||||
|
|
||||||
return HttpResponse(template_obj.render(context_Dict, request))
|
return HttpResponse(template_obj.render(context_Dict, request))
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load webpush_notifications %}
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<div>
|
<div>
|
||||||
@@ -69,11 +70,13 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="clear-both"></div>
|
<div class="clear-both"></div>
|
||||||
|
<div style="text-align: left; color: #FFF !important;">{% webpush_button %}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="second-footer">
|
<div class="second-footer">
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
|
|
||||||
<div class="sf_1_column">Copyright © 2023. {% trans "Все права защищены." %}</div>
|
<div class="sf_1_column">Copyright © 2023. {% trans "Все права защищены." %}</div>
|
||||||
|
|
||||||
|
|||||||
@@ -133,7 +133,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div style="text-align: right;">{% webpush_button %}</div>
|
|
||||||
<div class="clear_both"></div>
|
<div class="clear_both"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user