Skip to content

Node.js based forum software built for the modern web

adding link to notifications page in notifications dropdown

Julian Lamb29616fbd82e
diff --git a/public/src/forum/footer.js b/public/src/forum/footer.js
index b577647aa6..4c05432027 100644
--- a/public/src/forum/footer.js
+++ b/public/src/forum/footer.js
@@ -126,6 +126,13 @@
notifEl.innerHTML = '<a>You have no notifications</a>';
notifFrag.appendChild(notifEl);
}
+
+ // Add dedicated link to /notifications
+ notifEl.removeAttribute('data-nid');
+ notifEl.className = 'pagelink';
+ notifEl.innerHTML = '<a href="' + RELATIVE_PATH + '/notifications">See all Notifications</a>';
+ notifFrag.appendChild(notifEl);
+
notifList.appendChild(notifFrag);
if (data.unread.length > 0) notifIcon.className = 'icon-circle active';