add placeholders

master
fefa4ka 10 years ago
parent 4e42a1681e
commit 5b3d2d8cd4
  1. 7
      app/deploy/zuykov.py
  2. 2
      requirements.txt
  3. 2
      zsite/templates/base.html
  4. 6
      zsite/templates/sub_section.html

@ -72,7 +72,12 @@ class ZuykovWebSystem(Node):
def static(self):
self.Application.run_management_command('collectstatic --noinput')
def frontend_update(self):
self.Application.update()
self.Application.run_management_command('collectstatic --noinput')
self.Application.restart()
def deploy(self):
self.Application.update()

@ -39,4 +39,4 @@ pyuca
https://github.com/aldryn/aldryn-segmentation/archive/master.zip
https://github.com/aldryn/aldryn-country-segment/archive/master.zip
django-easy-select2
geoip
geoip #http://xazrad.blogspot.ru/2014/12/django-geoip-ubuntu-mac-os-x.html

@ -31,6 +31,8 @@
<div class="header-content">
{% if request.current_page.parent %}
{% static_placeholder 'header-content-'|add:request.current_page.parent.reverse_id %}
{% elif request.current_page.reverse_id %}
{% static_placeholder 'header-content-'|add:request.current_page.reverse_id %}
{% endif %}
</div>
<div class="header-contacts">

@ -32,6 +32,12 @@
</div>
</div>
{% if request.current_page.parent %}
{% static_placeholder 'footer-sub-content-'|add:request.current_page.parent.reverse_id %}
{% endif %}
{% static_placeholder 'footer-sub-content' %}
{% endblock content %}

Loading…
Cancel
Save