admin/header.tpl use admin.css instead of stylesheet.css

v1.18.x
psychobunny 10 years ago
parent 81ce7f93ad
commit e336188ccc

@ -27,6 +27,10 @@ function sendStylesheet(req, res, next) {
res.type('text/css').send(200, meta.css.cache);
}
function sendACPStylesheet(req, res, next) {
res.type('text/css').send(200, meta.css.acpCache);
}
function setupPluginSourceMapping(app) {
/*
These mappings are utilised by the source map file, as client-side
@ -48,6 +52,7 @@ function setupPluginSourceMapping(app) {
module.exports = function(app, middleware, controllers) {
app.get('/stylesheet.css', middleware.addExpiresHeaders, sendStylesheet);
app.get('/admin.css', middleware.addExpiresHeaders, sendACPStylesheet);
app.get('/nodebb.min.js', middleware.addExpiresHeaders, sendMinifiedJS);
app.get('/sitemap.xml', controllers.sitemap);
app.get('/robots.txt', controllers.robots);

@ -6,7 +6,7 @@
<link rel="stylesheet" href="{relative_path}/vendor/jquery/css/smoothness/jquery-ui-1.10.4.custom.min.css">
<link rel="stylesheet" type="text/css" href="{relative_path}/vendor/colorpicker/colorpicker.css">
<link rel="stylesheet" type="text/css" href="{relative_path}/stylesheet.css?{cache-buster}" />
<link rel="stylesheet" type="text/css" href="{relative_path}/admin.css?{cache-buster}" />
<script>
var RELATIVE_PATH = "{relative_path}";

Loading…
Cancel
Save