Skip to content

Commit

Permalink
Switching to the new admin templates and removing old jade files
Browse files Browse the repository at this point in the history
  • Loading branch information
JedWatson committed Sep 3, 2015
1 parent f668030 commit ca95e92
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 361 deletions.
9 changes: 2 additions & 7 deletions lib/core/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function render(req, res, view, ext) {

var keystone = this;

var templatePath = __dirname + '/../../templates/views/' + view + '.jade';
var templatePath = __dirname + '/../../admin/templates/' + view + '.jade';

debug('rendering ' + templatePath);

Expand All @@ -28,11 +28,6 @@ function render(req, res, view, ext) {
pretty: keystone.get('env') !== 'production'
};

// TODO: Allow custom basePath for extensions... like this or similar
// if (keystone.get('extensions')) {
// jadeOptions.basedir = keystone.getPath('extensions') + '/templates';
// }

var compileTemplate = function() {
debug('compiling');
return jade.compile(fs.readFileSync(templatePath, 'utf8'), jadeOptions);
Expand Down Expand Up @@ -128,7 +123,7 @@ function render(req, res, view, ext) {

var html = template(_.extend(locals, ext));

debug('sending down html');
debug('sending html');
res.send(html);
}

Expand Down
132 changes: 0 additions & 132 deletions templates/layout/base.jade

This file was deleted.

66 changes: 0 additions & 66 deletions templates/mixins/columns.jade

This file was deleted.

25 changes: 0 additions & 25 deletions templates/mixins/flashMessages.jade

This file was deleted.

5 changes: 0 additions & 5 deletions templates/mixins/pagination.jade

This file was deleted.

13 changes: 0 additions & 13 deletions templates/mixins/rows.jade

This file was deleted.

3 changes: 0 additions & 3 deletions templates/partials/pagination.jade

This file was deleted.

3 changes: 0 additions & 3 deletions templates/partials/row.jade

This file was deleted.

14 changes: 0 additions & 14 deletions templates/views/home.jade

This file was deleted.

56 changes: 0 additions & 56 deletions templates/views/item.jade

This file was deleted.

37 changes: 0 additions & 37 deletions templates/views/list.jade

This file was deleted.

0 comments on commit ca95e92

Please sign in to comment.