2013-10-11 12:46:23 +00:00
<!DOCTYPE html>
{% load static %}
2014-10-02 16:58:15 +00:00
< html lang = "en" >
2013-12-11 16:42:34 +00:00
< head >
2014-01-15 19:55:06 +00:00
< title > {% if objectname %} {{objectname|title}} - {% endif %}Toaster< / title >
2014-12-05 15:19:55 +00:00
< link rel = "stylesheet" href = "{% static 'css/bootstrap.min.css' %}" type = "text/css" / >
< link rel = "stylesheet" href = "{% static 'css/bootstrap-responsive.min.css' %}" type = 'text/css' / >
< link rel = "stylesheet" href = "{% static 'css/font-awesome.min.css' %}" type = 'text/css' / >
< link rel = "stylesheet" href = "{% static 'css/prettify.css' %}" type = 'text/css' / >
< link rel = "stylesheet" href = "{% static 'css/default.css' %}" type = 'text/css' / >
2014-11-25 10:12:46 +00:00
2013-12-11 16:42:34 +00:00
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" / >
2014-12-05 15:19:55 +00:00
< meta http-equiv = "Content-Type" content = "text/html;charset=UTF-8" / >
2013-12-11 16:42:34 +00:00
< script src = "{% static 'js/jquery-2.0.3.min.js' %}" >
2013-10-11 12:46:23 +00:00
< / script >
2014-01-16 13:07:02 +00:00
< script src = "{% static 'js/jquery.cookie.js' %}" >
< / script >
2013-12-11 16:42:34 +00:00
< script src = "{% static 'js/bootstrap.min.js' %}" >
2013-10-11 12:46:23 +00:00
< / script >
2013-12-11 16:42:34 +00:00
< script src = "{% static 'js/prettify.js' %}" >
< / script >
2014-11-11 16:23:58 +00:00
< script src = "{% static 'js/libtoaster.js' %}" >
< / script >
2015-01-08 13:15:10 +00:00
{% if DEBUG %}
< script >
libtoaster.debug = true;
< / script >
{% endif %}
2015-04-10 17:15:03 +00:00
< script >
libtoaster.ctx = {
projectId : {{project.id|default:'undefined'}},
xhrDataTypeaheadUrl : "{% url 'xhr_datatypeahead' %}",
{% if project.id %}
xhrProjectEditUrl : "{% url 'xhr_projectedit' project.id %}",
projectPageUrl : "{% url 'project' project.id %}",
projectName : "{{project.name}}",
{% endif %}
};
< / script >
2014-11-11 16:30:22 +00:00
< script src = "{% static 'js/base.js' %}" > < / script >
{%if MANAGED %}
< script >
$(document).ready(function () {
/* Vars needed for base.js */
var ctx = {};
ctx.projectBuildUrl = "{% url 'xhr_build' %}";
2015-04-10 17:15:03 +00:00
ctx.projectBasePageUrl = "{% url 'base_project' %}";
2014-11-11 16:30:22 +00:00
ctx.projectInfoUrl = "{% url 'xhr_projectinfo' %}";
2014-11-20 15:06:28 +00:00
ctx.numProjects = {{projects|length}};
2014-11-11 16:30:22 +00:00
ctx.currentUrl = "{{request.path|escapejs}}";
basePageInit(ctx);
});
2013-12-11 16:42:34 +00:00
< / script >
2014-11-11 16:30:22 +00:00
{% endif %}
2013-12-11 16:42:34 +00:00
< script >
< / script >
2014-02-28 13:55:46 +00:00
2014-03-12 21:54:09 +00:00
{% block extraheadcontent %}
{% endblock %}
2013-12-11 16:42:34 +00:00
< / head >
2013-10-11 12:46:23 +00:00
< body style = "height: 100%" >
2013-12-11 16:42:34 +00:00
< div class = "navbar navbar-static-top" >
< div class = "navbar-inner" >
< a class = "brand logo" href = "#" > < img src = "{% static 'img/logo.png' %}" class = "" alt = "Yocto logo project" / > < / a >
2015-02-16 17:52:51 +00:00
< span class = "brand" >
< a href = "/" > Toaster< / a >
{% if DEBUG %}
2015-02-24 17:20:53 +00:00
< i class = "icon-info-sign" title = "<strong>Toaster version information</strong>" data-content = "<dl><dt>Branch</dt><dd>{{TOASTER_BRANCH}}</dd><dt>Revision</dt><dd>{{TOASTER_REVISION}}</dd><dt>Mode</dt><dd>{%if MANAGED%}Build{%else%}Analysis{%endif%}</dd></dl>" > < / i >
2015-02-16 17:52:51 +00:00
{% endif %}
< / span >
2015-03-23 15:26:02 +00:00
< a class = "pull-right manual" target = "_blank" href = "http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html" >
2013-12-11 16:42:34 +00:00
< i class = "icon-book" > < / i >
Toaster manual
< / a >
2014-11-11 16:30:22 +00:00
{%if MANAGED %}
< div class = "btn-group pull-right" >
2014-11-26 12:18:55 +00:00
< a class = "btn" id = "new-project-button" href = "{% url 'newproject' %}" > New project< / a >
2014-11-11 16:30:22 +00:00
< / div >
<!-- New build popover -->
< div class = "btn-group pull-right" id = "new-build-button" >
2014-12-05 15:19:55 +00:00
< button class = "btn dropdown-toggle" data-toggle = "dropdown" >
2014-11-11 16:30:22 +00:00
New build
< i class = "icon-caret-down" > < / i >
< / button >
< ul class = "dropdown-menu new-build multi-select" >
< li >
< h3 > New build< / h3 >
< h6 > Project:< / h6 >
< span id = "project" >
< a class = "lead" href = "{% if project.id %}{% url 'project' project.id %}{% endif %}" > {{project.name}}< / a >
< i class = "icon-pencil" > < / i >
< / span >
< form id = "change-project-form" style = "display:none;" >
< div class = "input-append" >
2014-12-05 15:19:55 +00:00
< 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" / >
2014-11-11 16:30:22 +00:00
< button id = "save-project-button" class = "btn" type = "button" > Save< / button >
< a href = "#" id = "cancel-change-project" class = "btn btn-link" > Cancel< / a >
< / div >
2014-11-18 12:02:22 +00:00
< p > < a id = "view-all-projects" href = "{% url 'all-projects' %}" > View all projects< / a > < / p >
2014-11-11 16:30:22 +00:00
< / form >
< / li >
< div class = "alert" style = "display:none" >
This project's configuration is incomplete,< br / > so you cannot run builds.< br / >
2014-11-18 12:02:22 +00:00
< p > < a href = "{% if project.id %}{% url 'project' project.id %}{% endif %}" > View project configuration< / a > < / p >
2014-11-11 16:30:22 +00:00
< / div >
< li id = "targets-form" >
2015-03-26 16:47:02 +00:00
< h6 > Recipe(s):< / h6 >
2014-11-11 16:30:22 +00:00
< form >
2015-03-26 16:47:02 +00:00
< input type = "text" class = "input-xlarge" id = "build-target-input" placeholder = "Type a recipe name" autocomplete = "off" data-minLength = "1" data-autocomplete = "off" data-provide = "typeahead" / >
2014-11-11 16:30:22 +00:00
< div >
< a class = "btn btn-primary" id = "build-button" disabled = "disabled" data-project-id = "{{project.id}}" > Build< / a >
< / div >
< / form >
< / li >
< / ul >
< / div >
{%endif%}
2013-12-11 16:42:34 +00:00
< / div >
2013-10-11 12:46:23 +00:00
< / div >
2013-12-11 16:42:34 +00:00
< div class = "container-fluid" >
2013-10-11 12:46:23 +00:00
{% block pagecontent %}
{% endblock %}
< / div >
< / body >
< / html >