Add text if no user is (anonymously) blocked

This commit is contained in:
Andreas Nedbal 2022-06-25 02:02:12 +02:00 committed by Karina Kwiatek
parent d4c782c1ee
commit 3788e492dd
2 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,9 @@
.ml-auto.d-inline-flex
%button.btn.btn-default.align-self-center{ data: { action: :unblock, target: block.target.screen_name } }
%span.pe-none= t("views.actions.unblock")
- if @blocks.empty?
%p.text-muted.text-center= t(".none")
.card
.card-body
%h2= t(".section.anon_blocks.heading")
@ -28,3 +31,5 @@
%button.btn.btn-default.align-self-center{ data: { action: "anon-unblock", target: block.id } }
%span.pe-none= t("views.actions.unblock")
- if @anonymous_blocks.empty?
%p.text-muted.text-center= t(".none")

View File

@ -94,6 +94,7 @@ en:
heading: "Unsatisfied?"
blocks:
blocked: "blocked %{time} ago"
none: "No one has been blocked yet"
section:
blocks:
heading: "Blocks"