UX: Add title attribute and aria-label to PM icon link
This commit is contained in:
parent
bdaf07adcf
commit
aa7181820c
|
@ -9,7 +9,9 @@ export default Ember.Component.extend({
|
||||||
relatedTitle(topic) {
|
relatedTitle(topic) {
|
||||||
const href = this.currentUser && this.currentUser.pmPath(topic);
|
const href = this.currentUser && this.currentUser.pmPath(topic);
|
||||||
return href
|
return href
|
||||||
? `<a href="${href}">${iconHTML("envelope", {
|
? `<a href="${href}" aria-label="${I18n.t(
|
||||||
|
"user.messages.inbox"
|
||||||
|
)}">${iconHTML("envelope", {
|
||||||
class: "private-message-glyph"
|
class: "private-message-glyph"
|
||||||
})}</a><span>${I18n.t("related_messages.title")}</span>`
|
})}</a><span>${I18n.t("related_messages.title")}</span>`
|
||||||
: I18n.t("related_messages.title");
|
: I18n.t("related_messages.title");
|
||||||
|
|
|
@ -10,7 +10,9 @@ export default Ember.Component.extend({
|
||||||
suggestedTitle(topic) {
|
suggestedTitle(topic) {
|
||||||
const href = this.currentUser && this.currentUser.pmPath(topic);
|
const href = this.currentUser && this.currentUser.pmPath(topic);
|
||||||
return topic.get("isPrivateMessage") && href
|
return topic.get("isPrivateMessage") && href
|
||||||
? `<a href="${href}">${iconHTML("envelope", {
|
? `<a href="${href}" aria-label="${I18n.t(
|
||||||
|
"user.messages.inbox"
|
||||||
|
)}>${iconHTML("envelope", {
|
||||||
class: "private-message-glyph"
|
class: "private-message-glyph"
|
||||||
})}</a><span>${I18n.t("suggested_topics.pm_title")}</span>`
|
})}</a><span>${I18n.t("suggested_topics.pm_title")}</span>`
|
||||||
: I18n.t("suggested_topics.title");
|
: I18n.t("suggested_topics.title");
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
{{#unless model.is_warning}}
|
{{#unless model.is_warning}}
|
||||||
{{#if siteSettings.enable_personal_messages}}
|
{{#if siteSettings.enable_personal_messages}}
|
||||||
{{#if model.isPrivateMessage}}
|
{{#if model.isPrivateMessage}}
|
||||||
<a href={{pmPath}}>
|
<a href={{pmPath}} title="{{i18n 'topic_statuses.personal_message.title'}}" aria-label={{i18n 'user.messages.inbox'}}>
|
||||||
<span class="private-message-glyph">{{d-icon "envelope"}}</span>
|
<span class="private-message-glyph">{{d-icon "envelope"}}</span>
|
||||||
</a>
|
</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -661,7 +661,6 @@ en:
|
||||||
only_admins: "Only admins"
|
only_admins: "Only admins"
|
||||||
mods_and_admins: "Only moderators and Admins"
|
mods_and_admins: "Only moderators and Admins"
|
||||||
members_mods_and_admins: "Only group members, moderators and admins"
|
members_mods_and_admins: "Only group members, moderators and admins"
|
||||||
owners_mods_and_admins: "Only group owners, moderators and admins"
|
|
||||||
everyone: "Everyone"
|
everyone: "Everyone"
|
||||||
notifications:
|
notifications:
|
||||||
watching:
|
watching:
|
||||||
|
@ -2562,7 +2561,7 @@ en:
|
||||||
security: "Security"
|
security: "Security"
|
||||||
special_warning: "Warning: This category is a pre-seeded category and the security settings cannot be edited. If you do not wish to use this category, delete it instead of repurposing it."
|
special_warning: "Warning: This category is a pre-seeded category and the security settings cannot be edited. If you do not wish to use this category, delete it instead of repurposing it."
|
||||||
uncategorized_security_warning: "This category is special. It is intended as holding area for topics that have no category; it cannot have security settings."
|
uncategorized_security_warning: "This category is special. It is intended as holding area for topics that have no category; it cannot have security settings."
|
||||||
uncategorized_general_warning: 'This category is special. It is used as the default category for new topics that do not have a category selected. If you want to prevent this behavior and force category selection, <a href="%{settingLink}">please disable the setting here</a>. If you want to change the name or description, go to <a href="%{customizeLink}">Customize / Text</a>.'
|
uncategorized_general_warning: 'This category is special. It is used as the default category for new topics that do not have a category selected. If you want to prevent this behavior and force category selection, <a href="%{settingLink}">please disable the setting here</a>. If you want to change the name or description, go to <a href="%{customizeLink}">Customize / Text Content</a>.'
|
||||||
images: "Images"
|
images: "Images"
|
||||||
email_in: "Custom incoming email address:"
|
email_in: "Custom incoming email address:"
|
||||||
email_in_allow_strangers: "Accept emails from anonymous users with no accounts"
|
email_in_allow_strangers: "Accept emails from anonymous users with no accounts"
|
||||||
|
@ -2716,7 +2715,8 @@ en:
|
||||||
help: "This topic is pinned for you; it will display at the top of its category"
|
help: "This topic is pinned for you; it will display at the top of its category"
|
||||||
unlisted:
|
unlisted:
|
||||||
help: "This topic is unlisted; it will not be displayed in topic lists, and can only be accessed via a direct link"
|
help: "This topic is unlisted; it will not be displayed in topic lists, and can only be accessed via a direct link"
|
||||||
|
personal_message:
|
||||||
|
title: "This topic is a personal message"
|
||||||
posts: "Posts"
|
posts: "Posts"
|
||||||
posts_long: "there are {{number}} posts in this topic"
|
posts_long: "there are {{number}} posts in this topic"
|
||||||
|
|
||||||
|
@ -3186,11 +3186,9 @@ en:
|
||||||
visibility_levels:
|
visibility_levels:
|
||||||
title: "Who can see this group?"
|
title: "Who can see this group?"
|
||||||
public: "Everyone"
|
public: "Everyone"
|
||||||
logged_on_users: "Logged on users"
|
members: "Group owners, members and admins"
|
||||||
members: "Group owners and members"
|
|
||||||
staff: "Group owners and staff"
|
staff: "Group owners and staff"
|
||||||
owners: "Group owners"
|
owners: "Group owners and admins"
|
||||||
description: "Admins can see all groups."
|
|
||||||
membership:
|
membership:
|
||||||
automatic: Automatic
|
automatic: Automatic
|
||||||
trust_level: Trust Level
|
trust_level: Trust Level
|
||||||
|
@ -3436,7 +3434,7 @@ en:
|
||||||
copy_to_clipboard_error: "Error copying data to Clipboard"
|
copy_to_clipboard_error: "Error copying data to Clipboard"
|
||||||
theme_owner: "Not editable, owned by:"
|
theme_owner: "Not editable, owned by:"
|
||||||
email_templates:
|
email_templates:
|
||||||
title: "Email"
|
title: "Email Templates"
|
||||||
subject: "Subject"
|
subject: "Subject"
|
||||||
multiple_subjects: "This email template has multiple subjects."
|
multiple_subjects: "This email template has multiple subjects."
|
||||||
body: "Body"
|
body: "Body"
|
||||||
|
@ -4137,7 +4135,7 @@ en:
|
||||||
site_text:
|
site_text:
|
||||||
description: "You can customize any of the text on your forum. Please start by searching below:"
|
description: "You can customize any of the text on your forum. Please start by searching below:"
|
||||||
search: "Search for the text you'd like to edit"
|
search: "Search for the text you'd like to edit"
|
||||||
title: "Text"
|
title: "Text Content"
|
||||||
edit: "edit"
|
edit: "edit"
|
||||||
revert: "Revert Changes"
|
revert: "Revert Changes"
|
||||||
revert_confirm: "Are you sure you want to revert your changes?"
|
revert_confirm: "Are you sure you want to revert your changes?"
|
||||||
|
|
Loading…
Reference in New Issue