portal cms apphook and various fixes

This commit is contained in:
2018-03-23 16:53:10 +01:00
parent 5ceb2af5a1
commit 1a3a3f06b5
18 changed files with 161 additions and 28 deletions

View File

@@ -121,12 +121,16 @@
</div>
<div class="footer">
<a href="#" class="footer__login header__button header__button--light data_id_1">
<span class="header__button__icon">
{% include 'project/assets/arrow-right-long.svg' %}
</span>
{% trans 'Login' %}
</a>
{% page_url 'cta' as cta_url %}
{% if cta_url %}
<a href="{{ cta_url }}"
class="footer__login header__button header__button--light header__button--reverse data_id_1">
{% trans 'Kontakt aufnehmen' %}
<span class="header__button__icon">
{% include 'project/assets/arrow-right-long.svg' %}
</span>
</a>
{% endif %}
<div class="footer__content">
{% show_menu_below_id 'footer' 0 0 0 0 'project/includes/header_button_menu.html' %}
{% static_placeholder 'social_media' %}

View File

@@ -11,7 +11,9 @@
<div class="content__navigation__frame">
<div class="content__navigation__main">
<span class="content__navigation__title">
{% block navigation_title %}{{ request.current_page }}{% endblock %}
{% block navigation_title %}
{% if request.current_page %}{{ request.current_page }}{% endif %}
{% endblock %}
</span>
<div class="content__navigation__content">
<div class="content__navigation__progress">

View File

@@ -1,8 +1,15 @@
{% load menu_tags %}
{% load i18n cms_tags menu_tags %}
{% for child in children %}
<a href="{{ child.attr.redirect_url|default:child.get_absolute_url }}"
class="header__button header__button--light data_id_{{ forloop.counter0 }}">
{{ child.get_menu_title }}
</a>
{% endfor %}
{% endfor %}
{% page_url 'portal' as portal_url %}
{% if portal_url %}
<a href="{{ portal_url }}"
class="header__button header__button--light data_id_{{ children|length|add:1 }}">
{% trans 'Login' %}
</a>
{% endif %}

View File

@@ -5,6 +5,18 @@
<div class="navigation__footer">
{% include 'project/includes/meta_navigation.html' %}
{% page_url 'cta' as cta_url %}
{% if cta_url %}
<a href="{{ cta_url }}"
class="footer__login header__button header__button--light header__button--reverse data_id_1">
{% trans 'Kontakt aufnehmen' %}
<span class="header__button__icon">
{% include 'project/assets/arrow-right-long.svg' %}
</span>
</a>
{% endif %}
<div class="navigation__meta">
{% show_menu_below_id 'footer' 0 0 0 0 'project/includes/header_button_menu.html' %}
</div>
@@ -18,11 +30,5 @@
{% endfor %}
</ul>
</div>
<a href="{% url 'portal:overview' %}" class="footer__login header__button header__button--light header__button--reverse data_id_1">
<span class="header__button__icon">
{% include 'project/assets/arrow-right-long.svg' %}
</span>
{% trans 'Login' %}
</a>
</div>
</div>

View File

@@ -1,5 +1,9 @@
{% extends 'project/content.html' %}
{% block extra_meta %}
<meta name="robots" content="noindex, nofollow"/>
{% endblock %}
{% block content_main %}
{% include 'project/newsletter/subscription_form.html' %}
{% endblock %}

View File

@@ -0,0 +1,5 @@
{% load thumbnail %}
{% thumbnail instance.image 1600x800 box=instance.cropping crop detail as thumb %}
<div class="content__intro__image scroll reveal reveal_animation" data-ease-multiplier="-2"
style="background-image: url({{ thumb.url }})"></div>

View File

@@ -1,6 +1,6 @@
<div class="section__title reveal_self reveal reveal_animation">
<div class="section__title__main">
<div class="section__title__content scroll" data-scroll-mod="horizontal"
data-ease-multiplier="5"></div>
data-ease-multiplier="5">{{ section_title }}</div>
</div>
</div>