UX: Add proper titles to topic navigation links in hamburger menu.

https://meta.discourse.org/t/what-is-the-difference-between-latest-and-new/47809/9?u=tgxworld
This commit is contained in:
Guo Xiang Tan 2018-05-10 09:29:02 +08:00
parent a2e2b83415
commit c720bf32c3
1 changed files with 14 additions and 2 deletions

View File

@ -90,23 +90,35 @@ export default createWidget('hamburger-menu', {
const { siteSettings } = this;
const links = [];
links.push({ route: 'discovery.latest', className: 'latest-topics-link', label: 'filters.latest.title' });
links.push({
route: 'discovery.latest',
className: 'latest-topics-link',
label: 'filters.latest.title',
title: 'filters.latest.help'
});
if (this.currentUser) {
links.push({ route: 'discovery.new',
className: 'new-topics-link',
labelCount: 'filters.new.title_with_count',
label: 'filters.new.title',
title: 'filters.new.help',
count: this.lookupCount('new') });
links.push({ route: 'discovery.unread',
className: 'unread-topics-link',
labelCount: 'filters.unread.title_with_count',
label: 'filters.unread.title',
title: 'filters.unread.help',
count: this.lookupCount('unread') });
}
links.push({ route: 'discovery.top', className: 'top-topics-link', label: 'filters.top.title' });
links.push({
route: 'discovery.top',
className: 'top-topics-link',
label: 'filters.top.title',
title: 'filters.top.help'
});
if (siteSettings.enable_badges) {
links.push({ route: 'badges', className: 'badge-link', label: 'badges.title' });