diff --git a/config/template.json b/config/template.json index a8e0cb2..6b33652 100644 --- a/config/template.json +++ b/config/template.json @@ -25,7 +25,7 @@ "discussions": [ { "title": "Challenge Overview", - "body": "Back to Challenge Details page
", + "body": "[Back to Challenge Details page](<%- challenge.url %>)\n<% _.forEach(challenge.prizeSets, function(prizeSet) { %>* <%- prizeSet.type %>: <% _.forEach(prizeSet.prizes, function(prize) { %><%- prize.value %>$ <% }) %>\n<% }); %>", "announce": 1, "closed": 1 }, @@ -43,7 +43,7 @@ "discussions": [ { "title": "Welcome!", - "body": "Please read the requirements carefully. If you have questions, please let me know, I'll be glad to help you.", + "body": "Please read the requirements carefully. If you have questions, please let me know, I'll be glad to help you.", "announce": 0, "closed": 0 } @@ -68,7 +68,7 @@ "discussions": [ { "title": "Challenge Overview", - "body": "Back to Challenge Details page
", + "body": "[Back to Challenge Details page](<%- challenge.url %>)\n<% _.forEach(challenge.prizeSets, function(prizeSet) { %>* <%- prizeSet.type %>: <% _.forEach(prizeSet.prizes, function(prize) { %><%- prize.value %>$ <% }) %>\n<% }); %>", "announce": 1, "closed": 1 }, @@ -131,7 +131,7 @@ }, { "title": "Challenge Overview", - "body": "Back to Challenge Details page
", + "body": "[Back to Challenge Details page](<%- challenge.url %>)\n<% _.forEach(challenge.prizeSets, function(prizeSet) { %>* <%- prizeSet.type %>: <% _.forEach(prizeSet.prizes, function(prize) { %><%- prize.value %>$ <% }) %>\n<% }); %>", "announce": 1, "closed": 1 } @@ -160,7 +160,7 @@ "discussions": [ { "title": "Challenge Overview", - "body": "Back to Challenge Details page
", + "body": "[Back to Challenge Details page](<%- challenge.url %>)\n<% _.forEach(challenge.prizeSets, function(prizeSet) { %>* <%- prizeSet.type %>: <% _.forEach(prizeSet.prizes, function(prize) { %><%- prize.value %>$ <% }) %>\n<% }); %>", "announce": 1, "closed": 1 }, @@ -178,7 +178,7 @@ "discussions": [ { "title": "Welcome!", - "body": "Please read the requirements carefully. If you have questions, please let me know, I'll be glad to help you.", + "body": "Please read the requirements carefully. If you have questions, please let me know, I'll be glad to help you.", "announce": 0, "closed": 0 } diff --git a/src/constants.js b/src/constants.js index fb316fd..a9e7030 100644 --- a/src/constants.js +++ b/src/constants.js @@ -66,12 +66,12 @@ module.exports = { 'discussions.view': true }, DISCUSSION_FORMAT: { - RICH: 'rich', - MARKDOWN: 'markdown', - TEXT: 'text', - TEXTEX: 'textex', - WYSIWYG: 'wysiwyg', - BBCODE: 'bbcode' + RICH: 'Rich', + MARKDOWN: 'Markdown', + TEXT: 'Text', + TEXTEX: 'Textex', + WYSIWYG: 'Wysiwyg', + BBCODE: 'Bbcode' }, GROUP_PRIVACY: { SECRET: 'secret', diff --git a/src/services/vanilla.js b/src/services/vanilla.js index 7212846..16edbb5 100644 --- a/src/services/vanilla.js +++ b/src/services/vanilla.js @@ -315,7 +315,7 @@ async function createDiscussions (group, challenge, templateDiscussions, vanilla name: discussion.title, groupID: group.groupID, categoryID: vanillaCategory.categoryID, - format: constants.VANILLA.DISCUSSION_FORMAT.WYSIWYG, + format: constants.VANILLA.DISCUSSION_FORMAT.MARKDOWN, closed: discussion.closed, pinned: discussion.announce })