diff --git a/horizon/static/horizon/js/tables.js b/horizon/static/horizon/js/tables.js index 30ae1b66e..0715ace44 100644 --- a/horizon/static/horizon/js/tables.js +++ b/horizon/static/horizon/js/tables.js @@ -37,4 +37,5 @@ horizon.addInitFunction(function() { }); horizon.datatables.update(); + $("table.table").tablesorter(); }); diff --git a/openstack_dashboard/static/dashboard/css/style.css b/openstack_dashboard/static/dashboard/css/style.css index 53da34250..831b006db 100644 --- a/openstack_dashboard/static/dashboard/css/style.css +++ b/openstack_dashboard/static/dashboard/css/style.css @@ -366,6 +366,19 @@ a.current_item:hover h3, a.current_item:hover h4 { margin-bottom: 5px; float: left; } +.table th.headerSortUp, +.table th.headerSortDown { + background-color: #DFDFDF; + background-repeat: no-repeat; + background-position: 98% center; +} +.table th.headerSortDown { + background-image: url(../img/drop_arrow.png); +} +.table th.headerSortUp { + background-image: url(../img/up_arrow.png); +} + th { background: #f1f1f1; } diff --git a/openstack_dashboard/static/dashboard/img/up_arrow.png b/openstack_dashboard/static/dashboard/img/up_arrow.png new file mode 100644 index 000000000..0f6e50fc8 Binary files /dev/null and b/openstack_dashboard/static/dashboard/img/up_arrow.png differ