Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | {% extends "base.html" %} |
| 2 | {% load projecttags %} |
| 3 | {% load humanize %} |
| 4 | {% block pagecontent %} |
| 5 | |
| 6 | |
| 7 | <div class=""> |
| 8 | <!-- Breadcrumbs --> |
| 9 | <div class="section"> |
| 10 | <ul class="breadcrumb" id="breadcrumb"> |
| 11 | <li class="muted">{{build.project.name}}:</li> |
| 12 | <li><a href="{% url 'projectbuilds' build.project.id %}">Builds</a></li> |
| 13 | <li> |
| 14 | {% block parentbreadcrumb %} |
| 15 | <a href="{%url 'builddashboard' build.pk%}"> |
| 16 | {{build.get_sorted_target_list.0.target}} {%if build.target_set.all.count > 1%}(+ {{build.target_set.all.count|add:"-1"}}){%endif%} ({{build.completed_on|date:"d/m/y H:i"}}) |
| 17 | </a> |
| 18 | {% endblock %} |
| 19 | </li> |
| 20 | {% block localbreadcrumb %}{% endblock %} |
| 21 | </ul> |
| 22 | <script> |
| 23 | $( function () { |
| 24 | $('#breadcrumb > li').append('<span class="divider">→</span>'); |
| 25 | $('#breadcrumb > li:last').addClass("active"); |
| 26 | $('#breadcrumb > li:last > span, #breadcrumb > li:first > span').remove(); |
| 27 | console.log("done"); |
| 28 | }); |
| 29 | </script> |
| 30 | </div> |
| 31 | |
| 32 | <div class="row-fluid"> |
| 33 | |
| 34 | <!-- begin left sidebar container --> |
| 35 | <div id="nav" class="span2"> |
| 36 | <ul class="nav nav-list well"> |
| 37 | <li |
| 38 | {% if request.resolver_match.url_name == 'builddashboard' %} |
| 39 | class="active" |
| 40 | {% endif %} > |
| 41 | <a class="nav-parent" href="{% url 'builddashboard' build.pk %}">Build summary</a> |
| 42 | </li> |
| 43 | {% if build.target_set.all.0.is_image and build.outcome == 0 %} |
| 44 | <li class="nav-header">Images</li> |
| 45 | {% block nav-target %} |
| 46 | {% for t in build.get_sorted_target_list %} |
| 47 | <li><a href="{% url 'target' build.pk t.pk %}">{{t.target}}</a><li> |
| 48 | {% endfor %} |
| 49 | {% endblock %} |
| 50 | {% endif %} |
| 51 | <li class="nav-header">Build</li> |
| 52 | {% block nav-configuration %} |
| 53 | <li><a href="{% url 'configuration' build.pk %}">Configuration</a></li> |
| 54 | {% endblock %} |
| 55 | {% block nav-tasks %} |
| 56 | <li><a href="{% url 'tasks' build.pk %}">Tasks</a></li> |
| 57 | {% endblock %} |
| 58 | {% block nav-recipes %} |
| 59 | <li><a href="{% url 'recipes' build.pk %}">Recipes</a></li> |
| 60 | {% endblock %} |
| 61 | {% block nav-packages %} |
| 62 | <li><a href="{% url 'packages' build.pk %}">Packages</a></li> |
| 63 | {% endblock %} |
| 64 | <li class="nav-header">Performance</li> |
| 65 | {% block nav-buildtime %} |
| 66 | <li><a href="{% url 'buildtime' build.pk %}">Time</a></li> |
| 67 | {% endblock %} |
| 68 | {% block nav-cpuusage %} |
| 69 | <li><a href="{% url 'cpuusage' build.pk %}">CPU usage</a></li> |
| 70 | {% endblock %} |
| 71 | {% block nav-diskio %} |
| 72 | <li><a href="{% url 'diskio' build.pk %}">Disk I/O</a></li> |
| 73 | {% endblock %} |
| 74 | </ul> |
| 75 | </div> |
| 76 | <!-- end left sidebar container --> |
| 77 | |
| 78 | <!-- Begin right container --> |
| 79 | {% block buildinfomain %}{% endblock %} |
| 80 | <!-- End right container --> |
| 81 | |
| 82 | |
| 83 | </div> |
| 84 | </div> |
| 85 | |
| 86 | |
| 87 | {% endblock %} |
| 88 | |