toaster: Bring back the download icon
PATCH 1/1 toaster: Bring back the download icon
From: Belen Barros Pena <[email protected]>
The 'all builds' page was missing the download icon next to the outcome icon, which allows you to download a build log from the 'all builds' page.
This patch brings it back.
--- bitbake/lib/toaster/toastergui/templates/builds.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
bitbake/lib/toaster/toastergui/templates/builds.html +7 -1
@@ -62,7 +62,13 @@ {% for build in objects %} <tr class="data" data-table-build-result="{{ build.id }}"> <td class="outcome"> - <a href="{% url "builddashboard" build.id %}">{%if build.outcome == build.SUCCEEDED%}<i class="icon-ok-sign success"></i>{%elif build.outcome == build.FAILED%}<i class="icon-minus-sign error"></i>{%else%}{%endif%}</a> + <a href="{% url "builddashboard" build.id %}">{%if build.outcome == build.SUCCEEDED%}<i class="icon-ok-sign success"></i>{%elif build.outcome == build.FAILED%}<i class="icon-minus-sign error"></i>{%else%}{%endif%}</a> + {% if build.project %} + + <a href="{% url 'build_artifact' build.id "cookerlog" build.id %}"> + <i class="icon-download-alt" title="" data-original-title="Download build log"></i> + </a> + {% endif %} </td> <td class="target"> {% for t in build.target_set.all %}
Signature · 1 line
2.4.9 (Apple Git-60)
Quoted 22 lines · Belen Barros Pena
From: Belen Barros Pena <[email protected]>
The 'all builds' page was missing the download icon next to the outcome icon, which allows you to download a build log from the 'all builds' page.
This patch brings it back.
Signed-off-by Belen Barros Pena <[email protected]>--- bitbake/lib/toaster/toastergui/templates/builds.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)bitbake/lib/toaster/toastergui/templates/builds.html +0
-1@@ -62,7 +62,13 @@ {% for build in objects %} <tr class="data" data-table-build-result="{{ build.id }}"> <td class="outcome"> - <a href="{% url "builddashboard" build.id %}">{%if build.outcome == build.SUCCEEDED%}<i class="icon-ok-sign success"></i>{%elif build.outcome == build.FAILED%}<i class="icon-minus-sign error"></i>{%else%}{%endif%}</a>
bitbake/lib/toaster/toastergui/templates/builds.html line 74
Quoted 10 lines
bitbake/lib/toaster/toastergui/templates/builds.html +7
-0+ <a href="{% url "builddashboard" build.id %}">{%if build.outcome == build.SUCCEEDED%}<i class="icon-ok-sign success"></i>{%elif build.outcome == build.FAILED%}<i class="icon-minus-sign error"></i>{%else%}{%endif%}</a> + {% if build.project %} + + <a href="{% url 'build_artifact' build.id "cookerlog" build.id %}"> + <i class="icon-download-alt" title="" data-original-title="Download build log"></i> + </a> + {% endif %} </td> <td class="target"> {% for t in build.target_set.all %}
Could you format the template logic on that first line so that there is indentation in the logic sequence, for ease of reading. To avoid an empty else statement it's better to switch round the logic to be inclusive.
Something more like
{% if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %} <a href="{% url "builddashboard" build.id %}"> <i class=" {% if build.outcome == build.SUCCEEDED %} icon-ok-sign success {% elif build.outcome == build.FAILED %} icon-minus-sign error {% endif %} "></i> </a> {% endif %}
more info on https://wiki.yoctoproject.org/wiki/Contribute_to_Toaster#Templates
Thanks
Michael
Quoted 11 lines · Michael Wood
Quoted 8 lines · Belen Barros Pena
From: Belen Barros Pena <[email protected]>
The 'all builds' page was missing the download icon next to the outcome icon, which allows you to download a build log from the 'all builds' page.
This patch brings it back.
Did this ever get a v2, incorporating Michael's comments?
Elliot
Quoted 61 lines
Quoted 30 lines
Signed-off-by Belen Barros Pena <[email protected]>--- bitbake/lib/toaster/toastergui/templates/builds.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)bitbake/lib/toaster/toastergui/templates/builds.html +0
-1@@ -62,7 +62,13 @@ {% for build in objects %} <tr class="data" data-table-build-result="{{ build.id }}"> <td class="outcome"> - <a href="{% url "builddashboard" build.id %}">{%ifbuild.outcome == build.SUCCEEDED%}<i class="icon-ok-sign success"></i>{%elif build.outcome == build.FAILED%}<i class="icon-minus-sign error"></i>{%else%}{%endif%}</a>
+ <a href="{% url "builddashboard" build.id %}">{%if
build.outcome == build.SUCCEEDED%}<i class="icon-ok-sign success"></i>{%elif build.outcome == build.FAILED%}<i class="icon-minus-sign error"></i>{%else%}{%endif%}</a>bitbake/lib/toaster/toastergui/templates/builds.html +3
-0+ {% if build.project %} + + <a href="{% url 'build_artifact' build.id "cookerlog"build.id %}">
+ <i class="icon-download-alt" title=""
data-original-title="Download build log"></i>bitbake/lib/toaster/toastergui/templates/builds.html line 74
Quoted 5 lines
bitbake/lib/toaster/toastergui/templates/builds.html +2
-0+ </a> + {% endif %} </td> <td class="target"> {% for t in build.target_set.all %}Could you format the template logic on that first line so that there is indentation in the logic sequence, for ease of reading. To avoid an empty else statement it's better to switch round the logic to be inclusive.
Something more like
{% if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %} <a href="{% url "builddashboard" build.id %}"> <i class=" {% if build.outcome == build.SUCCEEDED %} icon-ok-sign success {% elif build.outcome == build.FAILED %} icon-minus-sign error {% endif %} "></i> </a> {% endif %}
more info on
https://wiki.yoctoproject.org/wiki/Contribute_to_Toaster#TemplatesThanks
Michael
--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster
Signature · 3 lines
Elliot Smith Software Engineer Intel Open Source Technology Centre
Quoted 7 lines · Elliot
On 10 November 2015 at 15:33, Michael Wood
<[email protected]> wrote:On 10/11/15 14:51, Belen Barros Pena wrote:
From: Belen Barros Pena <[email protected]>
Quoted 7 lines
The 'all builds' page was missing the download icon next to the outcome icon, which allows you to download a build log from the 'all builds' page.
This patch brings it back.
Did this ever get a v2, incorporating Michael's comments?
Yes, this is merged to master already
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=88f9310ce0015be539ffefbeff4b64c73779fdc9
Cheers
Belén
Quoted 88 lines
Elliot
Signed-off-by Belen Barros Pena <[email protected]>--- bitbake/lib/toaster/toastergui/templates/builds.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)bitbake/lib/toaster/toastergui/templates/builds.html +0
-0@@ -62,7 +62,13 @@ {% for build in objects %} <tr class="data" data-table-build-result="{{build.id <http://build.id> }}">
<td class="outcome">
- <a href="{% url "builddashboard"
build.id <http://build.id> %}">{%if build.outcome == build.SUCCEEDED%}<i class="icon-ok-sign success"></i>{%elif build.outcome == build.FAILED%}<i class="icon-minus-sign error"></i>{%else%}{%endif%}</a>
+ <a href="{% url "builddashboard"
build.id <http://build.id> %}">{%if build.outcome == build.SUCCEEDED%}<i class="icon-ok-sign success"></i>{%elif build.outcome == build.FAILED%}<i class="icon-minus-sign error"></i>{%else%}{%endif%}</a>bitbake/lib/toaster/toastergui/templates/builds.html +3
-0+ {% if build.project %} + + <a href="{% url 'build_artifact'build.id <http://build.id> "cookerlog"
build.id <http://build.id> %}">
+ <i class="icon-download-alt" title=""
data-original-title="Download build log"></i>bitbake/lib/toaster/toastergui/templates/builds.html +2
-0+ </a> + {% endif %} </td> <td class="target"> {% for t in build.target_set.all %}Could you format the template logic on that first line so that there is indentation in the logic sequence, for ease of reading. To avoid an empty else statement it's better to switch round the logic to be inclusive.
Something more like
{% if build.outcome == build.SUCCEEDED or build.outcome == build.FAILED %} <a href="{% url "builddashboard"
build.id <http://build.id> %}"> <i class=" {% if build.outcome == build.SUCCEEDED %} icon-ok-sign success {% elif build.outcome == build.FAILED %} icon-minus-sign error {% endif %} "></i> </a> {% endif %}more info on
https://wiki.yoctoproject.org/wiki/Contribute_to_Toaster#Templates
<https://wiki.yoctoproject.org/wiki/Contribute_to_Toaster#Templates>Thanks
Michael
Signature · 17 lines
_______________________________________________ toaster mailing list [email protected] https://lists.yoctoproject.org/listinfo/toaster -- Elliot Smith Software Engineer Intel Open Source Technology Centre