Commit e6f2e22f authored by Matija Obreza's avatar Matija Obreza

Updated templates

parent 96265f13
......@@ -88,6 +88,9 @@ public class EmailNotificationAspect {
return;
}
root.put("uuid", ((UuidModel) result).getUuid().toString());
root.put("baseUrl", frontendUrl);
try {
Article article = contentService.getGlobalArticle(ContentService.REVIEW_PUBLICATION, Locale.ENGLISH);
final String mailBody = contentService.processTemplate(article.getBody(), root);
......
{
"template": true,
"en": {
"title": "Publication has sent for review",
"body": "## VELOCITY\n <h2><small><a href=\"https://www.genesys-pgr.org\">www.genesys-pgr.org</a></small></h2>\n\n<p>The \n#if ($publicationType == \"d\")\n dataset\n#elseif ($publicationType == \"s\")\n subset\n#elseif ($publicationType == \"dl\")\n descriptor list\n#end\n\ntitled \"<b>{$title}</b>\" is ready for your review.</p>\n\n<p>Review it at \n\n#if ($publicationType == \"d\")\n ${baseUrl}/datasets/${uuid}\n#elseif ($publicationType == \"s\")\n ${baseUrl}/subsets/${uuid}\n#elseif ($publicationType == \"dl\")\n ${baseUrl}/descriptorlists/${uuid}\n#end\n\n</p>\n\n<p>Thanks,<br/ >Genesys team</p>"
"title": "New publication submitted",
"body": "## VELOCITY\n<h2><small><a href=\"${baseUrl}\">${baseUrl}</a></small><br />New ${publicationType} submitted</h2>\n\n<p>The ${publicationType} titled \"<b>${title}</b>\" is ready for your review.</p>\n\n<p>Review it at \n\n#if ($publicationType == \"dataset\")\n ${baseUrl}/datasets/${uuid}\n#elseif ($publicationType == \"subset\")\n ${baseUrl}/subsets/${uuid}\n#elseif ($publicationType == \"descriptor list\")\n ${baseUrl}/descriptorlists/${uuid}\n#end\n\n</p>\n\n<p>Thanks,<br />Genesys team</p>\n"
}
}
\ No newline at end of file
}
{
"template": true,
"en": {
"title": "Publcation approved",
"body": "## VELOCITY\n<h2><small><a href=\"https://www.genesys-pgr.org\">www.genesys-pgr.org</a></small></h2>\n\n<p>The \n#if ($publicationType == \"d\")\ndataset\n#elseif ($publicationType == \"s\")\nsubset\n#elseif ($publicationType == \"dl\")\ndescriptor list\n#end\n\ntitled \"<b>{$title}</b>\" is now published on Genesys.</p>\n\n<p>It is publicly accessible at \n\n#if ($publicationType == \"d\")\n${baseUrl}/datasets/${uuid}\n#elseif ($publicationType == \"s\")\n${baseUrl}/subsets/${uuid}\n#elseif ($publicationType == \"dl\")\n${baseUrl}/descriptorlists/${uuid}\n#end\n\n</p>\n§\n<p>Thanks,<br/ >Genesys team</p>"
"title": "Publication approved",
"body": "## VELOCITY\n<h2><small><a href=\"${baseUrl}\">${baseUrl}</a></small><br />Publication approved</h2>\n\n<p>The ${publicationType} titled \"<b>${title}</b>\" is now published on Genesys.</p>\n\n<p>It is publicly accessible at \n\n#if ($publicationType == \"dataset\")\n${baseUrl}/datasets/${uuid}\n#elseif ($publicationType == \"subset\")\n${baseUrl}/subsets/${uuid}\n#elseif ($publicationType == \"descriptor list\")\n${baseUrl}/descriptorlists/${uuid}\n#end\n\n</p>\n\n<p>Thanks,<br />Genesys team</p>"
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment