diff options
author | Elliot Smith <elliot.smith@intel.com> | 2016-07-21 18:42:35 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-25 09:24:36 +0100 |
commit | d6e88b7b410b6b99b47b031111a1126da9fd31b3 (patch) | |
tree | bd2e58934a575ce227d8bb64e4fc7d14c6d81f6e /lib | |
parent | df7f4897c463a48c45514e2bcbd44cc7f86c4bb0 (diff) | |
download | bitbake-contrib-d6e88b7b410b6b99b47b031111a1126da9fd31b3.tar.gz |
toaster: fix download URL for task logs
The task display template formatting had split the Django
url template tag across two lines and broken it. This resulted
in a gibberish URL for task logs.
Fix by placing the tag and its arguments on a single line.
[YOCTO #9837]
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/toaster/toastergui/templates/task.html | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/toaster/toastergui/templates/task.html b/lib/toaster/toastergui/templates/task.html index 86789bd0b..214c77783 100644 --- a/lib/toaster/toastergui/templates/task.html +++ b/lib/toaster/toastergui/templates/task.html @@ -25,8 +25,10 @@ {%if task.task_executed %} {# executed tasks outcome #} {% if task.logfile %} - <a class="btn btn-default btn-lg" href="{% url 'build_artifact' build.id - "tasklogfile" task.pk %}">Download task log</a> + <a class="btn btn-default btn-lg" + href="{% url 'build_artifact' build.id 'tasklogfile' task.pk %}"> + Download task log + </a> {% endif %} {# show stack trace for failed task #} {% if task.outcome == task.OUTCOME_FAILED and log_head %} @@ -156,8 +158,10 @@ this prebuilt task is reusing"></span></a> {%elif task.outcome == task.OUTCOME_CACHED%} {% for t in task.get_related_setscene %} {% if forloop.last %} - <a class="btn btn-default btn-lg" href="{% url - 'build_artifact' build.id "tasklogfile" t.pk %}">Download task log</a> + <a class="btn btn-default btn-lg" + href="{% url 'build_artifact' build.id "tasklogfile" t.pk %}"> + Download task log + </a> {% endif %} {% endfor %} |