Merge pull request #1118 from marcelklehr/feature/customize-app-title

Add a setting for customizing the app title
This commit is contained in:
John McLear 2012-11-02 05:59:15 -07:00
commit af3513873f
5 changed files with 17 additions and 3 deletions

View File

@ -4,6 +4,9 @@
Please edit settings.json, not settings.json.template Please edit settings.json, not settings.json.template
*/ */
{ {
// Name your instance!
"title": "Etherpad Lite",
//Ip and port which etherpad should bind at //Ip and port which etherpad should bind at
"ip": "0.0.0.0", "ip": "0.0.0.0",
"port" : 9001, "port" : 9001,

View File

@ -29,6 +29,11 @@ var vm = require('vm');
/* Root path of the installation */ /* Root path of the installation */
exports.root = path.normalize(path.join(npm.dir, "..")); exports.root = path.normalize(path.join(npm.dir, ".."));
/**
* The app title, visible e.g. in the browser window
*/
exports.title = "Etherpad Lite";
/** /**
* The IP ep-lite should listen to * The IP ep-lite should listen to
*/ */

View File

@ -1,7 +1,10 @@
<%
var settings = require("ep_etherpad-lite/node/utils/Settings");
%>
<!doctype html> <!doctype html>
<html> <html>
<title>Etherpad Lite</title> <title><%=settings.title%></title>
<script> <script>
/* /*
|@licstart The following is the entire license notice for the |@licstart The following is the entire license notice for the

View File

@ -3,7 +3,7 @@
%> %>
<!doctype html> <!doctype html>
<html> <html>
<title>Etherpad Lite</title> <title><%=settings.title%></title>
<script> <script>
/* /*
|@licstart The following is the entire license notice for the |@licstart The following is the entire license notice for the

View File

@ -1,6 +1,9 @@
<%
var settings = require("ep_etherpad-lite/node/utils/Settings");
%>
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
<title>Etherpad Lite Timeslider</title> <title><%=settings.title%> Timeslider</title>
<script> <script>
/* /*
|@licstart The following is the entire license notice for the |@licstart The following is the entire license notice for the