summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/base.html
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/base.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/base.html74
1 files changed, 74 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html
new file mode 100644
index 0000000..9ca9c9a
--- /dev/null
+++ b/bitbake/lib/toaster/toastergui/templates/base.html
@@ -0,0 +1,74 @@
1<!DOCTYPE html>
2{% load static %}
3<html>
4 <head>
5 <title>{% if objectname %} {{objectname|title}} - {% endif %}Toaster</title>
6<link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}" type="text/css">
7<link rel="stylesheet" href="{% static 'css/bootstrap-responsive.min.css' %}" type='text/css'>
8<link rel="stylesheet" href="{% static 'css/font-awesome.min.css' %}" type='text/css'>
9<link rel="stylesheet" href="{% static 'css/prettify.css' %}" type='text/css'>
10<link rel="stylesheet" href="{% static 'css/default.css' %}" type='text/css'>
11<meta name="viewport" content="width=device-width, initial-scale=1.0" />
12<script src="{% static 'js/jquery-2.0.3.min.js' %}">
13</script>
14<script src="{% static 'js/jquery.cookie.js' %}">
15</script>
16<script src="{% static 'js/bootstrap.min.js' %}">
17</script>
18<script src="{% static 'js/prettify.js' %}">
19</script>
20<script src="{% static 'js/main.js' %}">
21</script>
22<script>
23function reload_params(params) {
24 uri = window.location.href;
25 splitlist = uri.split("?");
26 url = splitlist[0], parameters=splitlist[1];
27 // deserialize the call parameters
28 if(parameters){
29 cparams = parameters.split("&");
30 }else{
31 cparams = []
32 }
33 nparams = {}
34 for (i = 0; i < cparams.length; i++) {
35 temp = cparams[i].split("=");
36 nparams[temp[0]] = temp[1];
37 }
38 // update parameter values
39 for (i in params) {
40 nparams[encodeURIComponent(i)] = encodeURIComponent(params[i]);
41 }
42 // serialize the structure
43 callparams = []
44 for (i in nparams) {
45 callparams.push(i+"="+nparams[i]);
46 }
47 window.location.href = url+"?"+callparams.join('&');
48
49}
50</script>
51
52{% block extraheadcontent %}
53{% endblock %}
54 </head>
55
56<body style="height: 100%">
57<div class="navbar navbar-static-top">
58 <div class="navbar-inner">
59 <a class="brand logo" href="#"><img src="{% static 'img/logo.png' %}" class="" alt="Yocto logo project"/></a>
60 <a class="brand" href="/">Toaster</a>
61 <a class="pull-right manual" target="_blank" href="http://www.yoctoproject.org/documentation/toaster-manual">
62 <i class="icon-book"></i>
63 Toaster manual
64 </a>
65 </div>
66</div>
67
68<div class="container-fluid">
69{% block pagecontent %}
70{% endblock %}
71</div>
72</body>
73</html>
74