mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-03-03 07:24:47 +00:00
[AB-291] adding templates for new pagination system
adding templates for mutes command
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
{
|
||||
<#assign exitOnly=innerModel.mutes?size lt 6/>
|
||||
"embedConfigs": [
|
||||
<#assign chunks=innerModel.mutes?chunk(5)>
|
||||
<#-- we have to separate the chunk, so we can re-use it to disable the last buttons, and also we have to assign the for loop value, -->
|
||||
<#-- so it available in sub templates, also the counter needs to be defined, else it doesnt the detect its a loop variable it seems -->
|
||||
<#list chunks as row><#assign row=row><#include "mutes_response_entry"><#sep>,</#list>
|
||||
],
|
||||
"timeoutSeconds": 120,
|
||||
"restrictUser": true
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<#include "format_instant">
|
||||
<#assign muteId>${mute.mute.muteId.id}</#assign>
|
||||
<#assign reason>${mute.mute.reason}</#assign>
|
||||
<#assign mutedUserText><#if mute.mutedUser.member??>${mute.mutedUser.member.asMention}(${mute.mutedUser.member.user.id})<#else>${mute.mutedUser.userId?c}</#if></#assign>
|
||||
<#assign mutingUserText><#if mute.mutingUser.member??>${mute.mutingUser.member.asMention}(${mute.mutingUser.member.user.id})<#else>${mute.mutingUser.userId?c}</#if></#assign>
|
||||
<#assign muteDate><@format_instant_date_time instant=mute.mute.muteDate/></#assign>
|
||||
<#assign muteEnded>${mute.mute.muteEnded?string('✅', '❌')}</#assign>
|
||||
<#assign muteDuration>${fmtDuration(mute.muteDuration)}</#assign>
|
||||
|
||||
<#include "mutes_mute_entry_text">
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
<#include "moderation_action_color">,
|
||||
"description": "<@safe_include "mutes_no_mutes_found_text"/>"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"description": "<#list row as mute><#assign mute=mute><@safe_include "mutes_mute_entry"/></#list>",
|
||||
"buttons": [
|
||||
<#include "paginator_buttons">
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
<#assign exitOnly=innerModel.warnings?size lt 6/>
|
||||
"embedConfigs": [
|
||||
<#assign chunks=innerModel.warnings?chunk(5)>
|
||||
<#list chunks as row><#assign counter=row?counter><#assign row=row><#include "warnings_response_entry"><#sep>,</#list>
|
||||
],
|
||||
"timeoutSeconds": 120,
|
||||
"restrictUser": true
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"description": "<#list row as warning><#assign warning=warning><@safe_include "warnings_warn_entry"/></#list>",
|
||||
"buttons": [
|
||||
<#include "paginator_buttons">
|
||||
]
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
<#assign warnCount>${warnings?size}</#assign>
|
||||
"headerText": "<@safe_include "warnings_header_text"/>",
|
||||
"items": [
|
||||
<#list warnings as warning><#assign warning=warning/>"<@safe_include "warnings_warn_entry"/>"<#sep>,</#list>
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user