From 3f59cf752d8f52425435b609f5eaf49e999a6f85 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Sat, 4 Apr 2015 12:07:22 +0530 Subject: [PATCH] UX: add reply-to glyph in composer --- app/assets/javascripts/discourse/models/composer.js.es6 | 2 +- app/assets/stylesheets/desktop/compose.scss | 4 ++++ config/locales/client.en.yml | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/models/composer.js.es6 b/app/assets/javascripts/discourse/models/composer.js.es6 index 0244d3c26..fa101a177 100644 --- a/app/assets/javascripts/discourse/models/composer.js.es6 +++ b/app/assets/javascripts/discourse/models/composer.js.es6 @@ -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 += " " + Discourse.Utilities.tinyAvatar(replyAvatarTemplate) + " " + replyUsername; } } } diff --git a/app/assets/stylesheets/desktop/compose.scss b/app/assets/stylesheets/desktop/compose.scss index 5ca857acc..d197b4e5a 100644 --- a/app/assets/stylesheets/desktop/compose.scss +++ b/app/assets/stylesheets/desktop/compose.scss @@ -324,6 +324,10 @@ .reply-to { margin-bottom: 10px; + + .reply-to-glyph { + color: scale-color($primary, $lightness: 50%); + } } #reply-control { diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index e2e30d588..664fc84a4 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -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}}:"