From c720bf32c3d691c8c812ca9c56a13ae21d8f1e9d Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Thu, 10 May 2018 09:29:02 +0800 Subject: [PATCH] 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 --- .../discourse/widgets/hamburger-menu.js.es6 | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6 b/app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6 index b54c7caf4b0..957fd246a86 100644 --- a/app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6 +++ b/app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6 @@ -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' });