From 3eb0288adb16eae63514657b71ae9c38433a1f5c Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Wed, 25 Nov 2015 16:31:17 +0530 Subject: [PATCH] UX: reviving old topic popup should not have red warning background --- app/assets/stylesheets/desktop/compose.scss | 4 ++++ lib/composer_messages_finder.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/desktop/compose.scss b/app/assets/stylesheets/desktop/compose.scss index 9a7d4a8f747..08bc47ebce3 100644 --- a/app/assets/stylesheets/desktop/compose.scss +++ b/app/assets/stylesheets/desktop/compose.scss @@ -29,6 +29,10 @@ background: dark-light-diff($danger, $secondary, 50%, -40%); } + &.old-topic { + background-color: dark-light-diff($tertiary, $secondary, 85%, -65%); + } + h3 { margin-bottom: 10px; } diff --git a/lib/composer_messages_finder.rb b/lib/composer_messages_finder.rb index e61d0729d84..27e7db68999 100644 --- a/lib/composer_messages_finder.rb +++ b/lib/composer_messages_finder.rb @@ -149,7 +149,7 @@ class ComposerMessagesFinder { templateName: 'composer/education', wait_for_typing: false, - extraClass: 'urgent', + extraClass: 'old-topic', body: PrettyText.cook(I18n.t('education.reviving_old_topic', days: (Time.zone.now - topic.last_posted_at).round / 1.day)) } end