[Toaster] [PATCH] toaster: apply filter only on selected attributes

Damian, Alexandru alexandru.damian at intel.com
Thu Mar 20 08:27:19 PDT 2014


Taken in.

Alex


On Tue, Mar 18, 2014 at 2:48 PM, Marius Avram <marius.avram at intel.com>wrote:

> This fixes the filter from the main page: 'All builds' applied to the
> table header. Once one is selected, the filter button for that respective
> column will receive a title attribute which will show additional options
> when you hover over it. Until now the additional option was active for
> all filters buttons not only for the one selected. This also caused
> malformed output in the case of the buttons which weren't among the
> selected filter.
>
> [YOCTO #5929]
>
> Signed-off-by: Marius Avram <marius.avram at intel.com>
> ---
>  .../toastergui/templates/basetable_top.html        |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/bitbake/lib/toaster/toastergui/templates/basetable_top.html
> b/bitbake/lib/toaster/toastergui/templates/basetable_top.html
> index 9df3647..c7981cd 100644
> --- a/bitbake/lib/toaster/toastergui/templates/basetable_top.html
> +++ b/bitbake/lib/toaster/toastergui/templates/basetable_top.html
> @@ -79,7 +79,7 @@
>                  {%if tc.orderfield%}<a {%if tc.ordericon%} class="sorted"
> {%endif%}href="javascript:reload_params({'page': 1, 'orderby' :
> '{{tc.orderfield}}' })" >{{tc.name}}</a>{%else%}<span class="muted">{{
> tc.name}}</span>{%endif%}
>                  {%if tc.ordericon%} <i
> class="icon-caret-{{tc.ordericon}}"></i>{%endif%}
>                  {%if tc.filter%}<div class="btn-group pull-right">
> -                    <a href="#filter_{{tc.filter.class}}" role="button"
> class="btn btn-mini {%if
> request.GET.filter%}{{tc.filter.options|filtered_icon:request.GET.filter}}
> {%endif%}" {%if request.GET.filter%}
> title="<p>{{tc.filter.options|filtered_tooltip:request.GET.filter}}</p><p><a
> class='btn btn-small btn-primary'
> href=javascript:reload_params({'filter':''})>Show all {% if
> filter_search_display %}{{filter_search_display}}{% else %}{{objectname}}{%
> endif %}</a></p>" {%endif%} data-toggle="modal"> <i class="icon-filter
> filtered"></i> </a>
> +                    <a href="#filter_{{tc.filter.class}}" role="button"
> class="btn btn-mini {%if
> request.GET.filter%}{{tc.filter.options|filtered_icon:request.GET.filter}}
> {%endif%}" {%if request.GET.filter and
> tc.filter.options|filtered_tooltip:request.GET.filter %}
> title="<p>{{tc.filter.options|filtered_tooltip:request.GET.filter}}</p><p><a
> class='btn btn-small btn-primary'
> href=javascript:reload_params({'filter':''})>Show all {% if
> filter_search_display %}{{filter_search_display}}{% else %}{{objectname}}{%
> endif %}</a></p>" {%endif%} data-toggle="modal"> <i class="icon-filter
> filtered"></i> </a>
>                  </div>{%endif%}
>              </th>{% endfor %}
>          </tr>
> --
> 1.7.9.5
>
> --
> _______________________________________________
> toaster mailing list
> toaster at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/toaster
>



-- 
Alex Damian
Yocto Project
SSG / OTC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/toaster/attachments/20140320/226de5b8/attachment-0001.html>


More information about the toaster mailing list