Add text if no user is (anonymously) blocked
This commit is contained in:
parent
d4c782c1ee
commit
3788e492dd
|
@ -13,6 +13,9 @@
|
||||||
.ml-auto.d-inline-flex
|
.ml-auto.d-inline-flex
|
||||||
%button.btn.btn-default.align-self-center{ data: { action: :unblock, target: block.target.screen_name } }
|
%button.btn.btn-default.align-self-center{ data: { action: :unblock, target: block.target.screen_name } }
|
||||||
%span.pe-none= t("views.actions.unblock")
|
%span.pe-none= t("views.actions.unblock")
|
||||||
|
|
||||||
|
- if @blocks.empty?
|
||||||
|
%p.text-muted.text-center= t(".none")
|
||||||
.card
|
.card
|
||||||
.card-body
|
.card-body
|
||||||
%h2= t(".section.anon_blocks.heading")
|
%h2= t(".section.anon_blocks.heading")
|
||||||
|
@ -28,3 +31,5 @@
|
||||||
%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 } }
|
||||||
%span.pe-none= t("views.actions.unblock")
|
%span.pe-none= t("views.actions.unblock")
|
||||||
|
|
||||||
|
- if @anonymous_blocks.empty?
|
||||||
|
%p.text-muted.text-center= t(".none")
|
||||||
|
|
|
@ -94,6 +94,7 @@ en:
|
||||||
heading: "Unsatisfied?"
|
heading: "Unsatisfied?"
|
||||||
blocks:
|
blocks:
|
||||||
blocked: "blocked %{time} ago"
|
blocked: "blocked %{time} ago"
|
||||||
|
none: "No one has been blocked yet"
|
||||||
section:
|
section:
|
||||||
blocks:
|
blocks:
|
||||||
heading: "Blocks"
|
heading: "Blocks"
|
||||||
|
|
Loading…
Reference in New Issue