Pagination
parent
6c3d75b632
commit
5e4361717a
|
@ -143,12 +143,12 @@ IssuesDirective = ($log, $location) ->
|
||||||
|
|
||||||
linkPagination = ($scope, $el, $attrs, $ctrl) ->
|
linkPagination = ($scope, $el, $attrs, $ctrl) ->
|
||||||
# Constants
|
# Constants
|
||||||
afterCurrent = 5
|
afterCurrent = 2
|
||||||
beforeCurrent = 5
|
beforeCurrent = 4
|
||||||
atBegin = 2
|
atBegin = 2
|
||||||
atEnd = 2
|
atEnd = 2
|
||||||
|
|
||||||
$pagEl = $el.find("section.issues-paginator")
|
$pagEl = $el.find(".issues-paginator")
|
||||||
|
|
||||||
getNumPages = ->
|
getNumPages = ->
|
||||||
numPages = $scope.count / $scope.paginatedBy
|
numPages = $scope.count / $scope.paginatedBy
|
||||||
|
|
|
@ -20,3 +20,5 @@ block content
|
||||||
include views/components/mainTitle
|
include views/components/mainTitle
|
||||||
include views/modules/list-filters
|
include views/modules/list-filters
|
||||||
include views/modules/issues-table
|
include views/modules/issues-table
|
||||||
|
div.paginator.issues-paginator
|
||||||
|
//-Included paginator via JS
|
||||||
|
|
|
@ -12,5 +12,3 @@ section.issues-table.basic-table
|
||||||
a(href="", tg-bo-html="issue.subject")
|
a(href="", tg-bo-html="issue.subject")
|
||||||
div.issue-field(tg-issue-status="issue")
|
div.issue-field(tg-issue-status="issue")
|
||||||
div.assigned-field(tg-issue-assignedto="issue")
|
div.assigned-field(tg-issue-assignedto="issue")
|
||||||
|
|
||||||
section.issues-paginator
|
|
||||||
|
|
|
@ -0,0 +1,34 @@
|
||||||
|
.paginator {
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
ul {
|
||||||
|
margin-left: 1rem;
|
||||||
|
}
|
||||||
|
li {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
a,
|
||||||
|
.active span,
|
||||||
|
.dots {
|
||||||
|
@include transition (all .3s linear);
|
||||||
|
background: $gray-light;
|
||||||
|
color: $white;
|
||||||
|
margin-right: .1rem;
|
||||||
|
padding: .5rem 1rem;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
&:hover {
|
||||||
|
@include transition (all .3s linear);
|
||||||
|
background: $button-gray-hover;
|
||||||
|
color: $white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.active {
|
||||||
|
span {
|
||||||
|
background: $fresh-taiga;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.dots {
|
||||||
|
background: transparent;
|
||||||
|
color: $gray-light;
|
||||||
|
}
|
||||||
|
}
|
|
@ -26,6 +26,7 @@ $prefix-for-spec: true;
|
||||||
@import 'components/taskboard-task';
|
@import 'components/taskboard-task';
|
||||||
@import 'components/notification-message';
|
@import 'components/notification-message';
|
||||||
@import 'components/basic-table';
|
@import 'components/basic-table';
|
||||||
|
@import 'components/paginator';
|
||||||
|
|
||||||
//Modules
|
//Modules
|
||||||
@import 'modules/nav';
|
@import 'modules/nav';
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
.issues-table {
|
.issues-table {
|
||||||
@include table-flex();
|
@include table-flex();
|
||||||
|
margin-bottom: 2rem;
|
||||||
.row {
|
.row {
|
||||||
&:hover {
|
&:hover {
|
||||||
background: lighten($green-taiga, 60%);
|
background: lighten($green-taiga, 60%);
|
||||||
|
|
Loading…
Reference in New Issue