diff --git a/app/views/modal/_ask.html.haml b/app/views/modal/_ask.html.haml index 647b52c5..f95582ad 100644 --- a/app/views/modal/_ask.html.haml +++ b/app/views/modal/_ask.html.haml @@ -8,6 +8,8 @@ .modal-body - if @user .alert.alert-info.d-sm-none= t(".user_note_html", user: @user.profile.safe_name) + - if current_user.followers.count.zero? + .alert.alert-warning= t(".follower_note_html") .form-group.has-feedback %textarea.form-control{ name: "qb-all-question", placeholder: t(".placeholder"), data: { "character-count-warning-target": "input" } } .alert.alert-warning.mt-3.d-none{ data: { "character-count-warning-target": "warning" } }= t('.long_question_warning') diff --git a/config/locales/views.en.yml b/config/locales/views.en.yml index d7961168..78c24665 100644 --- a/config/locales/views.en.yml +++ b/config/locales/views.en.yml @@ -267,6 +267,9 @@ en: This dialog asks a question to all your followers. Click here to ask them a question directly! + follower_note_html: | + You don't have any followers! + Questions asked through this dialog now will not be answered by anyone. title: "Ask your followers" placeholder: "Type your question hereā€¦" action: "Ask"