-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
layout.jade
32 lines (30 loc) · 1.17 KB
/
layout.jade
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
doctype html
html.no-js(xmlns:ng='http://angularjs.org', xmlns:app='ignored', ng-app="app")
head
meta(charset='utf-8')
meta(http-equiv='X-UA-Compatible', content='IE=edge,chrome=1')
title(window-title) Buildbot
meta(name='description', content='Buildbot web UI')
meta(name='viewport', content='initial-scale=1, minimum-scale=1, user-scalable=no, maximum-scale=1, width=device-width')
link(rel='stylesheet', href='styles.css')
link(rel='icon', href='img/favicon.ico')
body(ng-cloak)
block content
block footer
script(src="scripts.js?_#{(new Date()).getTime()}")
| {% for app in config.plugins -%}
script(src="{{app}}/scripts.js")
link(rel='stylesheet', href='{{app}}/styles.css')
script
| angular.module('app').requires.push('{{app}}')
| {% endfor %}
script
| angular.module("app").constant("config", {{configjson|safe}})
| {% if custom_templates %}
script
| angular.module("app").run(function ($templateCache) {
| {% for name, html in custom_templates.items() %}
| $templateCache.put("{{ name }}", {{ html|safe }});
| {% endfor %}
| })
| {% endif %}