All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Wood <michael.g.wood@intel.com>
To: toaster@yoctoproject.org
Subject: Re: [review-request] [PATCH] toaster: make build data breadcrumb consistent
Date: Wed, 10 Feb 2016 00:09:48 +0000	[thread overview]
Message-ID: <56BA7FCC.9010000@intel.com> (raw)
In-Reply-To: <1454929191-60078-1-git-send-email-belen.barros.pena@linux.intel.com>

Thanks - submitted upstream & toaster-next

On 08/02/16 10:59, Belen Barros Pena wrote:
> From: Belen Barros Pena <belen.barros.pena@intel.com>
>
> The pages in the build data section of Toaster showed different
> breadcrumbs: in some pages the machine was displayed, but not in others.
> For builds with more than one target, some pages showed the first
> alphabetical target (the correct behaviour), others didn't.
>
> This patch removes the inconsistencies, showing exactly the same
> breacrumb across all pages in the section.
>
> The patch also removes the extra space between the '+' and the number of
> targets when the builds have more than one target.
>
> Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
> ---
>   bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html | 2 +-
>   bitbake/lib/toaster/toastergui/templates/basebuildpage.html       | 2 +-
>   bitbake/lib/toaster/toastergui/templates/builddashboard.html      | 3 +--
>   3 files changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html b/bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html
> index 22ca50c..ffe7aa4 100644
> --- a/bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html
> +++ b/bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html
> @@ -8,7 +8,7 @@
>           <ul class="breadcrumb" id="breadcrumb">
>               <li class="muted">{{build.project.name}}:</li>
>               <li><a href="{% url 'projectbuilds' build.project.id %}">Builds</a></li>
> -            <li><a href="{%url 'builddashboard' build.pk%}">{{build.target_set.all.0.target}} {%if build.target_set.all.count > 1%}(+ {{build.target_set.all.count|add:"-1"}}){%endif%} ({{build.completed_on|date:"d/m/y H:i"}})</a></li>
> +            <li><a href="{%url 'builddashboard' build.pk%}">{{build.get_sorted_target_list.0.target}} {%if build.target_set.all.count > 1%}(+{{build.target_set.all.count|add:"-1"}}){%endif%} {{build.machine}} ({{build.completed_on|date:"d/m/y H:i"}})</a></li>
>               {% block localbreadcrumb %}{% endblock %}
>           </ul>
>           <script>
> diff --git a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html
> index d441df8..fcf1c54 100644
> --- a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html
> +++ b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html
> @@ -13,7 +13,7 @@
>               <li>
>               {% block parentbreadcrumb %}
>               <a href="{%url 'builddashboard' build.pk%}">
> -                {{build.get_sorted_target_list.0.target}} {%if build.target_set.all.count > 1%}(+ {{build.target_set.all.count|add:"-1"}}){%endif%} ({{build.completed_on|date:"d/m/y H:i"}})
> +              {{build.get_sorted_target_list.0.target}} {%if build.target_set.all.count > 1%}(+{{build.target_set.all.count|add:"-1"}}){%endif%} {{build.machine}} ({{build.completed_on|date:"d/m/y H:i"}})
>               </a>
>               {% endblock %}
>               </li>
> diff --git a/bitbake/lib/toaster/toastergui/templates/builddashboard.html b/bitbake/lib/toaster/toastergui/templates/builddashboard.html
> index 323bbbb..7857aba 100644
> --- a/bitbake/lib/toaster/toastergui/templates/builddashboard.html
> +++ b/bitbake/lib/toaster/toastergui/templates/builddashboard.html
> @@ -6,10 +6,9 @@
>   {% block parentbreadcrumb %}
>   {% if build.get_sorted_target_list.count > 0 %}
>     {{build.get_sorted_target_list.0.target}}
> -  &nbsp;
>   {% endif %}
>   
> -{%if build.target_set.all.count > 1%}(+ {{build.target_set.all.count|add:"-1"}}){%endif%} {{build.machine}} ({{build.completed_on|date:"d/m/y H:i"}})
> +{%if build.target_set.all.count > 1%}(+{{build.target_set.all.count|add:"-1"}}){%endif%} {{build.machine}} ({{build.completed_on|date:"d/m/y H:i"}})
>   {% endblock %}
>   
>   {% block buildinfomain %}



      reply	other threads:[~2016-02-10  0:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-08 10:59 [review-request] [PATCH] toaster: make build data breadcrumb consistent Belen Barros Pena
2016-02-10  0:09 ` 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=56BA7FCC.9010000@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.