Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Video AG Infrastruktur
website
Commits
01434b3e
Commit
01434b3e
authored
May 05, 2017
by
Julian Rother
Browse files
Removed duplicated flash messages on embed page
parent
629a61e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
templates/base.html
View file @
01434b3e
...
...
@@ -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');"
>
×
</a>
...
...
templates/embed.html
View file @
01434b3e
...
...
@@ -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"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment