Add a setting for customizing the app title

the app title is inserted into the <title> of all tepmlates
This commit is contained in:
Marcel Klehr 2012-11-02 12:30:57 +01:00
parent b9f4e8450c
commit 6d543fbcb3
5 changed files with 17 additions and 3 deletions

View File

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

View File

@ -29,6 +29,11 @@ var vm = require('vm');
/* Root path of the installation */
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
*/

View File

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

View File

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