forked from TagesschuleElementa/www.tagesschule-elementa.ch
portal cms apphook and various fixes
This commit is contained in:
11
src/portal/cms_apps.py
Normal file
11
src/portal/cms_apps.py
Normal 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']
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user