From: Ravi Chintakunta Date: Fri, 10 Jan 2014 21:36:40 +0000 (-0500) Subject: toaster: Base table fixes for header text, sort icon and filter icon X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=53ede15926d45b555252d77919a0568a984c6d74;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Alexandru DAMIAN --- diff --git a/lib/toaster/toastergui/static/css/default.css b/lib/toaster/toastergui/static/css/default.css index 53c50043bcd..fe3881eea16 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 8f814727232..abce7c24b74 100644 --- a/lib/toaster/toastergui/templates/basetable_bottom.html +++ b/lib/toaster/toastergui/templates/basetable_bottom.html @@ -76,7 +76,7 @@ - {% 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 %} diff --git a/lib/toaster/toastergui/templates/basetable_top.html b/lib/toaster/toastergui/templates/basetable_top.html index b8d5c382c7a..7b3017affb5 100644 --- a/lib/toaster/toastergui/templates/basetable_top.html +++ b/lib/toaster/toastergui/templates/basetable_top.html @@ -75,9 +75,10 @@ {% for tc in tablecols %} {%if tc.qhelp%}{%endif%} - {{tc.name}} + {%if tc.orderfield%}{{tc.name}}{%else%}{{tc.name}}{%endif%} + {%if tc.ordericon%} {%endif%} {%if tc.filter%}
- +
{%endif%} {% endfor %}