mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
UX: add reply-to glyph in composer
This commit is contained in:
parent
19be0ff744
commit
3f59cf752d
3 changed files with 5 additions and 2 deletions
|
@ -86,7 +86,7 @@ const Composer = Discourse.Model.extend({
|
|||
const replyUsername = post.get('reply_to_user.username');
|
||||
const replyAvatarTemplate = post.get('reply_to_user.avatar_template');
|
||||
if (replyUsername && replyAvatarTemplate && this.get('action') === EDIT) {
|
||||
postDescription += " " + I18n.t("post.in_reply_to") + " " + Discourse.Utilities.tinyAvatar(replyAvatarTemplate) + " " + replyUsername;
|
||||
postDescription += " <i class='fa fa-mail-forward reply-to-glyph'></i> " + Discourse.Utilities.tinyAvatar(replyAvatarTemplate) + " " + replyUsername;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -324,6 +324,10 @@
|
|||
|
||||
.reply-to {
|
||||
margin-bottom: 10px;
|
||||
|
||||
.reply-to-glyph {
|
||||
color: scale-color($primary, $lightness: 50%);
|
||||
}
|
||||
}
|
||||
|
||||
#reply-control {
|
||||
|
|
|
@ -1139,7 +1139,6 @@ en:
|
|||
edit: "Editing {{link}} {{replyAvatar}} {{username}}"
|
||||
edit_reason: "Reason: "
|
||||
post_number: "post {{number}}"
|
||||
in_reply_to: "reply to"
|
||||
last_edited_on: "post last edited on"
|
||||
reply_as_new_topic: "Reply as linked Topic"
|
||||
continue_discussion: "Continuing the discussion from {{postLink}}:"
|
||||
|
|
Loading…
Reference in a new issue