diff options
| author | Belen Barros Pena <belen.barros.pena@intel.com> | 2016-02-24 13:49:38 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-26 17:20:33 +0000 |
| commit | 149f57470cacf029febc4c1c9de499faba141466 (patch) | |
| tree | 5b71634b4a769b611c72cc1745ea63f8f1ad38e0 /bitbake/lib | |
| parent | 4a12865c7b8a534ac7f7c1380c549c5392eda5f5 (diff) | |
| download | poky-149f57470cacf029febc4c1c9de499faba141466.tar.gz | |
bitbake: toaster: custom breadcrumb for the default project
The default "Command line builds" project does not have a Configuration
page. It therefore needs a custom breadcrumb where the project name goes
to the project builds page, instead of the project configuration page.
(Bitbake rev: 5545acf6703a25ee46776138bbbd804615add89c)
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')
| -rw-r--r-- | bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html | 7 | ||||
| -rw-r--r-- | bitbake/lib/toaster/toastergui/templates/basebuildpage.html | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html b/bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html index e350c1a859..a62e0b1cb8 100644 --- a/bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html +++ b/bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | {% extends "base.html" %} | 1 | {% extends "base.html" %} |
| 2 | {% load project_url_tag %} | ||
| 2 | {% load humanize %} | 3 | {% load humanize %} |
| 3 | {% block pagecontent %} | 4 | {% block pagecontent %} |
| 4 | 5 | ||
| @@ -6,8 +7,10 @@ | |||
| 6 | <!-- Breadcrumbs --> | 7 | <!-- Breadcrumbs --> |
| 7 | <div class="section"> | 8 | <div class="section"> |
| 8 | <ul class="breadcrumb" id="breadcrumb"> | 9 | <ul class="breadcrumb" id="breadcrumb"> |
| 9 | <li><a href="{% url 'project' build.project.id %}">{{build.project.name}}</a></li> | 10 | <li><a href="{% project_url build.project %}">{{build.project.name}}</a></li> |
| 10 | <li><a href="{% url 'projectbuilds' build.project.id %}">Builds</a></li> | 11 | {% if not build.project.is_default %} |
| 12 | <li><a href="{% url 'projectbuilds' build.project.id %}">Builds</a></li> | ||
| 13 | {% endif %} | ||
| 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> | 14 | <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 %} | 15 | {% block localbreadcrumb %}{% endblock %} |
| 13 | </ul> | 16 | </ul> |
diff --git a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html index 35718694ea..0dc71f5e5e 100644 --- a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html +++ b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | {% extends "base.html" %} | 1 | {% extends "base.html" %} |
| 2 | {% load projecttags %} | 2 | {% load projecttags %} |
| 3 | {% load project_url_tag %} | ||
| 3 | {% load humanize %} | 4 | {% load humanize %} |
| 4 | {% block pagecontent %} | 5 | {% block pagecontent %} |
| 5 | 6 | ||
| @@ -8,8 +9,10 @@ | |||
| 8 | <!-- Breadcrumbs --> | 9 | <!-- Breadcrumbs --> |
| 9 | <div class="section"> | 10 | <div class="section"> |
| 10 | <ul class="breadcrumb" id="breadcrumb"> | 11 | <ul class="breadcrumb" id="breadcrumb"> |
| 11 | <li><a href="{% url 'project' build.project.id %}">{{build.project.name}}</a></li> | 12 | <li><a href="{% project_url build.project %}">{{build.project.name}}</a></li> |
| 12 | <li><a href="{% url 'projectbuilds' build.project.id %}">Builds</a></li> | 13 | {% if not build.project.is_default %} |
| 14 | <li><a href="{% url 'projectbuilds' build.project.id %}">Builds</a></li> | ||
| 15 | {% endif %} | ||
| 13 | <li> | 16 | <li> |
| 14 | {% block parentbreadcrumb %} | 17 | {% block parentbreadcrumb %} |
| 15 | <a href="{%url 'builddashboard' build.pk%}"> | 18 | <a href="{%url 'builddashboard' build.pk%}"> |
