updated ungleich

This commit is contained in:
Tomislav R 2016-04-03 11:46:25 +02:00
commit 949ee20a8a
15 changed files with 258 additions and 14 deletions

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from django.utils.translation import ugettext_lazy as _
TEMPLATES = {
'blog.html': _('Blog'),
'page.html': _('Page'),
}
# TEMPLATES = {
# 'blog_u.html': _('Blog'),
# 'page.html': _('Page'),
# }

View file

@ -2,8 +2,8 @@
<!-- Page Header -->
<!-- Set your background image for this header on the line below. -->
<header class="intro-header"
{% if request.current_page.ungleichpage %}
style="background-image: url('{{ request.current_page.ungleichpage.image.url }}');"
{% if request.current_page.pagemeta.image.url %}
style="background-image: url('{{ request.current_page.pagemeta.image.url }}');"
{% else %}
style="background-image: url('{% static 'blog.ungleich.ch/img/home-bg.jpg' %}');"
{% endif %}

View file

@ -1,4 +1,4 @@
{% extends "ungleichch/base.html" %}
{% extends "base_ungleich.html" %}
{% block base_content %}
{% block content %}
{% endblock %}

View file

@ -1,3 +1,3 @@
{% extends "cms/ungleichch/base.html" %}
{% extends "base_ungleich.html" %}
{% block base_content %}
{% endblock %}

View file

@ -1,4 +1,4 @@
{% extends "ungleichch/base.html" %}
{% extends "base_ungleich.html" %}
{% load cms_tags %}
{% block base_content %}
{% placeholder "page_content" %}