Skip to content

Commit

Permalink
Add pagination to event list (#942)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Florek authored and bryk committed Jun 22, 2016
1 parent b0b04d6 commit fdc4f0b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/app/frontend/events/eventcardlist.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
</kd-resource-card-header-column>
</kd-resource-card-header-columns>

<kd-resource-card ng-repeat="event in $ctrl.filteredEvents"
object-meta="event.objectMeta" type-meta="event.typeMeta">
<kd-resource-card dir-paginate="event in $ctrl.filteredEvents | itemsPerPage: default"
object-meta="event.objectMeta" type-meta="event.typeMeta" pagination-id="events">
<kd-resource-card-status>
<i ng-if="$ctrl.isEventWarning(event)"
class="material-icons kd-replicationcontrollerevents-warning-icon">warning</i>
Expand Down Expand Up @@ -80,6 +80,10 @@
</kd-resource-card-column>
</kd-resource-card-columns>
</kd-resource-card>
<kd-resource-card-list-footer>
<kd-resource-card-list-pagination pagination-id="events" total-items="$ctrl.filteredEvents.length">
</kd-resource-card-list-pagination>
</kd-resource-card-list-footer>
</kd-resource-card-list>

<div class="kd-replicationcontrollerevents-no-events" ng-if="!$ctrl.hasEvents()">
Expand Down

0 comments on commit fdc4f0b

Please sign in to comment.