mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: simplify composer title
This commit is contained in:
@@ -101,12 +101,13 @@ const Composer = RestModel.extend({
|
|||||||
actionTitle: function() {
|
actionTitle: function() {
|
||||||
const topic = this.get('topic');
|
const topic = this.get('topic');
|
||||||
|
|
||||||
let postLink, topicLink;
|
let postLink, topicLink, usernameLink;
|
||||||
if (topic) {
|
if (topic) {
|
||||||
const postNumber = this.get('post.post_number');
|
const postNumber = this.get('post.post_number');
|
||||||
postLink = "<a href='" + (topic.get('url')) + "/" + postNumber + "'>" +
|
postLink = "<a href='" + (topic.get('url')) + "/" + postNumber + "'>" +
|
||||||
I18n.t("post.post_number", { number: postNumber }) + "</a>";
|
I18n.t("post.post_number", { number: postNumber }) + "</a>";
|
||||||
topicLink = "<a href='" + (topic.get('url')) + "'> " + (Handlebars.Utils.escapeExpression(topic.get('title'))) + "</a>";
|
topicLink = "<a href='" + (topic.get('url')) + "'> " + (Handlebars.Utils.escapeExpression(topic.get('title'))) + "</a>";
|
||||||
|
usernameLink = "<a href='" + (topic.get('url')) + "/" + postNumber + "'>" + this.get('post.username') + "</a>";
|
||||||
}
|
}
|
||||||
|
|
||||||
let postDescription;
|
let postDescription;
|
||||||
@@ -116,7 +117,8 @@ const Composer = RestModel.extend({
|
|||||||
postDescription = I18n.t('post.' + this.get('action'), {
|
postDescription = I18n.t('post.' + this.get('action'), {
|
||||||
link: postLink,
|
link: postLink,
|
||||||
replyAvatar: Discourse.Utilities.tinyAvatar(post.get('avatar_template')),
|
replyAvatar: Discourse.Utilities.tinyAvatar(post.get('avatar_template')),
|
||||||
username: this.get('post.username')
|
username: this.get('post.username'),
|
||||||
|
usernameLink
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!Discourse.Mobile.mobileView) {
|
if (!Discourse.Mobile.mobileView) {
|
||||||
|
|||||||
@@ -1251,8 +1251,8 @@ en:
|
|||||||
other: "You have selected <b>{{count}}</b> posts."
|
other: "You have selected <b>{{count}}</b> posts."
|
||||||
|
|
||||||
post:
|
post:
|
||||||
reply: "Replying to {{link}} {{replyAvatar}} {{username}}"
|
reply: "<i class='fa fa-mail-forward'></i> {{replyAvatar}} {{usernameLink}}"
|
||||||
reply_topic: "Reply to {{link}}"
|
reply_topic: "<i class='fa fa-mail-forward'></i> {{link}}"
|
||||||
quote_reply: "quote reply"
|
quote_reply: "quote reply"
|
||||||
edit: "Editing {{link}} {{replyAvatar}} {{username}}"
|
edit: "Editing {{link}} {{replyAvatar}} {{username}}"
|
||||||
edit_reason: "Reason: "
|
edit_reason: "Reason: "
|
||||||
|
|||||||
Reference in New Issue
Block a user