diff options
author | Elliot Smith <elliot.smith@intel.com> | 2015-10-02 08:14:42 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-16 14:59:59 +0100 |
commit | da4c6144f1125ac94f1ba515f97a433a983b7662 (patch) | |
tree | 09f40037ea1bf5eca452d648aeeb8fa070540a9a /bitbake/lib/toaster/toastergui/templates/projects.html | |
parent | ef6fc2bc1a4eeafdf5eda112ffb72bfed24b85d5 (diff) | |
download | poky-da4c6144f1125ac94f1ba515f97a433a983b7662.tar.gz |
bitbake: toaster: Make the builds view the project page for "command line builds"
Command line builds don't have configuration or layers which can
be manipulated in Toaster, so these pages shouldn't be visible.
However, the configuration page is the default page for the
project view (/project/X/), which isn't correct for the
command line builds project.
Modify all project page links across the application so that
the command line builds project (aka the "default" project)
always displays the builds tab.
Add a project_url tag for templates which contains the logic
determining where the URL for a project links to, based on
whether it is the default project or not.
[YOCTO #8231]
(Bitbake rev: 3ea10f4c16a557e94781251f6776b13acb8e9eba)
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/projects.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/projects.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/projects.html b/bitbake/lib/toaster/toastergui/templates/projects.html index a7192c2d72..7c612e8c43 100644 --- a/bitbake/lib/toaster/toastergui/templates/projects.html +++ b/bitbake/lib/toaster/toastergui/templates/projects.html | |||
@@ -2,6 +2,7 @@ | |||
2 | 2 | ||
3 | {% load static %} | 3 | {% load static %} |
4 | {% load projecttags %} | 4 | {% load projecttags %} |
5 | {% load project_url_tag %} | ||
5 | {% load humanize %} | 6 | {% load humanize %} |
6 | 7 | ||
7 | {% block pagecontent %} | 8 | {% block pagecontent %} |
@@ -37,8 +38,10 @@ | |||
37 | {% include "basetable_top.html" %} | 38 | {% include "basetable_top.html" %} |
38 | {% for o in objects %} | 39 | {% for o in objects %} |
39 | <tr class="data" data-project="{{ o.id }}"> | 40 | <tr class="data" data-project="{{ o.id }}"> |
40 | <td><a href="{% url 'project' o.id %}">{{o.name}}</a></td> | 41 | <td data-project-field="name"> |
41 | <td class="updated"><a href="{% url 'project' o.id %}">{{o.updated|date:"d/m/y H:i"}}</a></td> | 42 | <a href="{% project_url o %}">{{o.name}}</a> |
43 | </td> | ||
44 | <td class="updated"><a href="{% project_url o %}">{{o.updated|date:"d/m/y H:i"}}</a></td> | ||
42 | <td data-project-field="release"> | 45 | <td data-project-field="release"> |
43 | {% if o.release %} | 46 | {% if o.release %} |
44 | <a href="{% url 'project' o.id %}#project-details">{{o.release.name}}</a> | 47 | <a href="{% url 'project' o.id %}#project-details">{{o.release.name}}</a> |