templates: Factored out editor part to editor.jade