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.html69
1 files changed, 64 insertions, 5 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html
index 1b9edfd7b7..87746bfc8c 100644
--- a/bitbake/lib/toaster/toastergui/templates/base.html
+++ b/bitbake/lib/toaster/toastergui/templates/base.html
@@ -8,6 +8,7 @@
8<link rel="stylesheet" href="{% static 'css/font-awesome.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'> 9<link rel="stylesheet" href="{% static 'css/prettify.css' %}" type='text/css'>
10<link rel="stylesheet" href="{% static 'css/default.css' %}" type='text/css'> 10<link rel="stylesheet" href="{% static 'css/default.css' %}" type='text/css'>
11<link rel="stylesheet" href="assets/css/jquery-ui-1.10.3.custom.min.css" type='text/css'>
11<meta name="viewport" content="width=device-width, initial-scale=1.0" /> 12<meta name="viewport" content="width=device-width, initial-scale=1.0" />
12<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> 13<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
13<script src="{% static 'js/jquery-2.0.3.min.js' %}"> 14<script src="{% static 'js/jquery-2.0.3.min.js' %}">
@@ -20,7 +21,25 @@
20</script> 21</script>
21<script src="{% static 'js/libtoaster.js' %}"> 22<script src="{% static 'js/libtoaster.js' %}">
22</script> 23</script>
24<script src="{% static 'js/base.js' %}"></script>
25{%if MANAGED %}
26<script>
27 $(document).ready(function () {
28 /* Vars needed for base.js */
29 var ctx = {};
30 ctx.xhrDataTypeaheadUrl = "{% url 'xhr_datatypeahead' %}";
31 ctx.projectBuildUrl = "{% url 'xhr_build' %}";
32 ctx.projectPageUrl = "{% url 'project' %}";
33 ctx.projectInfoUrl = "{% url 'xhr_projectinfo' %}";
34 {% if project %}
35 ctx.projectId = {{project.id}};
36 {% endif %}
37 ctx.currentUrl = "{{request.path|escapejs}}";
38
39 basePageInit(ctx);
40 });
23</script> 41</script>
42{% endif %}
24<script> 43<script>
25 44
26</script> 45</script>
@@ -34,15 +53,55 @@
34 <div class="navbar-inner"> 53 <div class="navbar-inner">
35 <a class="brand logo" href="#"><img src="{% static 'img/logo.png' %}" class="" alt="Yocto logo project"/></a> 54 <a class="brand logo" href="#"><img src="{% static 'img/logo.png' %}" class="" alt="Yocto logo project"/></a>
36 <a class="brand" href="/">Toaster</a> 55 <a class="brand" href="/">Toaster</a>
37 {%if MANAGED %}
38 <div class="btn-group pull-right">
39 <a class="btn" href="{% url 'newproject' %}">New project</a>
40 </div>
41 {%endif%}
42 <a class="pull-right manual" target="_blank" href="http://www.yoctoproject.org/documentation/toaster-manual"> 56 <a class="pull-right manual" target="_blank" href="http://www.yoctoproject.org/documentation/toaster-manual">
43 <i class="icon-book"></i> 57 <i class="icon-book"></i>
44 Toaster manual 58 Toaster manual
45 </a> 59 </a>
60 {%if MANAGED %}
61 <div class="btn-group pull-right">
62 <a class="btn" href="{% url 'newproject' %}">New project</a>
63 </div>
64 <!-- New build popover -->
65 <div class="btn-group pull-right" id="new-build-button">
66 <button class="btn dropdown-toggle" data-toggle="dropdown" href="#">
67 New build
68 <i class="icon-caret-down"></i>
69 </button>
70 <ul class="dropdown-menu new-build multi-select">
71 <li>
72 <h3>New build</h3>
73 <h6>Project:</h6>
74 <span id="project">
75 <a class="lead" href="{% if project.id %}{% url 'project' project.id %}{% endif %}">{{project.name}}</a>
76 <i class="icon-pencil"></i>
77 </span>
78 <form id="change-project-form" style="display:none;">
79 <div class="input-append">
80 <input type="text" class="input-medium" id="project-name-input" placeholder="Type a project name" autocomplete="off" data-minLength="1" data-autocomplete="off" data-provide="typeahead">
81 <button id="save-project-button" class="btn" type="button">Save</button>
82 <a href="#" id="cancel-change-project" class="btn btn-link">Cancel</a>
83 </div>
84 <a id="view-all-projects" href="{% url 'all-projects' %}">View all projects</a>
85 </form>
86 </li>
87 <div class="alert" style="display:none">
88 This project's configuration is incomplete,<br/>so you cannot run builds.<br/>
89 <a href="{% if project.id %}{% url 'project' project.id %}{% endif %}">View project configuration</a>
90 </div>
91 <li id="targets-form">
92 <h6>Target(s):</h6>
93 <form>
94 <input type="text" class="input-xlarge" id="build-target-input" placeholder="Type a target name" autocomplete="off" data-minLength="1" data-autocomplete="off" data-provide="typeahead" >
95 <div>
96 <a class="btn btn-primary" id="build-button" disabled="disabled" data-project-id="{{project.id}}">Build</a>
97 </div>
98 </form>
99 </li>
100 </ul>
101 </div>
102
103 {%endif%}
104
46 </div> 105 </div>
47</div> 106</div>
48 107