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

11
src/portal/cms_apps.py Normal file
View File

@@ -0,0 +1,11 @@
from cms.app_base import CMSApp
from cms.apphook_pool import apphook_pool
@apphook_pool.register
class PortalApphook(CMSApp):
name = 'Portal'
app_name = 'portal'
def get_urls(self, page=None, language=None, **kwargs):
return ['portal.urls']

View File

@@ -1,5 +1,5 @@
{% extends 'main.html' %}
{% load i18n static %}
{% load i18n static cms_tags %}
{% block title %}{% trans 'Mitgliederbereich' %}{% endblock %}
@@ -14,8 +14,7 @@
<span class="button__text">{% trans 'Logout' %}</span>
</a>
</div>
<div class="content__intro__image scroll reveal reveal_animation" data-ease-multiplier="-2"
style="background-image: url({% static 'img/portal_background.jpg' %})"></div>
{% static_placeholder 'portal_intro' %}
</div>
<div class="content__container">
<div class="content__main">
@@ -88,10 +87,12 @@
{% endfor %}
</ul>
</div>
{% trans 'Einstellungen' as settings_section_title %}
{% include 'project/plugins/content/section_title.html' with section_title=settings_section_title %}
</div>
</div>
<div id="downloads" class="downloads__frame reveal_self reveal reveal_animation">
<div id="downloads" class="downloads__frame">
<h2 class="reveal_self reveal reveal_animation">{% trans 'Downloads' %}</h2>
<form class="downloads__filter reveal_self reveal reveal_animation"
action="{{ request.path }}#downloads" method="get">
@@ -110,6 +111,8 @@
{% include 'project/plugins/content/download_section.html' with instance=section %}
</div>
{% endfor %}
{% trans 'Downloads' as downloads_section_title %}
{% include 'project/plugins/content/section_title.html' with section_title=downloads_section_title %}
</div>
</div>
</div>