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 | |
| 10 | {% include "projecttopbar.html" %} |
| 11 | <script type="text/javascript"> |
| 12 | $(document).ready(function(){ |
| 13 | $("#config-nav .nav li a").each(function(){ |
| 14 | if (window.location.pathname === $(this).attr('href')) |
| 15 | $(this).parent().addClass('active'); |
| 16 | else |
| 17 | $(this).parent().removeClass('active'); |
| 18 | }); |
| 19 | |
| 20 | $("#topbar-configuration-tab").addClass("active") |
| 21 | }); |
| 22 | </script> |
| 23 | |
| 24 | <div class="row-fluid"> |
| 25 | <!-- only on config pages --> |
| 26 | <div id="config-nav" class="span2"> |
| 27 | <ul class="nav nav-list well"> |
| 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> |
| 35 | <li class="nav-header">Extra configuration</li> |
| 36 | <li><a href="{% url 'projectconf' project.id %}">BitBake variables</a></li> |
| 37 | </ul> |
| 38 | </div> |
| 39 | <div class="span10"> |
| 40 | {% block projectinfomain %}{% endblock %} |
| 41 | </div> |
| 42 | </div> |
| 43 | |
| 44 | {% endblock %} |
| 45 | |