mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
closes #863
This commit is contained in:
@@ -12,11 +12,13 @@ define(function() {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
if (notifContainer.className.indexOf('open') === -1) {
|
if (notifContainer.className.indexOf('open') === -1) {
|
||||||
socket.emit('notifications.get', null, function(err, data) {
|
socket.emit('notifications.get', null, function(err, data) {
|
||||||
|
|
||||||
var notifFrag = document.createDocumentFragment(),
|
var notifFrag = document.createDocumentFragment(),
|
||||||
notifEl = document.createElement('li'),
|
notifEl = document.createElement('li'),
|
||||||
numRead = data.read.length,
|
numRead = data.read.length,
|
||||||
numUnread = data.unread.length,
|
numUnread = data.unread.length,
|
||||||
x;
|
x;
|
||||||
|
|
||||||
notifList.innerHTML = '';
|
notifList.innerHTML = '';
|
||||||
if (!err && (data.read.length + data.unread.length) > 0) {
|
if (!err && (data.read.length + data.unread.length) > 0) {
|
||||||
for (x = 0; x < numUnread; x++) {
|
for (x = 0; x < numUnread; x++) {
|
||||||
|
|||||||
@@ -17,6 +17,8 @@
|
|||||||
<form>
|
<form>
|
||||||
<label>Site Title</label>
|
<label>Site Title</label>
|
||||||
<input class="form-control" type="text" placeholder="Your Community Name" data-field="title" /><br />
|
<input class="form-control" type="text" placeholder="Your Community Name" data-field="title" /><br />
|
||||||
|
<label>Browser Title</label>
|
||||||
|
<input class="form-control" type="text" placeholder="Browser Title" data-field="browserTitle" /><br />
|
||||||
<label>Site Description</label>
|
<label>Site Description</label>
|
||||||
<input type="text" class="form-control" placeholder="A short description about your community" data-field="description" /><br />
|
<input type="text" class="form-control" placeholder="A short description about your community" data-field="description" /><br />
|
||||||
<label>Site Keywords</label>
|
<label>Site Keywords</label>
|
||||||
|
|||||||
@@ -174,9 +174,9 @@ var fs = require('fs'),
|
|||||||
var title;
|
var title;
|
||||||
|
|
||||||
if (err) {
|
if (err) {
|
||||||
title = Meta.config.title || 'NodeBB';
|
title = Meta.config.browserTitle || 'NodeBB';
|
||||||
} else {
|
} else {
|
||||||
title = (title ? title + ' | ' : '') + (Meta.config.title || 'NodeBB');
|
title = (title ? title + ' | ' : '') + (Meta.config.browserTitle || 'NodeBB');
|
||||||
}
|
}
|
||||||
|
|
||||||
callback(null, title);
|
callback(null, title);
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ module.exports.server = server;
|
|||||||
'brand:logo': meta.config['brand:logo'] || '',
|
'brand:logo': meta.config['brand:logo'] || '',
|
||||||
'brand:logo:display': meta.config['brand:logo']?'':'hide',
|
'brand:logo:display': meta.config['brand:logo']?'':'hide',
|
||||||
'brand:favicon': meta.config['brand:favicon'] || nconf.get('relative_path') + '/favicon.ico',
|
'brand:favicon': meta.config['brand:favicon'] || nconf.get('relative_path') + '/favicon.ico',
|
||||||
browserTitle: meta.config.title || 'NodeBB',
|
browserTitle: meta.config.browserTitle || 'NodeBB',
|
||||||
csrf: options.res.locals.csrf_token,
|
csrf: options.res.locals.csrf_token,
|
||||||
relative_path: nconf.get('relative_path'),
|
relative_path: nconf.get('relative_path'),
|
||||||
clientScripts: clientScripts,
|
clientScripts: clientScripts,
|
||||||
|
|||||||
Reference in New Issue
Block a user