All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Wood <michael.g.wood@intel.com>
To: toaster@yoctoproject.org
Subject: Re: [PATCH] [v2] toaster: Fix the download icon
Date: Tue, 10 Nov 2015 17:12:14 +0000	[thread overview]
Message-ID: <5642256E.8000907@intel.com> (raw)
In-Reply-To: <1447174333-14130-1-git-send-email-belen.barros.pena@linux.intel.com>

Thanks upstreamed and pushed to toaster-next with additions to make 
commit message more descriptive.

On 10/11/15 16:52, Belen Barros Pena wrote:
> From: Belen Barros Pena <belen.barros.pena@intel.com>
>
> 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.
>
> It also adds a check in the project builds page to make
> sure the download icon only appears if the build generates
> a cooker log, since builds that fail at the build request
> stage do not generate a cooker log.
>
> Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
> ---
>   bitbake/lib/toaster/toastergui/templates/builds.html        |  8 +++++++-
>   bitbake/lib/toaster/toastergui/templates/projectbuilds.html | 11 ++++++-----
>   2 files changed, 13 insertions(+), 6 deletions(-)
>
> diff --git a/bitbake/lib/toaster/toastergui/templates/builds.html b/bitbake/lib/toaster/toastergui/templates/builds.html
> index a27a121..c3cc266 100644
> --- a/bitbake/lib/toaster/toastergui/templates/builds.html
> +++ b/bitbake/lib/toaster/toastergui/templates/builds.html
> @@ -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> &nbsp;
> +                <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.cooker_log_path %}
> +                  &nbsp;
> +                  <a href="{% url 'build_artifact' build.id "cookerlog" build.id %}">
> +                    <i class="icon-download-alt" title="Download build log"></i>
> +                  </a>
> +                {% endif %}
>               </td>
>               <td class="target">
>                   {% for t in build.target_set.all %}
> diff --git a/bitbake/lib/toaster/toastergui/templates/projectbuilds.html b/bitbake/lib/toaster/toastergui/templates/projectbuilds.html
> index bb38284..3402fc4 100644
> --- a/bitbake/lib/toaster/toastergui/templates/projectbuilds.html
> +++ b/bitbake/lib/toaster/toastergui/templates/projectbuilds.html
> @@ -63,11 +63,12 @@
>           {% for build in objects %} {# if we have a build, just display it #}
>           <tr class="data">
>               <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>
> -                   {% if build.project %}
> -                        &nbsp; <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 %}
> +              {% if build.cooker_log_path %}
> +                &nbsp;
> +                <a href="{% url 'build_artifact' build.id "cookerlog" build.id %}">
> +                  <i class="icon-download-alt" title="Download build log"></i>
> +                </a>
> +              {% endif %}
>               </td>
>   
>               <td class="target">



      reply	other threads:[~2015-11-10 17:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-10 16:52 [PATCH] [v2] toaster: Fix the download icon Belen Barros Pena
2015-11-10 17:12 ` Michael Wood [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5642256E.8000907@intel.com \
    --to=michael.g.wood@intel.com \
    --cc=toaster@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.