Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | {% extends "base.html" %} |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 2 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 3 | {% load projecttags %} |
| 4 | {% load humanize %} |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 5 | |
| 6 | {% block title %} {{title}} - {{project.name}} - Toaster {% endblock %} |
| 7 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 8 | {% block pagecontent %} |
| 9 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 10 | <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 Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 20 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 21 | $("#topbar-configuration-tab").addClass("active") |
| 22 | }); |
| 23 | </script> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 24 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 25 | <!-- only on config pages --> |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 26 | <div id="config-nav" class="col-md-2"> |
| 27 | <ul class="nav nav-pills nav-stacked"> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 28 | <li><a class="nav-parent" href="{% url 'project' project.id %}">Configuration</a></li> |
| 29 | <li class="nav-header">Compatible metadata</li> |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 30 | <li><a href="{% url 'projectcustomimages' project.id %}">Custom images</a></li> |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 31 | <li><a href="{% url 'projectimagerecipes' project.id %}">Image recipes</a></li> |
| 32 | <li><a href="{% url 'projectsoftwarerecipes' project.id %}">Software recipes</a></li> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 33 | <li><a href="{% url 'projectmachines' project.id %}">Machines</a></li> |
| 34 | <li><a href="{% url 'projectlayers' project.id %}">Layers</a></li> |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 35 | <li><a href="{% url 'projectdistros' project.id %}">Distros</a></li> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 36 | <li class="nav-header">Extra configuration</li> |
| 37 | <li><a href="{% url 'projectconf' project.id %}">BitBake variables</a></li> |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 38 | |
| 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 Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 44 | </ul> |
| 45 | </div> |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 46 | <div class="col-md-10"> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 47 | {% block projectinfomain %}{% endblock %} |
| 48 | </div> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 49 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 50 | </div> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 51 | {% endblock %} |
| 52 | |