-
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
Showing
14 changed files
with
223 additions
and
4 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{% load wagtailcore_tags i18n %} | ||
<div class="notification-block"> | ||
<p>---------------------</p> | ||
<p> | ||
{% with notice.target as article %} | ||
{% with notice.action_object as comment %} | ||
{% if comment.user_name.lower == 'anonymous' %} | ||
{{comment.user_name}} | ||
{% else %} | ||
{% if not comment.user.profile.alias %} | ||
{% trans "Anonymous" %} | ||
{% else %} | ||
{{comment.user.profile.alias}} | ||
{% endif %} | ||
{% endif %} | ||
|
||
{% trans "replied to your comment on" %} | ||
<a href="{% pageurl article %}">{{ article.title }}</a> | ||
{{ notice.timesince }} {% trans "ago" %} | ||
{% endwith %} | ||
{% endwith %} | ||
</p> | ||
<h2>Your Comment:</h2> | ||
<p>{{ notice.action_object.parent.comment }}</p> | ||
|
||
<h2>Their Reply:</h2> | ||
<p>{{ notice.action_object.comment }}</p> | ||
</div> |
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,25 @@ | ||
{% extends "base.html" %} | ||
{% load i18n %} | ||
|
||
{% block content %} | ||
|
||
<h1>{% trans "You have" %} {{ number_unread_notifications }} {% trans "unread replies" %}</h1> | ||
|
||
{% if unread_notifications %} | ||
<h2><b>Unread</b></h2> | ||
<ul class="notifications unread_notification"> | ||
{% for notice in unread_notifications %} | ||
{% include 'notifications/notice.html' %} | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
|
||
{% if read_notifications %} | ||
<h2><b>Read</b></h2> | ||
<ul class="notifications"> | ||
{% for notice in read_notifications %} | ||
{% include 'notifications/notice.html' %} | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
{% endblock %} |
10 changes: 10 additions & 0 deletions
10
molo/commenting/templates/notifications/tags/notification_banner.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,10 @@ | ||
{% load i18n %} | ||
<div class="notifications-list__item"> | ||
{% if user.is_authenticated and number_unread_notifications > 0 %} | ||
<a href="{% url 'molo.commenting:reply_list' %}"> | ||
<div style="background-color: orange;width:100%"> | ||
{% trans "Unread replies:" %} {{ number_unread_notifications }} | ||
</div> | ||
</a> | ||
{% endif %} | ||
</div> |
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,6 @@ | ||
{% extends "base.html" %} | ||
{% load molo_commenting_tags %} | ||
|
||
{% block content %} | ||
{% display_unread_notifications %} | ||
{% endblock %} |
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
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