Add page offset to track line tag index

fixes #755
This commit is contained in:
Matt Jibson 2015-11-09 16:21:43 -05:00
parent b0ec7074d0
commit 7a503d678b

View file

@ -169,6 +169,7 @@ angular.module('quay').directive('repoPanelTags', function () {
$scope.trackLineClass = function(index, track_info) {
var startIndex = $.inArray(track_info.tags[0], $scope.tags);
var endIndex = $.inArray(track_info.tags[track_info.tags.length - 1], $scope.tags);
index += $scope.options.page * $scope.tagsPerPage;
if (index == startIndex) {
return 'start';