mirror of
https://github.com/Sheldan/abstracto-templates.git
synced 2026-03-07 00:30:50 +00:00
[AB-197] moving templates from utility to their respective maven modules
This commit is contained in:
15
abstracto-modules/suggestion/src/main/assembly/assembly.xml
Normal file
15
abstracto-modules/suggestion/src/main/assembly/assembly.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
|
||||
<id>zip</id>
|
||||
<includeBaseDirectory>false</includeBaseDirectory>
|
||||
<formats>
|
||||
<format>zip</format>
|
||||
</formats>
|
||||
<fileSets>
|
||||
<fileSet>
|
||||
<outputDirectory>.</outputDirectory>
|
||||
<directory>${project.basedir}/src/main/resources</directory>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
</assembly>
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"author": {
|
||||
<#if suggester?has_content>
|
||||
"name": "<@member_user_name member=suggester/>",
|
||||
"avatar": "${suggester.user.effectiveAvatarUrl}"
|
||||
<#else>
|
||||
"name": "${suggesterUser.userReference.id?c} (<@safe_include "user_left_server"/>)"
|
||||
</#if>
|
||||
},
|
||||
<#assign user><@member_user_name member=member/></#assign>
|
||||
<#if state = "ACCEPTED">
|
||||
"title": {
|
||||
"title": "<@safe_include "suggest_accepted_by"/>"
|
||||
},
|
||||
<#elseif state = "REJECTED">
|
||||
"title": {
|
||||
"title": "<@safe_include "suggest_rejected_by"/>"
|
||||
},
|
||||
</#if>
|
||||
<#include "abstracto_color">,
|
||||
<#assign id>${suggestionId}</#assign>
|
||||
<#if state = "ACCEPTED" || state = "REJECTED">
|
||||
"description": "~~${text?js_string}~~",
|
||||
<#else>
|
||||
"description": "${text?js_string}",
|
||||
</#if>
|
||||
<#if state = "ACCEPTED" || state = "REJECTED">
|
||||
"fields": [
|
||||
{
|
||||
"name": "<@safe_include "suggest_link_field_title"/>",
|
||||
"value": "[<@safe_include "suggest_link_display_value"/>](${originalMessageUrl})"
|
||||
}
|
||||
<#if reason?has_content>
|
||||
,
|
||||
{
|
||||
"name": "<@safe_include "suggest_reason_field_title"/>",
|
||||
"value": "${reason?js_string}"
|
||||
}
|
||||
</#if>
|
||||
],
|
||||
</#if>
|
||||
"footer": {
|
||||
"text": "<@safe_include "suggest_suggestion_id_footer"/>"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<#assign suggestionId=model.suggestionId><#include "suggestion_does_not_exist_exception_text">
|
||||
@@ -0,0 +1 @@
|
||||
<#include "suggestion_update_exception_text">
|
||||
Reference in New Issue
Block a user