Commit 5b9d2060 authored by Julian Rother's avatar Julian Rother
Browse files

Only show importend announcements on embed-pages (closes #325)

parent d9b56d5c
{% set page_border = page_border|default(1) %} {% set page_border = page_border|default(1) %}
{% set global_permissions = [] %} {% set global_permissions = [] %}
{% set min_announcement_level = min_announcement_level|default(1) %} {% set min_announcement_level = min_announcement_level|default(1) %}
{% set levels = {0: ('info', 'Nur auf Hauptseite sichtbar'), 1: ('info', 'Überall sichtbar (Hinweis)'), 2: ('warning', 'Überall sichtbar (Warnung)'), 3: ('danger', 'Überall sichtbar (Wichtig)')} %} {% set levels = {0: ('info', 'Nur auf Hauptseite sichtbar'), 1: ('info', 'Auf allen Unterseiten sichtbar (Hinweis)'), 2: ('warning', 'Auf allen Unterseiten sichtbar (Warnung)'), 3: ('danger', 'Auch auf Embed-Page sichtbar (Wichtig)')} %}
{% from 'macros.html' import moderator_editor, moderator_checkbox, moderator_delete %} {% from 'macros.html' import moderator_editor, moderator_checkbox, moderator_delete %}
<!DOCTYPE html> <!DOCTYPE html>
......
{% from 'macros.html' import player %} {% from 'macros.html' import player %}
{% set page_border = 0 -%} {% set page_border = 0 -%}
{% set min_announcement_level = 3 %}
{% extends "base.html" %} {% extends "base.html" %}
{% block title %}- {{ course.title }}: {{ lecture.title}}{% endblock %} {% block title %}- {{ course.title }}: {{ lecture.title}}{% endblock %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment