[AB-298] adapting various templates to comply with the new information in modmail

adding new templates for contact contact notification and modmail logging progress indicator
This commit is contained in:
Sheldan
2021-07-04 12:12:09 +02:00
parent ee2d1658be
commit dde3ec778d
44 changed files with 37 additions and 7 deletions

View File

@@ -0,0 +1,5 @@
{
<#assign messagesLogged=loggedMessages>
<#assign messagesToLog=totalMessages>
"additionalMessage": "<@safe_include "modmail_closing_progress_description"/>"
}

View File

@@ -0,0 +1,12 @@
{
<#include "member_author">
<@member_author member=targetMember/>,
"description": "<@safe_include "modmail_thread_created_description"/>",
<#include "modmail_color">,
"fields": [
{
"name": "<@safe_include "modmail_thread_created_link_field_title"/>",
"value": "${createdChannel.asMention}"
}
]
}

View File

@@ -4,6 +4,9 @@
"title": {
"title": "<@safe_include "modmail_notification_message_title"/>"
},
"metaConfig": {
"allowsRoleMention": true
},
<#include "modmail_color">,
<#assign user><@member_user_name member=member/>(${member.user.id})</#assign>
"description": "<@safe_include "modmail_notification_message_description"/>",

View File

@@ -14,6 +14,6 @@
</#if>
<#if subscribers?size gt 0>
<#if postedMessage.contentRaw?has_content || postedMessage.attachments?size gt 0>,</#if>
"additionalMessage": "<#list subscribers as subscriber>${subscriber.member.asMention?json_string}<#sep>,</#list>"
"additionalMessage": "<#list subscribers as subscriber>${subscriber.asMention?json_string}<#sep>, </#list>"
</#if>
}

View File

@@ -1,11 +1,14 @@
{
<#include "user_detail">
"title": {
"title": "<@safe_include "modmail_closing_notification_title"/>"
},
<#include "modmail_color">,
<#assign messageCount>${closedThread.messages?size}</#assign>
<#assign user>user</#assign>
<#assign startDate>${formatDate(closedThread.created,"yyyy-MM-dd HH:mm:ss zz")}</#assign>
<#assign messageCount>${messageCount}</#assign>
<#assign user><#if user??><@user_detail user=user/><#else>${userId}</#if></#assign>
<#assign closingUserDescription><@member_user_name member=closingMember/> (${closingMember.idLong?c})</#assign>
<#assign startDate>${formatDate(startDate,"yyyy-MM-dd HH:mm:ss zz")}</#assign>
<#assign duration>${fmtDuration(duration)}</#assign>
<#assign closedSilently=silently>
"description": "<@safe_include "close_closing_description"/>"
}

View File

@@ -1,6 +1,6 @@
{
<#include "member_author">
<@member_author member=author/>,
<#include "user_author">
<@user_author user=author/>,
<#include "modmail_color">
<#if message.embeds[0].description?has_content>
,"description": "${message.embeds[0].description?json_string}"