Remove "expired unread" short block status

It was supposed to mean that the block is past its end date but still wasn't read by the user. That turned out to be confusing because although it said "expired", such blocks were active.
This commit is contained in:
Anton Khorev 2025-01-02 08:44:34 +03:00
parent d38f6484e1
commit f7b0e87973
3 changed files with 20 additions and 9 deletions

View file

@ -27,14 +27,10 @@ module UserBlocksHelper
def block_short_status(block)
if block.active?
if block.needs_view?
if block.ends_at > Time.now.utc
t("user_blocks.helper.short.active_unread")
else
t("user_blocks.helper.short.expired_unread")
end
else
if block.ends_at > Time.now.utc
t("user_blocks.helper.short.active")
else
t("user_blocks.helper.short.active_until_read")
end
else
if block.revoker_id.nil?