Migrate Jade to Pug template engine

Jade templates engine has been renamed to Pug.

We are using Pug already on the Blender Cloud repository, following is Flamenco and Attract
This commit is contained in:
2017-08-30 14:04:15 +02:00
parent 62542f0329
commit 811236cff4
81 changed files with 17 additions and 17 deletions

View File

@@ -1,6 +1,6 @@
/*
* == Search ==
* index and algolia settings are defined in layout.jade
* index and algolia settings are defined in layout.pug
*/
$(document).ready(function() {

View File

@@ -1,5 +1,5 @@
(function ( $ ) {
// See organizations/view_embed.jade for example use.
// See organizations/view_embed.pug for example use.
$.fn.userSearch = function(algolia_application_id, algolia_public_key, algolia_index_users, on_selected) {
var client = algoliasearch(algolia_application_id, algolia_public_key);
var index = client.initIndex(algolia_index_users);

View File

@@ -1,4 +1,4 @@
#error-container(class="error-403")
#error-container.error-403
#error-box
.error-top-container
.error-title Forbidden.

View File

@@ -1,4 +1,4 @@
#error-container(class="error-404")
#error-container.error-404
#error-box
.error-top-container
.error-title Not found.

View File

@@ -1,6 +1,6 @@
| {% extends "errors/layout.html" %}
| {% block body %}
#error_container.412.standalone
#error_container.error-412.standalone
#error_box
.error-title 412. Precondition Failed.

View File

@@ -1,4 +1,4 @@
#error_container.412
#error_container.error-412
#error_box
.error-title 412. Precondition Failed.

View File

@@ -21,7 +21,7 @@ html(lang="en")
body.error
#error_container.500.standalone
#error_container.error-500.standalone
#error_box
.error-top-container
.error-title Something went wrong.

View File

@@ -1,4 +1,4 @@
#error_container.500
#error_container.error-500
#error_box
.error-top-container
.error-title Something went wrong.

View File

@@ -89,7 +89,7 @@ script(type="text/javascript").
//- console.log($(this).serialize());
$.post($(this).attr('action'), $(this).serialize())
.done(function(data){
// This function is defined in index.jade.
// This function is defined in index.pug.
displayUser('{{ user._id }}')
.done(function() {
$('#user-edit-notification').addClass('success').html('Success!');

View File

@@ -103,7 +103,7 @@ script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery.select
script(type="text/javascript").
// This function is also used in edit_embed.jade.
// This function is also used in edit_embed.pug.
function displayUser(userId) {
var url = '/u/' + userId + '/edit';
return $.get(url, function(dataHtml){