diff options
-rw-r--r-- | taskapp/views/user.py | 5 | ||||
-rw-r--r-- | templates/user/browse_notifications.html | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/taskapp/views/user.py b/taskapp/views/user.py index 35628d7..e12d9ec 100644 --- a/taskapp/views/user.py +++ b/taskapp/views/user.py @@ -17,8 +17,9 @@ from pytask.taskapp.utilities.notification import get_notification, create_notif from pytask.taskapp.utilities.user import get_user about = { - "addmentors":"about/addmentors.html", - "mentor":"about/mentor.html", ## - include role in different stages and merge with mentorrights + "addmentors": "about/addmentors.html", + "mentor": "about/mentor.html", ## - include role in different stages and merge with mentorrights + "starthere": "about/starthere.html", ## "claimtask": ## "edittask": - contains both about up and pub states ## "mentorrights": diff --git a/templates/user/browse_notifications.html b/templates/user/browse_notifications.html index 21b4ce0..210fad2 100644 --- a/templates/user/browse_notifications.html +++ b/templates/user/browse_notifications.html @@ -1,8 +1,9 @@ {% extends 'base.html' %} {% block content %} {% if not notifications %} - You have no notifications. + You have no notifications.<sup><a href="/about/notification/" target="_blank">learn more</a></sup><br /> {% else %} + Notifications for you: <sup><a href="/about/notification/" target="_blank">learn more</a></sup><br /> {% for notification in notifications %} <a href="/user/notifications/nid={{notification.id}}"> {% if not notification.is_read %} <b> {% endif %} |