mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 09:57:25 +08:00
refactors header notifications (renders them via separate controller / template)
This commit is contained in:
@ -144,7 +144,7 @@ test("notifications: content", function() {
|
||||
equal(notificationsDropdown().find("li").eq(1).attr("class"), "read", "list item for read notification has correct class");
|
||||
equal(notificationsDropdown().find("li").eq(1).html(), 'notifications.replied velesin <a href="/t/topic/1234/2">Some topic title</a>', "notification without a slug and for a non-first post in a topic is rendered correctly");
|
||||
|
||||
equal(notificationsDropdown().find("li").eq(2).html(), 'notifications.liked velesin <a href=""></a>', "notification without topic title is rendered correctly");
|
||||
equal(notificationsDropdown().find("li").eq(2).html(), 'notifications.liked velesin', "notification without topic title is rendered correctly");
|
||||
|
||||
equal(notificationsDropdown().find("li").eq(3).attr("class"), "read last", "list item for 'more' link has correct class");
|
||||
equal(notificationsDropdown().find("li").eq(3).find("a").attr("href"), Discourse.User.current().get("path"), "'more' link points to a correct URL");
|
||||
|
Reference in New Issue
Block a user