Skip to content
Snippets Groups Projects
Commit 01434b3e authored by Julian Rother's avatar Julian Rother
Browse files

Removed duplicated flash messages on embed page

parent 629a61e7
No related branches found
No related tags found
No related merge requests found
......@@ -113,9 +113,11 @@
{% else %}
<div class="col-xs-12 col-md-offset-{{ page_border }} col-md-{{ 12-(2*page_border) }}">
{% endif %}
{% block alerts %}
{% for msg in get_flashed_messages(category_filter=["message"]) %}
<div class="hidden-print alert alert-danger" role="alert">{{ msg|safe }}</div>
{% endfor %}
{% endblock %}
{% for msg in get_announcements(min_announcement_level) if (not request.cookies['alert-info-'+msg.id|string]) %}
<div class="hidden-print alert alert-{{levels.get(msg.level, ('info', ''))[0]}}" role="alert">
<a href="#" class="close" data-dismiss="alert" aria-label="close" onclick="Cookies.set('alert-info-{{msg.id}}', '1');">&times;</a>
......
......@@ -5,6 +5,8 @@
{% block title %}- {{ course.title }}: {{ lecture.title}}{% endblock %}
{% block navbar %}
{% endblock %}
{% block alerts %}
{% endblock %}
{% block content %}
<div class="row">
<div class="col-xs-12" style="padding: 0px">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment