2015-11-13 15:28:07 +00:00
{% load static %}
< script src = "{% static 'js/projecttopbar.js' %}" > < / script >
< script >
$(document).ready(function () {
var ctx = {
numProjectLayers : {{project.get_project_layer_versions.count}},
machine : "{{project.get_current_machine_name|default_if_none:""}}",
}
try {
projectTopBarInit(ctx);
} catch (e) {
document.write("Sorry, An error has occurred loading this page");
console.warn(e);
}
});
< / script >
2016-04-12 14:56:43 +00:00
< div class = "col-md-12" >
< div class = "alert alert-success alert-dismissible change-notification" id = "project-created-notification" style = "display:none" >
< button type = "button" class = "close" data-dismiss = "alert" > × < / button >
< p > Your project < strong > {{project.name}}< / strong > has been created. You can now < a class = "alert-link" href = "{% url 'projectmachines' project.id %}" > select your target machine< / a > and < a class = "alert-link" href = "{% url 'projectimagerecipes' project.id %}" > choose image recipes< / a > to build.< / p >
< / div >
<!-- project name -->
< div class = "page-header" >
< h1 id = "project-name-container" >
< span id = "project-name" > {{project.name}}< / span >
2015-10-02 13:23:35 +00:00
2016-04-12 14:56:43 +00:00
< span class = "glyphicon glyphicon-edit" id = "project-change-form-toggle" > < / i >
2015-10-02 13:23:35 +00:00
2016-04-12 14:56:43 +00:00
{% if project.is_default %}
< span class = "glyphicon glyphicon-question-sign get-help" title = "This project shows information about the builds you start from the command line while Toaster is running" > < / span >
{% endif %}
< / h1 >
< form id = "project-name-change-form" class = "form-inline" style = "display: none;" >
< div class = "form-group" >
< input class = "form-control input-lg" type = "text" id = "project-name-change-input" autocomplete = "off" value = "{{project.name}}" >
< / div >
< button id = "project-name-change-btn" class = "btn btn-default btn-lg" type = "button" > Save< / button >
< a href = "#" id = "project-name-change-cancel" class = "btn btn-lg btn-link" > Cancel< / a >
< / form >
< / div >
2015-07-31 12:09:03 +00:00
2016-04-12 14:56:43 +00:00
{% if not project.is_default %}
2015-10-02 13:23:35 +00:00
< div id = "project-topbar" >
2016-04-12 14:56:43 +00:00
< ul class = "nav nav-tabs" >
2015-10-02 13:23:35 +00:00
< li id = "topbar-configuration-tab" >
2016-04-12 14:56:43 +00:00
< a href = "{% url 'project' project.id %}" >
Configuration
< / a >
2015-10-02 13:23:35 +00:00
< / li >
2016-02-22 09:08:38 +00:00
< li >
2016-04-12 14:56:43 +00:00
< a href = "{% url 'projectbuilds' project.id %}" >
Builds ({{project.get_number_of_builds}})
< / a >
2016-02-22 09:08:38 +00:00
< / li >
2015-10-02 13:23:35 +00:00
< li >
2016-04-12 14:56:43 +00:00
< a href = "{% url 'importlayer' project.id %}" >
Import layer
< / a >
2015-10-02 13:23:35 +00:00
< / li >
< li >
2016-04-12 14:56:43 +00:00
< a href = "{% url 'newcustomimage' project.id %}" >
New custom image
< / a >
2015-10-02 13:23:35 +00:00
< / li >
< li class = "pull-right" >
2016-04-12 14:56:43 +00:00
< form class = "form-inline" >
< div class = "form-group" >
< span class = "glyphicon glyphicon-question-sign get-help" data-placement = "left" title = "Type the name of one or more recipes you want to build, separated by a space. You can also specify a task by appending a colon and a task name to the recipe name, like so: <code>busybox:clean</code>" > < / span >
< input id = "build-input" type = "text" class = "form-control input-lg" placeholder = "Type the recipe you want to build" autocomplete = "off" disabled >
2015-10-02 13:23:35 +00:00
< / div >
2016-04-12 14:56:43 +00:00
< button id = "build-button" class = "btn btn-primary btn-lg" data-project-id = "{{project.id}}" disabled > Build< / button >
2015-10-02 13:23:35 +00:00
< / form >
< / li >
< / ul >
< / div >
2016-04-12 14:56:43 +00:00
{% endif %}
< / div >