new header for meta title

v1.18.x
Julian Lam 12 years ago
parent 6a91c8a116
commit 1a104686ac

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
clear clear
echo "Launching NodeBB" echo "Launching NodeBB"
supervisor --extensions 'node|js|tpl' app supervisor --extensions 'node|js|tpl' -- app $1

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title></title> <title>NodeBB Administration Panel</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link id="base-theme" href="/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen"> <link id="base-theme" href="/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="/vendor/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen"> <link href="/vendor/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">

@ -1,6 +1,14 @@
<h1>Settings</h1> <h1>Settings</h1>
<hr /> <hr />
<h3>General Settings</h3>
<div class="alert">
<form>
<label>Site Title</label>
<input type="text" placeholder="My Forum" data-field="title" />
</form>
</div>
<form> <form>
<h3>Privilege Thresholds</h3> <h3>Privilege Thresholds</h3>
<div class="alert alert-notify"> <div class="alert alert-notify">

@ -1,10 +1,12 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>NodeBB</title> <title>{title}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" CONTENT="NodeBB"> <meta name="title" CONTENT="NodeBB">
<meta name="description" content="Node.js/Redis/Socket.io powered forums for a new generation"> <meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link href="{cssSrc}" rel="stylesheet" media="screen"> <link href="{cssSrc}" rel="stylesheet" media="screen">
<link href="/vendor/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen"> <link href="/vendor/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">
<link rel="stylesheet" href="/vendor/fontawesome/css/font-awesome.min.css"> <link rel="stylesheet" href="/vendor/fontawesome/css/font-awesome.min.css">

@ -82,7 +82,10 @@
Auth.create_routes = function(app) { Auth.create_routes = function(app) {
var build_header = function() { var build_header = function() {
return templates['header'].parse({ cssSrc: global.config['theme:src'] || '/vendor/bootstrap/css/bootstrap.min.css' }); return templates['header'].parse({
cssSrc: global.config['theme:src'] || '/vendor/bootstrap/css/bootstrap.min.css',
title: global.config['title'] || 'NodeBB'
});
}; };
app.get('/logout', function(req, res) { app.get('/logout', function(req, res) {

@ -7,7 +7,10 @@ var user = require('./../user.js'),
(function(User) { (function(User) {
User.create_routes = function(app) { User.create_routes = function(app) {
var build_header = function() { var build_header = function() {
return templates['header'].parse({ cssSrc: global.config['theme:src'] || '/vendor/bootstrap/css/bootstrap.min.css' }); return templates['header'].parse({
cssSrc: global.config['theme:src'] || '/vendor/bootstrap/css/bootstrap.min.css',
title: global.config['title'] || 'NodeBB'
});
}; };
app.get('/uid/:uid', function(req, res) { app.get('/uid/:uid', function(req, res) {

@ -23,7 +23,10 @@ var express = require('express'),
(function(app) { (function(app) {
var templates = null, var templates = null,
build_header = function() { build_header = function() {
return templates['header'].parse({ cssSrc: global.config['theme:src'] || '/vendor/bootstrap/css/bootstrap.min.css' }); return templates['header'].parse({
cssSrc: global.config['theme:src'] || '/vendor/bootstrap/css/bootstrap.min.css',
title: global.config['title'] || 'NodeBB'
});
}; };
// Middlewares // Middlewares

Loading…
Cancel
Save