mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
parent
a2e2b83415
commit
c720bf32c3
@ -90,23 +90,35 @@ export default createWidget('hamburger-menu', {
|
|||||||
const { siteSettings } = this;
|
const { siteSettings } = this;
|
||||||
const links = [];
|
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) {
|
if (this.currentUser) {
|
||||||
links.push({ route: 'discovery.new',
|
links.push({ route: 'discovery.new',
|
||||||
className: 'new-topics-link',
|
className: 'new-topics-link',
|
||||||
labelCount: 'filters.new.title_with_count',
|
labelCount: 'filters.new.title_with_count',
|
||||||
label: 'filters.new.title',
|
label: 'filters.new.title',
|
||||||
|
title: 'filters.new.help',
|
||||||
count: this.lookupCount('new') });
|
count: this.lookupCount('new') });
|
||||||
|
|
||||||
links.push({ route: 'discovery.unread',
|
links.push({ route: 'discovery.unread',
|
||||||
className: 'unread-topics-link',
|
className: 'unread-topics-link',
|
||||||
labelCount: 'filters.unread.title_with_count',
|
labelCount: 'filters.unread.title_with_count',
|
||||||
label: 'filters.unread.title',
|
label: 'filters.unread.title',
|
||||||
|
title: 'filters.unread.help',
|
||||||
count: this.lookupCount('unread') });
|
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) {
|
if (siteSettings.enable_badges) {
|
||||||
links.push({ route: 'badges', className: 'badge-link', label: 'badges.title' });
|
links.push({ route: 'badges', className: 'badge-link', label: 'badges.title' });
|
||||||
|
Loading…
Reference in New Issue
Block a user