Display 'no active blocks' on accounts block page

This commit is contained in:
Anton Khorev 2025-01-20 07:15:02 +03:00
parent 60c9ff9b64
commit 1ae9289710
3 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,5 @@
<% content_for :heading do %>
<h1><%= t ".title" %></h1>
<% end %>
<p><%= t ".no_active_blocks" %></p>

View file

@ -282,6 +282,7 @@ en:
blocks:
index:
title: Blocks on Me
no_active_blocks: There are no active blocks on your account.
deletions:
show:
title: Delete My Account

View file

@ -22,6 +22,9 @@ module Accounts
get account_blocks_path
assert_response :success
assert_dom "#content > .content-body" do
assert_dom "p", :text => /no active blocks/
end
end
def test_index_with_inactive_block
@ -31,6 +34,9 @@ module Accounts
get account_blocks_path
assert_response :success
assert_dom "#content > .content-body" do
assert_dom "p", :text => /no active blocks/
end
end
def test_index_with_unseen_block