mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-01-27 20:39:08 +00:00
[AB-xxx] making user info template able to handle partial members
This commit is contained in:
@@ -20,11 +20,13 @@
|
|||||||
"inline": "true"
|
"inline": "true"
|
||||||
},
|
},
|
||||||
</#if>
|
</#if>
|
||||||
|
<#if onlineStatus?has_content>
|
||||||
{
|
{
|
||||||
"name": "<@safe_include "userInfo_response_embed_status_field_title"/>",
|
"name": "<@safe_include "userInfo_response_embed_status_field_title"/>",
|
||||||
"value": "${onlineStatus?json_string}",
|
"value": "${onlineStatus?json_string}",
|
||||||
"inline": "true"
|
"inline": "true"
|
||||||
},
|
},
|
||||||
|
</#if>
|
||||||
{
|
{
|
||||||
"name": "<@safe_include "userInfo_response_embed_joined_field_title"/>",
|
"name": "<@safe_include "userInfo_response_embed_joined_field_title"/>",
|
||||||
"value": "<@format_instant_date_time instant=joinDate/>",
|
"value": "<@format_instant_date_time instant=joinDate/>",
|
||||||
@@ -35,7 +37,7 @@
|
|||||||
"value": "<@format_instant_date_time instant=creationDate/>",
|
"value": "<@format_instant_date_time instant=creationDate/>",
|
||||||
"inline": "true"
|
"inline": "true"
|
||||||
}
|
}
|
||||||
<#if roles?size gt 0>
|
<#if roles?has_content && roles?size gt 0>
|
||||||
,
|
,
|
||||||
{
|
{
|
||||||
"name": "<@safe_include "userInfo_response_embed_roles_field_title"/>",
|
"name": "<@safe_include "userInfo_response_embed_roles_field_title"/>",
|
||||||
@@ -44,7 +46,7 @@
|
|||||||
"valueSplitLength": 250
|
"valueSplitLength": 250
|
||||||
}
|
}
|
||||||
</#if>
|
</#if>
|
||||||
<#if activities?size gt 0>
|
<#if activities?has_content && activities?size gt 0>
|
||||||
,
|
,
|
||||||
{
|
{
|
||||||
"name": "<@safe_include "userInfo_response_embed_activity_field_title"/>",
|
"name": "<@safe_include "userInfo_response_embed_activity_field_title"/>",
|
||||||
|
|||||||
Reference in New Issue
Block a user