Skip to content

Commit

Permalink
Open notifications to submission dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
teemulehtinen committed Dec 2, 2016
1 parent b06497a commit b9c39e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<ul class="dropdown-menu">
{% for entry in notifications %}
<li>
<a href="{{ entry.link }}" class="alert-link">
<a href="{{ entry.link }}" class="page-modal">
{{ entry.name }}
</a>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{% trans "You have" %} {{ count }} {{ unread_message }}
<ul>
{% for entry in notifications %}
<li><a href="{{ entry.link }}" class="alert-link">
<li><a href="{{ entry.link }}" class="page-modal">
{{ entry.name }}
</a></li>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion notification/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get(self, request, *args, **kwargs):
self.notification.save()
if self.notification.submission:
return self.redirect(
self.notification.submission.exercise.get_display_url()
self.notification.submission.get_url('submission-plain')
)
return HttpResponse(
"[Old Notification] {}: {}".format(
Expand Down

0 comments on commit b9c39e9

Please sign in to comment.