From c296d35be43a0a39c2ea2c1669512c41ba1b5279 Mon Sep 17 00:00:00 2001 From: nightpool Date: Sat, 15 Jun 2019 10:50:04 -0400 Subject: [PATCH] show warning message for locked account --- app/javascript/styles/mastodon/containers.scss | 6 ++++++ app/views/accounts/show.html.haml | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/app/javascript/styles/mastodon/containers.scss b/app/javascript/styles/mastodon/containers.scss index 719640ef5..f7b05f89a 100644 --- a/app/javascript/styles/mastodon/containers.scss +++ b/app/javascript/styles/mastodon/containers.scss @@ -229,6 +229,12 @@ min-height: 1px; } + h2 { + font-size: 1rem; + align-items: center; + display: flex; + } + .nav-left { display: flex; align-items: stretch; diff --git a/app/views/accounts/show.html.haml b/app/views/accounts/show.html.haml index e4223119c..b7c7eebd4 100644 --- a/app/views/accounts/show.html.haml +++ b/app/views/accounts/show.html.haml @@ -23,6 +23,11 @@ = render 'header', account: @account, with_bio: true +- if @account.user&.disabled? + .header + .nav-center + %h2 This user's account has been locked by a moderator. + .grid .column-0 .h-feed