Merge pull request #5715 from jjaffeux/remove-title-user-notifications

FIX: remove unneeded and uninformative title on user notifications list
This commit is contained in:
Robin Ward
2018-03-29 09:23:09 -04:00
committed by GitHub
40 changed files with 2 additions and 514 deletions

View File

@@ -101,10 +101,8 @@ createWidget('notification-item', {
let { data } = attrs;
let infoKey = notName === 'custom' ? data.message : notName;
let title = I18n.t(`notifications.alt.${infoKey}`);
let icon = iconNode(`notification.${infoKey}`, { title });
let text = emojiUnescape(this.text(notificationType, notName));
let icon = iconNode(`notification.${infoKey}`);
// We can use a `<p>` tag here once other languages have fixed their HTML
// translations.
@@ -113,7 +111,7 @@ createWidget('notification-item', {
let contents = [ icon, html ];
const href = this.url();
return href ? h('a', { attributes: { href, title, 'data-auto-route': true } }, contents) : contents;
return href ? h('a', { attributes: { href, 'data-auto-route': true } }, contents) : contents;
},
click(e) {