mirror of
https://git.yoctoproject.org/poky
synced 2026-06-04 02:00:04 +00:00
bitbake: toaster: blocks for custom/highlighted navigation and breadcrumb links
Implement the navigation links as blocks so that each page can override and have its respective link appear highlighted. Make the build breadcrumb a block so that it is customizable to not be a link for the dashboard page. Reorder the page headers to be consistent order for extends, projecttags, localbreadcrumb, nav-links. [YOCTO #5916] [YOCTO #4258] (Bitbake rev: cb26c4df04170143babd6c9fd60600bfb31486ed) Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
405e190b31
commit
056fbc47c7
@@ -1,9 +1,39 @@
|
||||
{% extends "basebuildpage.html" %}
|
||||
{% load projecttags %}
|
||||
|
||||
{% block localbreadcrumb %}
|
||||
<li>{{title}}</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block nav-tasks %}
|
||||
{% if 'Tasks' == title %}
|
||||
<li class="active"><a href="{% url 'tasks' build.pk %}">Tasks</a></li>
|
||||
{% else %}
|
||||
<li><a href="{% url 'tasks' build.pk %}">Tasks</a></li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% block nav-buildtime %}
|
||||
{% if 'Time' == title %}
|
||||
<li class="active"><a href="{% url 'buildtime' build.pk %}">Time</a></li>
|
||||
{% else %}
|
||||
<li><a href="{% url 'buildtime' build.pk %}">Time</a></li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% block nav-cpuusage %}
|
||||
{% if 'CPU usage' == title %}
|
||||
<li class="active"><a href="{% url 'cpuusage' build.pk %}">CPU usage</a></li>
|
||||
{% else %}
|
||||
<li><a href="{% url 'cpuusage' build.pk %}">CPU usage</a></li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% block nav-diskio %}
|
||||
{% if 'Disk I/O' == title %}
|
||||
<li class="active"><a href="{% url 'diskio' build.pk %}">Disk I/O</a></li>
|
||||
{% else %}
|
||||
<li><a href="{% url 'diskio' build.pk %}">Disk I/O</a></li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block buildinfomain %}
|
||||
<div class="span10">
|
||||
<div class="page-header">
|
||||
|
||||
Reference in New Issue
Block a user