forked from apluslms/a-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6972ff4
commit a65893b
Showing
6 changed files
with
62 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
notification/templates/notification/_notification_menu.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{% load i18n %} | ||
{% load course %} | ||
{% if unread.count > 0 %} | ||
<li role="presentation" class="menu-notification"> | ||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> | ||
<span class="glyphicon glyphicon-envelope pull-left" aria-hidden="true"></span> | ||
|
||
{% blocktrans with count=unread.count count_p=unread.count|pluralize %} | ||
<span class="badge badge-danger">{{ count }}</span> new notification{{ count_p }} | ||
<span class="caret" aria-hidden="true"></span> | ||
{% endblocktrans %} | ||
<ul class="dropdown-menu"> | ||
{% for notification in unread.notifications %} | ||
<li><a href="{{ notification.course_instance|url:'notifications' }}" class="alert-link"> | ||
{{ notification.course_instance.course }}: {{ notification.subject }} | ||
</a></li> | ||
{% endfor %} | ||
</ul> | ||
</a> | ||
</li> | ||
{% endif %} |
2 changes: 1 addition & 1 deletion
2
notification/templates/notification/_notification_messages.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters