Add translations for block settings page
This commit is contained in:
parent
936b49eef0
commit
bc986c6624
|
@ -1,9 +1,7 @@
|
||||||
.card
|
.card
|
||||||
.card-body
|
.card-body
|
||||||
%h2 Blocks
|
%h2= t(".section.blocks.heading")
|
||||||
%p
|
%p= t(".section.blocks.body")
|
||||||
Here every user you are currently blocking is listed with a quick option to unblock them. You can block users on their profile using the "Actions" dropdown.
|
|
||||||
|
|
||||||
%ul.list-group
|
%ul.list-group
|
||||||
- @blocks.each do |block|
|
- @blocks.each do |block|
|
||||||
%li.list-group-item
|
%li.list-group-item
|
||||||
|
@ -11,30 +9,22 @@
|
||||||
%img.avatar-md.d-none.d-sm-inline.mr-2{ src: block.target.profile_picture.url(:small) }
|
%img.avatar-md.d-none.d-sm-inline.mr-2{ src: block.target.profile_picture.url(:small) }
|
||||||
%div
|
%div
|
||||||
%p.mb-0= user_screen_name(block.target)
|
%p.mb-0= user_screen_name(block.target)
|
||||||
%p.text-muted.mb-0
|
%p.text-muted.mb-0= t(".blocked", time: time_ago_in_words(block.created_at))
|
||||||
blocked
|
|
||||||
= time_ago_in_words(block.created_at)
|
|
||||||
ago
|
|
||||||
.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 Unblock
|
%span.pe-none= t("views.actions.unblock")
|
||||||
.card
|
.card
|
||||||
.card-body
|
.card-body
|
||||||
%h2 Anonymous Blocks
|
%h2= t(".section.anon_blocks.heading")
|
||||||
%p
|
%p= t(".section.anon_blocks.body")
|
||||||
Here every anonymous user you are blocking is listed with a quick option to unblock them. Anonymous users can be blocked from questions in your inbox. To provide
|
|
||||||
more context on who you blocked, the question they asked you is provided as context.
|
|
||||||
%ul.list-group
|
%ul.list-group
|
||||||
- @anonymous_blocks.each do |block|
|
- @anonymous_blocks.each do |block|
|
||||||
%li.list-group-item
|
%li.list-group-item
|
||||||
.d-flex
|
.d-flex
|
||||||
%div
|
%div
|
||||||
%p.mb-0= block.question.content
|
%p.mb-0= block.question.content
|
||||||
%p.text-muted.mb-0
|
%p.text-muted.mb-0= t(".blocked", time: time_ago_in_words(block.created_at))
|
||||||
blocked
|
|
||||||
= time_ago_in_words(block.created_at)
|
|
||||||
ago
|
|
||||||
.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 } }
|
||||||
%span.pe-none Unblock
|
%span.pe-none= t("views.actions.unblock")
|
||||||
|
|
||||||
|
|
|
@ -92,6 +92,15 @@ en:
|
||||||
delete:
|
delete:
|
||||||
action: "Delete my account"
|
action: "Delete my account"
|
||||||
heading: "Unsatisfied?"
|
heading: "Unsatisfied?"
|
||||||
|
blocks:
|
||||||
|
blocked: "blocked %{time} ago"
|
||||||
|
section:
|
||||||
|
blocks:
|
||||||
|
heading: "Blocks"
|
||||||
|
body: "Here every user you are currently blocking is listed with a quick option to unblock them. You can block users on their profile using the 'Actions' dropdown."
|
||||||
|
anon_blocks:
|
||||||
|
heading: "Anonymous Blocks"
|
||||||
|
body: "Here every anonymous user you are blocking is listed with a quick option to unblock them. Anonymous users can be blocked from questions in your inbox. To provide more context on who you blocked, the question they asked you is provided as context."
|
||||||
data:
|
data:
|
||||||
heading: "Your Profile Data"
|
heading: "Your Profile Data"
|
||||||
body: "Everything we have about you! Really, not that much as you might expect."
|
body: "Everything we have about you! Really, not that much as you might expect."
|
||||||
|
@ -316,6 +325,8 @@ en:
|
||||||
title: "Your Data"
|
title: "Your Data"
|
||||||
edit:
|
edit:
|
||||||
title: "Profile Settings"
|
title: "Profile Settings"
|
||||||
|
edit_blocks:
|
||||||
|
title: "Blocks"
|
||||||
edit_mute:
|
edit_mute:
|
||||||
title: "Muted Words"
|
title: "Muted Words"
|
||||||
edit_privacy:
|
edit_privacy:
|
||||||
|
|
Loading…
Reference in New Issue