new header for meta title

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

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

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title></title>
<title>NodeBB Administration Panel</title>
<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 href="/vendor/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">

@ -1,6 +1,14 @@
<h1>Settings</h1>
<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>
<h3>Privilege Thresholds</h3>
<div class="alert alert-notify">

@ -1,10 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<title>NodeBB</title>
<title>{title}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<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="/vendor/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">
<link rel="stylesheet" href="/vendor/fontawesome/css/font-awesome.min.css">

@ -82,7 +82,10 @@
Auth.create_routes = function(app) {
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) {

@ -7,7 +7,10 @@ var user = require('./../user.js'),
(function(User) {
User.create_routes = function(app) {
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) {

@ -23,7 +23,10 @@ var express = require('express'),
(function(app) {
var templates = null,
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

Loading…
Cancel
Save