diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/base.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/base.html | 91 |
1 files changed, 91 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 0000000000..9ef249aab3 --- /dev/null +++ b/bitbake/lib/toaster/toastergui/templates/base.html | |||
@@ -0,0 +1,91 @@ | |||
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> | ||
23 | function 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 | {%if MANAGED %} | ||
62 | <div class="btn-group pull-right"> | ||
63 | <a class="btn" href="{% url 'newproject' %}">New project</a> | ||
64 | <button class="btn dropdown-toggle" data-toggle="dropdown"> | ||
65 | <i class="icon-caret-down"></i> | ||
66 | </button> | ||
67 | <ul class="dropdown-menu"> | ||
68 | {% for prj in projects %} | ||
69 | <li><a href="{% url 'project' prj.id %}">{{prj.name}}</a></li> | ||
70 | {% endfor %} | ||
71 | <li><hr/></li> | ||
72 | <li><a href="#">Clone project</a></li> | ||
73 | <li><a href="#">Export project</a></li> | ||
74 | <li><a href="#">Import project</a></li> | ||
75 | </ul> | ||
76 | </div> | ||
77 | {%endif%} | ||
78 | <a class="pull-right manual" target="_blank" href="http://www.yoctoproject.org/documentation/toaster-manual"> | ||
79 | <i class="icon-book"></i> | ||
80 | Toaster manual | ||
81 | </a> | ||
82 | </div> | ||
83 | </div> | ||
84 | |||
85 | <div class="container-fluid"> | ||
86 | {% block pagecontent %} | ||
87 | {% endblock %} | ||
88 | </div> | ||
89 | </body> | ||
90 | </html> | ||
91 | |||