Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | {% extends "base.html" %} |
| 2 | {% load projecttags %} |
| 3 | {% load humanize %} |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 4 | |
| 5 | {% block title %} {{title}} - {{project.name}} - Toaster {% endblock %} |
| 6 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 7 | {% block pagecontent %} |
| 8 | |
| 9 | {% include "projecttopbar.html" %} |
| 10 | <script type="text/javascript"> |
| 11 | $(document).ready(function(){ |
| 12 | $("#config-nav .nav li a").each(function(){ |
| 13 | if (window.location.pathname === $(this).attr('href')) |
| 14 | $(this).parent().addClass('active'); |
| 15 | else |
| 16 | $(this).parent().removeClass('active'); |
| 17 | }); |
| 18 | |
| 19 | $("#topbar-configuration-tab").addClass("active") |
| 20 | }); |
| 21 | </script> |
| 22 | |
| 23 | <div class="row-fluid"> |
| 24 | <!-- only on config pages --> |
| 25 | <div id="config-nav" class="span2"> |
| 26 | <ul class="nav nav-list well"> |
| 27 | <li><a class="nav-parent" href="{% url 'project' project.id %}">Configuration</a></li> |
| 28 | <li class="nav-header">Compatible metadata</li> |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 29 | {% if CUSTOM_IMAGE %} |
| 30 | <li><a href="{% url 'projectcustomimages' project.id %}">Custom images</a></li> |
| 31 | {% endif %} |
| 32 | <li><a href="{% url 'projectimagerecipes' project.id %}">Image recipes</a></li> |
| 33 | <li><a href="{% url 'projectsoftwarerecipes' project.id %}">Software recipes</a></li> |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 34 | <li><a href="{% url 'projectmachines' project.id %}">Machines</a></li> |
| 35 | <li><a href="{% url 'projectlayers' project.id %}">Layers</a></li> |
| 36 | <li class="nav-header">Extra configuration</li> |
| 37 | <li><a href="{% url 'projectconf' project.id %}">BitBake variables</a></li> |
| 38 | </ul> |
| 39 | </div> |
| 40 | <div class="span10"> |
| 41 | {% block projectinfomain %}{% endblock %} |
| 42 | </div> |
| 43 | </div> |
| 44 | |
| 45 | {% endblock %} |
| 46 | |