blob: f2bb2ebf63b38c993266fa70709eaa3136baf87a [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001{% extends "base.html" %}
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05002
Patrick Williamsc124f4f2015-09-15 14:41:29 -05003{% load projecttags %}
4{% load humanize %}
Patrick Williamsf1e5d692016-03-30 15:21:19 -05005
6{% block title %} {{title}} - {{project.name}} - Toaster {% endblock %}
7
Patrick Williamsc124f4f2015-09-15 14:41:29 -05008{% block pagecontent %}
9
Patrick Williamsc0f7c042017-02-23 20:41:17 -060010<div class="row">
11 {% include "projecttopbar.html" %}
12 <script type="text/javascript">
13$(document).ready(function(){
14 $("#config-nav .nav li a").each(function(){
15 if (window.location.pathname === $(this).attr('href'))
16 $(this).parent().addClass('active');
17 else
18 $(this).parent().removeClass('active');
19 });
Patrick Williamsc124f4f2015-09-15 14:41:29 -050020
Patrick Williamsc0f7c042017-02-23 20:41:17 -060021 $("#topbar-configuration-tab").addClass("active")
22 });
23 </script>
Patrick Williamsc124f4f2015-09-15 14:41:29 -050024
Patrick Williamsc124f4f2015-09-15 14:41:29 -050025 <!-- only on config pages -->
Patrick Williamsc0f7c042017-02-23 20:41:17 -060026 <div id="config-nav" class="col-md-2">
27 <ul class="nav nav-pills nav-stacked">
Patrick Williamsc124f4f2015-09-15 14:41:29 -050028 <li><a class="nav-parent" href="{% url 'project' project.id %}">Configuration</a></li>
29 <li class="nav-header">Compatible metadata</li>
Patrick Williamsf1e5d692016-03-30 15:21:19 -050030 <li><a href="{% url 'projectcustomimages' project.id %}">Custom images</a></li>
Patrick Williamsf1e5d692016-03-30 15:21:19 -050031 <li><a href="{% url 'projectimagerecipes' project.id %}">Image recipes</a></li>
32 <li><a href="{% url 'projectsoftwarerecipes' project.id %}">Software recipes</a></li>
Patrick Williamsc124f4f2015-09-15 14:41:29 -050033 <li><a href="{% url 'projectmachines' project.id %}">Machines</a></li>
34 <li><a href="{% url 'projectlayers' project.id %}">Layers</a></li>
Brad Bishopd7bf8c12018-02-25 22:55:05 -050035 <li><a href="{% url 'projectdistros' project.id %}">Distros</a></li>
Patrick Williamsc124f4f2015-09-15 14:41:29 -050036 <li class="nav-header">Extra configuration</li>
37 <li><a href="{% url 'projectconf' project.id %}">BitBake variables</a></li>
Patrick Williamsc0f7c042017-02-23 20:41:17 -060038
39 <li class="nav-header">Actions</li>
40 <li>
41 <a href="#delete-project-modal" role="button" class="text-danger" data-toggle="modal" data-target="#delete-project-modal">
42 <i class="icon-trash text-danger"></i> Delete project</a>
43 </li>
Patrick Williamsc124f4f2015-09-15 14:41:29 -050044 </ul>
45 </div>
Patrick Williamsc0f7c042017-02-23 20:41:17 -060046 <div class="col-md-10">
Patrick Williamsc124f4f2015-09-15 14:41:29 -050047 {% block projectinfomain %}{% endblock %}
48 </div>
Patrick Williamsc124f4f2015-09-15 14:41:29 -050049
Patrick Williamsc0f7c042017-02-23 20:41:17 -060050</div>
Patrick Williamsc124f4f2015-09-15 14:41:29 -050051{% endblock %}
52