forked from cory/tildefriends
Place to show a code of conduct.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4078 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
c49da3db07
commit
1a45113e0c
@ -211,6 +211,10 @@ function handler(request, response) {
|
||||
contents += '<input id="guestButton" type="submit" name="submit" value="Proceeed as Guest">\n';
|
||||
contents += '</div>\n';
|
||||
contents += '</div>\n';
|
||||
contents += '<div style="text-align: center">\n';
|
||||
contents += '<h2>Code of Conduct</h2>\n';
|
||||
contents += `<div><textarea readonly rows=20 cols=80>${core.globalSettings.code_of_conduct}</textarea></div>\n`;
|
||||
contents += '</div>\n';
|
||||
contents += '</form>';
|
||||
}
|
||||
var text = html.replace("<!--SESSION-->", contents);
|
||||
|
@ -17,6 +17,11 @@ const k_global_settings = {
|
||||
default_value: true,
|
||||
description: 'Whether this instance should behave as a room.',
|
||||
},
|
||||
code_of_conduct: {
|
||||
type: 'textarea',
|
||||
default_value: undefined,
|
||||
description: 'Code of conduct presented at sign-in.',
|
||||
},
|
||||
};
|
||||
|
||||
var gGlobalSettings = {
|
||||
|
Loading…
Reference in New Issue
Block a user