Display if a context question has been deleted when viewing anon blocks

This commit is contained in:
Karina Kwiatek 2022-07-15 16:19:40 +02:00 committed by Karina Kwiatek
parent 8005fc8ae6
commit c59a70844b
2 changed files with 5 additions and 1 deletions

View file

@ -25,7 +25,10 @@
%li.list-group-item
.d-flex
%div
%p.mb-0= block.question.content
- if block.question.present?
%p.mb-0= block.question.content
- else
%p.mb-0.text-muted.font-italic= t('.deleted_question')
%p.text-muted.mb-0= t(".blocked", time: time_ago_in_words(block.created_at))
.ml-auto.d-inline-flex
%button.btn.btn-default.align-self-center{ data: { action: "anon-unblock", target: block.id } }

View file

@ -156,6 +156,7 @@ en:
anon_blocks:
heading: "Anonymous Blocks"
body: "Each anonymous user you've blocked is listed here, along with a way to unblock them. We also display the question they asked you to add some more context. You can block anonymous users directly from the question in your inbox."
deleted_question: "Deleted question"
data:
index:
title: "Your Data"