diff options
author | Ravi Chintakunta <ravi.chintakunta@timesys.com> | 2014-01-10 16:36:40 -0500 |
---|---|---|
committer | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-01-27 15:19:49 +0000 |
commit | 53ede15926d45b555252d77919a0568a984c6d74 (patch) | |
tree | 6ea2970df220821a405cd10caba3976f72d93d82 | |
parent | 8bfd140b93bcbfe8be4dd8a30268d3cc033e180f (diff) | |
download | bitbake-53ede15926d45b555252d77919a0568a984c6d74.tar.gz |
toaster: Base table fixes for header text, sort icon and filter icon
- Display the table column header as a link only if it is sortable.
Non-sortable column headers are displayed as plain text.
- Display the sort order by an up / down arrow icon next to the
column header
- Add style for header in default.css
- Set tooltip for the active filter icon
- Pass the view name to the filter dialog
Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
-rw-r--r-- | lib/toaster/toastergui/static/css/default.css | 1 | ||||
-rw-r--r-- | lib/toaster/toastergui/templates/basetable_bottom.html | 2 | ||||
-rw-r--r-- | lib/toaster/toastergui/templates/basetable_top.html | 5 |
3 files changed, 5 insertions, 3 deletions
diff --git a/lib/toaster/toastergui/static/css/default.css b/lib/toaster/toastergui/static/css/default.css index 53c50043b..fe3881eea 100644 --- a/lib/toaster/toastergui/static/css/default.css +++ b/lib/toaster/toastergui/static/css/default.css @@ -175,3 +175,4 @@ dd p {line-height:20px;} .no-results { margin: 10px 0 0; } +th > a, th > span { font-weight: normal; color:#333333;} diff --git a/lib/toaster/toastergui/templates/basetable_bottom.html b/lib/toaster/toastergui/templates/basetable_bottom.html index 8f8147272..abce7c24b 100644 --- a/lib/toaster/toastergui/templates/basetable_bottom.html +++ b/lib/toaster/toastergui/templates/basetable_bottom.html @@ -76,7 +76,7 @@ </script> <!-- modal filter boxes --> - {% for tc in tablecols %}{% if tc.filter %}{% with f=tc.filter %} + {% for tc in tablecols %}{% if tc.filter %}{% with objectname=objectname f=tc.filter %} {% include "filtersnippet.html" %} {% endwith %}{% endif %} {% endfor %} <!-- end modals --> diff --git a/lib/toaster/toastergui/templates/basetable_top.html b/lib/toaster/toastergui/templates/basetable_top.html index b8d5c382c..7b3017aff 100644 --- a/lib/toaster/toastergui/templates/basetable_top.html +++ b/lib/toaster/toastergui/templates/basetable_top.html @@ -75,9 +75,10 @@ <tr> {% for tc in tablecols %}<th class="{{tc.dclass}} {{tc.clclass}}"> {%if tc.qhelp%}<i class="icon-question-sign get-help" data-toggle="tooltip" title="{{tc.qhelp}}"></i>{%endif%} - <a href="javascript:reload_params({'orderby' : '{{tc.orderfield}}' })" style="font-weight:normal;">{{tc.name}}</a> + {%if tc.orderfield%}<a {%if tc.ordericon%} class="sorted" {%endif%}href="javascript:reload_params({'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 in tc.filter.options.values%} btn-primary{%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%} title="{{tc.filter.options|filtered_tooltip:request.GET.filter}}"{%endif%} data-toggle="modal"> <i class="icon-filter filtered"></i> </a> </div>{%endif%} </th>{% endfor %} </tr> |