From dc23a132d80e751fd0638f173e7e55c2a53d4871 Mon Sep 17 00:00:00 2001 From: Dries007 Date: Tue, 14 Oct 2014 00:29:57 +0200 Subject: [PATCH] added lang selector to the ace editor --- src/main/resources/templates/editors/ace.ftl | 30 +++++++++++++++--- src/main/resources/templates/newserver.ftl | 33 +++++++++++++++++--- 2 files changed, 54 insertions(+), 9 deletions(-) diff --git a/src/main/resources/templates/editors/ace.ftl b/src/main/resources/templates/editors/ace.ftl index 68aea17..7af7468 100644 --- a/src/main/resources/templates/editors/ace.ftl +++ b/src/main/resources/templates/editors/ace.ftl @@ -5,20 +5,42 @@ } + +
${fm.getFileContentsAsString()}
<#if !readonly> diff --git a/src/main/resources/templates/newserver.ftl b/src/main/resources/templates/newserver.ftl index b8dfbbf..a1d37dc 100644 --- a/src/main/resources/templates/newserver.ftl +++ b/src/main/resources/templates/newserver.ftl @@ -7,7 +7,7 @@ window.location = "../servers/${server.name}"; <#else> -
+ <#if admin>
@@ -21,12 +21,12 @@
-
+
- - "${user.username}-" will be used as a prefix automatically. + + "${user.username}-" will be used as a prefix automatically.
<#if !Settings.fixedPorts> @@ -129,10 +129,33 @@
- + By clicking submit you indicate that you agree to Mojang's EULA.
+ <#include "footer.ftl">