Display if a context question has been deleted when viewing anon blocks
This commit is contained in:
parent
8005fc8ae6
commit
c59a70844b
|
@ -25,7 +25,10 @@
|
||||||
%li.list-group-item
|
%li.list-group-item
|
||||||
.d-flex
|
.d-flex
|
||||||
%div
|
%div
|
||||||
|
- if block.question.present?
|
||||||
%p.mb-0= block.question.content
|
%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 } }
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue