FIX: Bookmark UI tweaks (#9604)

* When hovering over the bookmark icon for a post, show the name of the bookmark at the end of the tooltip _if_ it has been set.
* Order bookmarks by `updated_at DESC` in the user list and show that instead of created at.
This commit is contained in:
Martin Brennan
2020-05-01 16:14:20 +10:00
committed by GitHub
parent 5ff24b6891
commit bcc9ad6f57
7 changed files with 35 additions and 18 deletions

View File

@ -27,8 +27,7 @@ class BookmarkQuery
end
def list_all
results = user_bookmarks
.order('bookmarks.created_at DESC')
results = user_bookmarks.order('bookmarks.updated_at DESC')
topics = Topic.listable_topics.secured(@guardian)
pms = Topic.private_messages_for_user(@user)