From bb4778455457cf6ff877e93e4f4711f6cecd8e4a Mon Sep 17 00:00:00 2001 From: OneNormalUsername <42769194+OneNormalUsername@users.noreply.github.com> Date: Thu, 23 Dec 2021 14:48:33 +0000 Subject: [PATCH] Display in bold whether a warning is active or decayed (#10) Co-Authored-By: Sheldan <5037282+Sheldan@users.noreply.github.com> --- .../en_US/command/warnings/warnings_warn_entry_en_US.ftl | 1 + .../en_US/commands/warnings/warnings_warn_entry_text_en_US.ftl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/abstracto-modules/moderation/src/main/resources/en_US/command/warnings/warnings_warn_entry_en_US.ftl b/abstracto-modules/moderation/src/main/resources/en_US/command/warnings/warnings_warn_entry_en_US.ftl index 78e40fce..5cc4a576 100644 --- a/abstracto-modules/moderation/src/main/resources/en_US/command/warnings/warnings_warn_entry_en_US.ftl +++ b/abstracto-modules/moderation/src/main/resources/en_US/command/warnings/warnings_warn_entry_en_US.ftl @@ -1,4 +1,5 @@ <#include "format_instant"> +<#assign decayed=warning.warning.decayed/> <#assign warnId>${warning.warning.warnId.id} <#assign reason>${warning.warning.reason} <#assign warnedUserText><#if warning.warnedUser.member??>${warning.warnedUser.member.asMention}(${warning.warnedUser.member.user.id})<#else>${warning.warnedUser.userId?c} diff --git a/translations/moderation/src/main/resources/en_US/commands/warnings/warnings_warn_entry_text_en_US.ftl b/translations/moderation/src/main/resources/en_US/commands/warnings/warnings_warn_entry_text_en_US.ftl index 8db02a1d..291c46b6 100644 --- a/translations/moderation/src/main/resources/en_US/commands/warnings/warnings_warn_entry_text_en_US.ftl +++ b/translations/moderation/src/main/resources/en_US/commands/warnings/warnings_warn_entry_text_en_US.ftl @@ -1 +1 @@ -Warning #${warnId} with reason: `${reason}` towards user ${warnedUserText} by user ${warningUserText} on ${warnDate}. \ No newline at end of file +Warning #${warnId} with reason: `${reason}` towards user ${warnedUserText} by user ${warningUserText} on ${warnDate}. The warning is **${decayed?then('decayed', 'active')}** \ No newline at end of file