]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
toaster: Make the builds view the project page for "command line builds"
authorElliot Smith <elliot.smith@intel.com>
Fri, 2 Oct 2015 07:14:42 +0000 (08:14 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 16 Oct 2015 13:59:41 +0000 (14:59 +0100)
commit3ea10f4c16a557e94781251f6776b13acb8e9eba
tree7922cd4185c8b2561b13b219f7b4fd286969b246
parentb67ac9e7cbab50951847dd1a63b12f41bb345dbb
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]

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>
lib/toaster/toastergui/templates/base.html
lib/toaster/toastergui/templates/builds.html
lib/toaster/toastergui/templates/mrb_section.html
lib/toaster/toastergui/templates/projects.html
lib/toaster/toastergui/templatetags/project_url_tag.py [new file with mode: 0644]
lib/toaster/toastergui/tests.py