diff options
author | Belen Barros Pena <belen.barros.pena@intel.com> | 2016-02-22 09:08:37 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-26 17:20:21 +0000 |
commit | e1fc3190b730aaa73fd7b004c0b7f35a6626bd24 (patch) | |
tree | 0c0b172b91525baa73130179ea1d42015cdbcb5a /bitbake/lib/toaster/toastergui/templates | |
parent | df2808f5f60736d01c11aaa247377b003899c735 (diff) | |
download | poky-e1fc3190b730aaa73fd7b004c0b7f35a6626bd24.tar.gz |
bitbake: toaster: link to configuration in all breadcrumbs
The existing breadcrumb does not always provide a link to the project
configuration page. When you are in the build history pages, you must go
back to the builds information first, and from there access the project
configuration. That feels very long.
Change the breadcrumb so that the project name item always provides a
link to the project configuration.
(Bitbake rev: 9910f3f292d35fc91215d550c5f123dcf18ab35d)
Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates')
4 files changed, 6 insertions, 11 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html b/bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html index ffe7aa4f8d..e350c1a859 100644 --- a/bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html +++ b/bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html | |||
@@ -6,7 +6,7 @@ | |||
6 | <!-- Breadcrumbs --> | 6 | <!-- Breadcrumbs --> |
7 | <div class="section"> | 7 | <div class="section"> |
8 | <ul class="breadcrumb" id="breadcrumb"> | 8 | <ul class="breadcrumb" id="breadcrumb"> |
9 | <li class="muted">{{build.project.name}}:</li> | 9 | <li><a href="{% url 'project' build.project.id %}">{{build.project.name}}</a></li> |
10 | <li><a href="{% url 'projectbuilds' build.project.id %}">Builds</a></li> | 10 | <li><a href="{% url 'projectbuilds' build.project.id %}">Builds</a></li> |
11 | <li><a href="{%url 'builddashboard' build.pk%}">{{build.get_sorted_target_list.0.target}} {%if build.target_set.all.count > 1%}(+{{build.target_set.all.count|add:"-1"}}){%endif%} {{build.machine}} ({{build.completed_on|date:"d/m/y H:i"}})</a></li> | 11 | <li><a href="{%url 'builddashboard' build.pk%}">{{build.get_sorted_target_list.0.target}} {%if build.target_set.all.count > 1%}(+{{build.target_set.all.count|add:"-1"}}){%endif%} {{build.machine}} ({{build.completed_on|date:"d/m/y H:i"}})</a></li> |
12 | {% block localbreadcrumb %}{% endblock %} | 12 | {% block localbreadcrumb %}{% endblock %} |
@@ -15,7 +15,7 @@ | |||
15 | $( function () { | 15 | $( function () { |
16 | $('#breadcrumb > li').append('<span class="divider">→</span>'); | 16 | $('#breadcrumb > li').append('<span class="divider">→</span>'); |
17 | $('#breadcrumb > li:last').addClass("active"); | 17 | $('#breadcrumb > li:last').addClass("active"); |
18 | $('#breadcrumb > li:last > span, #breadcrumb > li:first > span').remove(); | 18 | $('#breadcrumb > li:last > span').remove(); |
19 | }); | 19 | }); |
20 | </script> | 20 | </script> |
21 | </div> <!--section--> | 21 | </div> <!--section--> |
diff --git a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html index a9048d3bb2..35718694ea 100644 --- a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html +++ b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html | |||
@@ -8,7 +8,7 @@ | |||
8 | <!-- Breadcrumbs --> | 8 | <!-- Breadcrumbs --> |
9 | <div class="section"> | 9 | <div class="section"> |
10 | <ul class="breadcrumb" id="breadcrumb"> | 10 | <ul class="breadcrumb" id="breadcrumb"> |
11 | <li class="muted">{{build.project.name}}:</li> | 11 | <li><a href="{% url 'project' build.project.id %}">{{build.project.name}}</a></li> |
12 | <li><a href="{% url 'projectbuilds' build.project.id %}">Builds</a></li> | 12 | <li><a href="{% url 'projectbuilds' build.project.id %}">Builds</a></li> |
13 | <li> | 13 | <li> |
14 | {% block parentbreadcrumb %} | 14 | {% block parentbreadcrumb %} |
@@ -23,7 +23,7 @@ | |||
23 | $( function () { | 23 | $( function () { |
24 | $('#breadcrumb > li').append('<span class="divider">→</span>'); | 24 | $('#breadcrumb > li').append('<span class="divider">→</span>'); |
25 | $('#breadcrumb > li:last').addClass("active"); | 25 | $('#breadcrumb > li:last').addClass("active"); |
26 | $('#breadcrumb > li:last > span, #breadcrumb > li:first > span').remove(); | 26 | $('#breadcrumb > li:last > span').remove(); |
27 | }); | 27 | }); |
28 | </script> | 28 | </script> |
29 | </div> | 29 | </div> |
diff --git a/bitbake/lib/toaster/toastergui/templates/layerdetails.html b/bitbake/lib/toaster/toastergui/templates/layerdetails.html index 7fe365da38..61ae52c2f8 100644 --- a/bitbake/lib/toaster/toastergui/templates/layerdetails.html +++ b/bitbake/lib/toaster/toastergui/templates/layerdetails.html | |||
@@ -8,9 +8,8 @@ | |||
8 | 8 | ||
9 | <div class="section"> | 9 | <div class="section"> |
10 | <ul class="breadcrumb"> | 10 | <ul class="breadcrumb"> |
11 | <li class="muted">{{project.name}}:</li> | ||
12 | <li> | 11 | <li> |
13 | <a href="{% url 'project' project.id %}">Configuration</a> | 12 | <a href="{% url 'project' project.id %}">{{project.name}}</a> |
14 | <span class="divider">→</span> | 13 | <span class="divider">→</span> |
15 | </li> | 14 | </li> |
16 | <li><a href="{% url 'projectlayers' project.id %}">Compatible layers</a> | 15 | <li><a href="{% url 'projectlayers' project.id %}">Compatible layers</a> |
@@ -46,7 +45,6 @@ | |||
46 | 45 | ||
47 | $(document).ready(function (){ | 46 | $(document).ready(function (){ |
48 | var ctx = { | 47 | var ctx = { |
49 | projectBuildsUrl : "{% url 'projectbuilds' project.id %}", | ||
50 | xhrUpdateLayerUrl : "{% url 'xhr_updatelayer' %}", | 48 | xhrUpdateLayerUrl : "{% url 'xhr_updatelayer' %}", |
51 | layerVersion : { | 49 | layerVersion : { |
52 | name : "{{layerversion.layer.name}}", | 50 | name : "{{layerversion.layer.name}}", |
diff --git a/bitbake/lib/toaster/toastergui/templates/recipedetails.html b/bitbake/lib/toaster/toastergui/templates/recipedetails.html index aed0492aeb..23aa171ce6 100644 --- a/bitbake/lib/toaster/toastergui/templates/recipedetails.html +++ b/bitbake/lib/toaster/toastergui/templates/recipedetails.html | |||
@@ -6,11 +6,8 @@ | |||
6 | 6 | ||
7 | <div class="section"> | 7 | <div class="section"> |
8 | <ul class="breadcrumb"> | 8 | <ul class="breadcrumb"> |
9 | <li class="muted"> | ||
10 | {{project.name}} | ||
11 | </li> | ||
12 | <li> | 9 | <li> |
13 | <a href="{% url 'project' project.id %}">Configuration</a> | 10 | <a href="{% url 'project' project.id %}">{{project.name}}</a> |
14 | <span class="divider">→</span> | 11 | <span class="divider">→</span> |
15 | </li> | 12 | </li> |
16 | <li> | 13 | <li> |