2022-06-23 11:03:11 -07:00
|
|
|
.card
|
|
|
|
.card-body
|
2022-06-23 16:13:27 -07:00
|
|
|
%h2= t(".section.blocks.heading")
|
|
|
|
%p= t(".section.blocks.body")
|
2022-06-23 11:03:11 -07:00
|
|
|
%ul.list-group
|
|
|
|
- @blocks.each do |block|
|
|
|
|
%li.list-group-item
|
|
|
|
.d-flex
|
|
|
|
%img.avatar-md.d-none.d-sm-inline.mr-2{ src: block.target.profile_picture.url(:small) }
|
|
|
|
%div
|
|
|
|
%p.mb-0= user_screen_name(block.target)
|
2022-06-23 16:13:27 -07:00
|
|
|
%p.text-muted.mb-0= t(".blocked", time: time_ago_in_words(block.created_at))
|
2022-06-23 11:03:11 -07:00
|
|
|
.ml-auto.d-inline-flex
|
|
|
|
%button.btn.btn-default.align-self-center{ data: { action: :unblock, target: block.target.screen_name } }
|
2022-07-30 09:50:46 -07:00
|
|
|
%span.pe-none= t("voc.unblock")
|
2022-06-24 17:02:12 -07:00
|
|
|
|
|
|
|
- if @blocks.empty?
|
|
|
|
%p.text-muted.text-center= t(".none")
|
2022-06-23 11:03:11 -07:00
|
|
|
.card
|
|
|
|
.card-body
|
2022-06-23 16:13:27 -07:00
|
|
|
%h2= t(".section.anon_blocks.heading")
|
|
|
|
%p= t(".section.anon_blocks.body")
|
2022-06-23 11:03:11 -07:00
|
|
|
%ul.list-group
|
|
|
|
- @anonymous_blocks.each do |block|
|
|
|
|
%li.list-group-item
|
|
|
|
.d-flex
|
|
|
|
%div
|
2022-07-15 07:19:40 -07:00
|
|
|
- if block.question.present?
|
|
|
|
%p.mb-0= block.question.content
|
|
|
|
- else
|
2022-07-16 06:55:26 -07:00
|
|
|
%p.mb-0.text-muted.font-italic= t(".deleted_question")
|
2022-06-23 16:13:27 -07:00
|
|
|
%p.text-muted.mb-0= t(".blocked", time: time_ago_in_words(block.created_at))
|
2022-06-23 11:03:11 -07:00
|
|
|
.ml-auto.d-inline-flex
|
|
|
|
%button.btn.btn-default.align-self-center{ data: { action: "anon-unblock", target: block.id } }
|
2022-07-30 09:50:46 -07:00
|
|
|
%span.pe-none= t("voc.unblock")
|
2022-06-23 11:03:11 -07:00
|
|
|
|
2022-06-24 17:02:12 -07:00
|
|
|
- if @anonymous_blocks.empty?
|
|
|
|
%p.text-muted.text-center= t(".none")
|
2022-07-03 12:32:05 -07:00
|
|
|
|
|
|
|
- provide(:title, generate_title(t(".title")))
|
|
|
|
- parent_layout "user/settings"
|