summaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui/templates/builddashboard.html
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2014-10-14 13:57:33 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-10-30 13:39:37 +0000
commit5fce7f6e83c6143244faa9618b7ed20c1106e08f (patch)
tree9c41765bbb190798f4f723469f40196654aa39ed /lib/toaster/toastergui/templates/builddashboard.html
parent7c333350418c4140e6c988c5272940f8057d327d (diff)
downloadbitbake-5fce7f6e83c6143244faa9618b7ed20c1106e08f.tar.gz
toastergui: provide download file capability
We add, for the localhost environments, the capability to download build artifacts. This is a pontentially dangerous API, because it gives unrestricted read access to the build environment file system - do not expose the functionality directly to the web layer, but use filtering/translation code, such as exemplified in the build_artifact view. The capability for remote build environments is dependent on bug 6835, as to use the collect storage as intermediary storage for serving files. [YOCTO #6834] Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Diffstat (limited to 'lib/toaster/toastergui/templates/builddashboard.html')
-rw-r--r--lib/toaster/toastergui/templates/builddashboard.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/toaster/toastergui/templates/builddashboard.html b/lib/toaster/toastergui/templates/builddashboard.html
index 8a6709cfe..2aa7b6bcf 100644
--- a/lib/toaster/toastergui/templates/builddashboard.html
+++ b/lib/toaster/toastergui/templates/builddashboard.html
@@ -58,7 +58,11 @@
<div class="span10">
{% for error in logmessages %}{% if error.level == 2 %}
<div class="alert alert-error">
+ {% if MANAGED and error.pathname %}
+ <pre><a href="{% url 'build_artifact' build.pk 'logmessagefile' error.pk %}" target="_blanc">{{error.message}}</pre>
+ {% else %}
<pre>{{error.message}}</pre>
+ {% endif %}
</div>
{% endif %}{% endfor %}
</div>