diff options
| author | Ravi Chintakunta <ravi.chintakunta@timesys.com> | 2014-03-12 18:47:41 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-14 07:18:46 -0700 |
| commit | 1db32b097b5a4f305e056ae26b940be832efa7cf (patch) | |
| tree | 732485be53429c43b5ffcb0b1b94e86baded7aa0 /bitbake/lib/toaster/toastergui/templates | |
| parent | 5396191fed7921c6d0762ba71f182ce2d0174686 (diff) | |
| download | poky-1db32b097b5a4f305e056ae26b940be832efa7cf.tar.gz | |
bitbake: toaster: Add counters to filters
Added count to filters in Build, Tasks and Config variables.
[YOCTO #5821]
(Bitbake rev: afd73f8ee47d0fcf600fa919f2d2bc1b7d2eeadf)
Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates')
| -rw-r--r-- | bitbake/lib/toaster/toastergui/templates/filtersnippet.html | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/filtersnippet.html b/bitbake/lib/toaster/toastergui/templates/filtersnippet.html index 2a23c27d44..e0e1181878 100644 --- a/bitbake/lib/toaster/toastergui/templates/filtersnippet.html +++ b/bitbake/lib/toaster/toastergui/templates/filtersnippet.html | |||
| @@ -4,16 +4,25 @@ | |||
| 4 | <input type="hidden" name="search" value="{{request.GET.search}}"/> | 4 | <input type="hidden" name="search" value="{{request.GET.search}}"/> |
| 5 | <div class="modal-header"> | 5 | <div class="modal-header"> |
| 6 | <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button> | 6 | <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button> |
| 7 | <h3>Filter {%if filter_search_display%}{{filter_search_display|title}}{%else%}{{objectname|title}}{%endif%} by '{{tc.name}}'</h3> | 7 | {% if search_term %} |
| 8 | <h3>Filter {{total_count}} {%if filter_search_display%}{{filter_search_display|title}}{%else%}{{objectname|title}}{%endif%} matching '{{search_term}}' by '{{tc.name}}'</h3> | ||
| 9 | {% else %} | ||
| 10 | <h3>Filter {%if filter_search_display%}{{filter_search_display|title}}{%else%}{{objectname|title}}{%endif%} by '{{tc.name}}'</h3> | ||
| 11 | {% endif %} | ||
| 8 | </div> | 12 | </div> |
| 9 | <div class="modal-body"> | 13 | <div class="modal-body"> |
| 10 | <p>{{f.label}}</p> | 14 | <p>{{f.label}}</p> |
| 11 | <label class="radio"> | 15 | <label class="radio"> |
| 12 | <input type="radio" name="filter" {%if request.GET.filter%}{{f.options|check_filter_status:request.GET.filter}} {%else%} checked {%endif%} value=""> All {%if filter_search_display%}{{filter_search_display|title}}{%else%}{{objectname|title}}{%endif%} | 16 | <input type="radio" name="filter" {%if request.GET.filter%}{{f.options|check_filter_status:request.GET.filter}} {%else%} checked {%endif%} value=""> All {%if filter_search_display%}{{filter_search_display|title}}{%else%}{{objectname|title}}{%endif%} ({{total_count}}) |
| 13 | </label> | 17 | </label> |
| 14 | {% for option in f.options %} | 18 | {% for option in f.options %} |
| 15 | <label class="radio"> | 19 | {% if option.2 %} |
| 16 | <input type="radio" name="filter" {%if request.GET.filter == option.1 %}checked{%endif%} value="{{option.1}}"> {{option.0}} | 20 | <label class="radio"> |
| 21 | <input type="radio" name="filter" {%if request.GET.filter == option.1 %}checked{%endif%} value="{{option.1}}"> {{option.0}} ({{option.2}}) | ||
| 22 | {% else %} | ||
| 23 | <label class="radio muted"> | ||
| 24 | <input type="radio" name="filter" disabled {%if request.GET.filter == option.1 %}checked{%endif%} value="{{option.1}}"> {{option.0}} ({{option.2}}) | ||
| 25 | {% endif %} | ||
| 17 | </label> | 26 | </label> |
| 18 | {% endfor %} | 27 | {% endfor %} |
| 19 | </div> | 28 | </div> |
