diff options
author | David Reyna <David.Reyna@windriver.com> | 2014-03-24 19:50:50 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-28 13:44:51 +0000 |
commit | 056fbc47c76f5ff238fb01302f0dce457dabc08d (patch) | |
tree | fba1b27c46050583b0d676bc9903a64c4c0bcda9 /bitbake/lib/toaster/toastergui/templates/tasks.html | |
parent | 405e190b314db29e1332c56376dff026a9631202 (diff) | |
download | poky-056fbc47c76f5ff238fb01302f0dce457dabc08d.tar.gz |
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>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/tasks.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/tasks.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/tasks.html b/bitbake/lib/toaster/toastergui/templates/tasks.html index ace30de3eb..8c73dc230e 100644 --- a/bitbake/lib/toaster/toastergui/templates/tasks.html +++ b/bitbake/lib/toaster/toastergui/templates/tasks.html | |||
@@ -1,9 +1,39 @@ | |||
1 | {% extends "basebuildpage.html" %} | 1 | {% extends "basebuildpage.html" %} |
2 | {% load projecttags %} | 2 | {% load projecttags %} |
3 | |||
3 | {% block localbreadcrumb %} | 4 | {% block localbreadcrumb %} |
4 | <li>{{title}}</li> | 5 | <li>{{title}}</li> |
5 | {% endblock %} | 6 | {% endblock %} |
6 | 7 | ||
8 | {% block nav-tasks %} | ||
9 | {% if 'Tasks' == title %} | ||
10 | <li class="active"><a href="{% url 'tasks' build.pk %}">Tasks</a></li> | ||
11 | {% else %} | ||
12 | <li><a href="{% url 'tasks' build.pk %}">Tasks</a></li> | ||
13 | {% endif %} | ||
14 | {% endblock %} | ||
15 | {% block nav-buildtime %} | ||
16 | {% if 'Time' == title %} | ||
17 | <li class="active"><a href="{% url 'buildtime' build.pk %}">Time</a></li> | ||
18 | {% else %} | ||
19 | <li><a href="{% url 'buildtime' build.pk %}">Time</a></li> | ||
20 | {% endif %} | ||
21 | {% endblock %} | ||
22 | {% block nav-cpuusage %} | ||
23 | {% if 'CPU usage' == title %} | ||
24 | <li class="active"><a href="{% url 'cpuusage' build.pk %}">CPU usage</a></li> | ||
25 | {% else %} | ||
26 | <li><a href="{% url 'cpuusage' build.pk %}">CPU usage</a></li> | ||
27 | {% endif %} | ||
28 | {% endblock %} | ||
29 | {% block nav-diskio %} | ||
30 | {% if 'Disk I/O' == title %} | ||
31 | <li class="active"><a href="{% url 'diskio' build.pk %}">Disk I/O</a></li> | ||
32 | {% else %} | ||
33 | <li><a href="{% url 'diskio' build.pk %}">Disk I/O</a></li> | ||
34 | {% endif %} | ||
35 | {% endblock %} | ||
36 | |||
7 | {% block buildinfomain %} | 37 | {% block buildinfomain %} |
8 | <div class="span10"> | 38 | <div class="span10"> |
9 | <div class="page-header"> | 39 | <div class="page-header"> |