UX: simplify composer title

This commit is contained in:
Arpit Jalan 2015-08-07 22:55:49 +05:30
parent 485d9a5a52
commit 0300da59e2
2 changed files with 6 additions and 4 deletions

View File

@ -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) {

View File

@ -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: "