Style project sorting with a cleaner look

This commit is contained in:
James Allen 2014-07-18 12:20:12 +01:00
parent b785ab4d15
commit b532461232
3 changed files with 12 additions and 9 deletions

View file

@ -122,14 +122,14 @@
select-all,
type="checkbox"
)
span.header Title
i.tablesort.fa(ng-class="getSortIconClass('name')")
span.header.clickable Title
i.tablesort.fa(ng-class="getSortIconClass('name')")
.col-md-2(ng-click="changePredicate('accessLevel')")
span.header Owner
i.tablesort.fa(ng-class="getSortIconClass('accessLevel')")
span.header.clickable Owner
i.tablesort.fa(ng-class="getSortIconClass('accessLevel')")
.col-md-4(ng-click="changePredicate('lastUpdated')")
span.header Last Modified
i.tablesort.fa(ng-class="getSortIconClass('lastUpdated')")
span.header.clickable Last Modified
i.tablesort.fa(ng-class="getSortIconClass('lastUpdated')")
li.project_entry.container-fluid(
ng-repeat="project in visibleProjects | orderBy:predicate:reverse",
ng-controller="ProjectListItemController"

View file

@ -84,11 +84,11 @@ define [
$scope.getSortIconClass = (column)->
if column == $scope.predicate and $scope.reverse
return "fa-sort-down"
return "fa-caret-down"
else if column == $scope.predicate and !$scope.reverse
return "fa-sort-up"
return "fa-caret-up"
else
return "fa-sort"
return ""
$scope.clearSearchText = () ->
$scope.searchText = ""

View file

@ -2,6 +2,9 @@
display: none !important;
}
.clickable {
cursor: pointer;
}
.img-circle {
display: inline-block;