Commit a3ff98eff2412340caa07b8a0f2b327d5a40d755
1 parent
d407860a
Exists in
master
and in
5 other branches
Adding message to home student template #&
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
app/templates/home_student.html
@@ -27,6 +27,16 @@ | @@ -27,6 +27,16 @@ | ||
27 | 27 | ||
28 | {% block content %} | 28 | {% block content %} |
29 | <h3>{% trans 'Notifications' %}</h3> | 29 | <h3>{% trans 'Notifications' %}</h3> |
30 | + {% if messages %} | ||
31 | + {% for message in messages %} | ||
32 | + <div class="alert alert-success alert-dismissible" role="alert"> | ||
33 | + <button type="button" class="close" data-dismiss="alert" aria-label="Close"> | ||
34 | + <span aria-hidden="true">×</span> | ||
35 | + </button> | ||
36 | + <p>{{ message }}</p> | ||
37 | + </div> | ||
38 | + {% endfor %} | ||
39 | + {% endif %} | ||
30 | <div class="panel panel-default"> | 40 | <div class="panel panel-default"> |
31 | <div class="panel-body"> | 41 | <div class="panel-body"> |
32 | His course has notified a new activity! | 42 | His course has notified a new activity! |