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 %li.list-group-item
.d-flex .d-flex
%div %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)) %p.text-muted.mb-0= t(".blocked", time: time_ago_in_words(block.created_at))
.ml-auto.d-inline-flex .ml-auto.d-inline-flex
%button.btn.btn-default.align-self-center{ data: { action: "anon-unblock", target: block.id } } %button.btn.btn-default.align-self-center{ data: { action: "anon-unblock", target: block.id } }

View File

@ -156,6 +156,7 @@ en:
anon_blocks: anon_blocks:
heading: "Anonymous 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." 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: data:
index: index:
title: "Your Data" title: "Your Data"