From fca3044b10286377cc40d78a9851e0e695df04cb Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 15 Apr 2019 15:11:34 -0400 Subject: [PATCH] UX: When editing a reviewable, show created_by --- .../discourse/templates/components/reviewable-item.hbs | 7 +++++++ app/assets/stylesheets/common/base/reviewables.scss | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/app/assets/javascripts/discourse/templates/components/reviewable-item.hbs b/app/assets/javascripts/discourse/templates/components/reviewable-item.hbs index 062688d1277..0876b8b3f85 100644 --- a/app/assets/javascripts/discourse/templates/components/reviewable-item.hbs +++ b/app/assets/javascripts/discourse/templates/components/reviewable-item.hbs @@ -16,6 +16,13 @@
{{#if editing}}
+ {{#if reviewable.created_by}} +
+ {{avatar reviewable.created_by imageSize="tiny"}} + {{reviewable-created-by-name user=reviewable.created_by tagName=''}} +
+ {{/if}} + {{#each reviewable.editable_fields as |f|}}
{{component diff --git a/app/assets/stylesheets/common/base/reviewables.scss b/app/assets/stylesheets/common/base/reviewables.scss index 80f278ceeb6..e50c8e50fa3 100644 --- a/app/assets/stylesheets/common/base/reviewables.scss +++ b/app/assets/stylesheets/common/base/reviewables.scss @@ -381,6 +381,14 @@ } .editable-fields { + .editable-created-by { + display: flex; + .avatar { + margin-right: 0.25em; + } + margin-bottom: 0.5em; + } + width: 100%; .editable-field { .mini-tag-chooser {