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