Use pointer cursor when hovering sortable table headings

This commit is contained in:
Steve Purcell 2014-06-09 19:36:30 +01:00
parent ab8f52dde9
commit bbb9f0da5e
2 changed files with 8 additions and 5 deletions

View file

@ -37,4 +37,7 @@ a[name] { /* Stop navbar from hiding anchors */
} }
.muted { .muted {
color: #999; color: #999;
}
.sortable {
cursor: pointer;
} }

View file

@ -208,12 +208,12 @@
m("table#package-list.table.table-bordered.table-responsive.table-hover", [ m("table#package-list.table.table-bordered.table-responsive.table-hover", [
m("thead", [ m("thead", [
m("tr", [ m("tr", [
m("th", {onclick: sortToggler("name")}, ["Package", sortIndicator("name")]), m("th.sortable", {onclick: sortToggler("name")}, ["Package", sortIndicator("name")]),
m("th", {onclick: sortToggler("description")}, ["Description", sortIndicator("description")]), m("th.sortable", {onclick: sortToggler("description")}, ["Description", sortIndicator("description")]),
m("th", {onclick: sortToggler("version")}, ["Version", sortIndicator("version")]), m("th.sortable", {onclick: sortToggler("version")}, ["Version", sortIndicator("version")]),
m("th", "Recipe"), m("th", "Recipe"),
m("th", {onclick: sortToggler("fetcher")}, ["Source", sortIndicator("fetcher")]), m("th.sortable", {onclick: sortToggler("fetcher")}, ["Source", sortIndicator("fetcher")]),
m("th", {onclick: sortToggler("downloads")}, ["DLs", sortIndicator("downloads")]), m("th.sortable", {onclick: sortToggler("downloads")}, ["DLs", sortIndicator("downloads")]),
]) ])
]), ]),
m("tbody", m("tbody",