Skip to content

Commit

Permalink
#151 Add pagination component on top of all the data lists
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Mar 27, 2017
1 parent 99c6839 commit ae2d474
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 24 deletions.
2 changes: 1 addition & 1 deletion ui/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

</head>
<body ng-cloak class="hold-transition skin-blue layout-top-nav">
<page-loader></page-loader>
<page-loader bg-color="#ecf0f5"></page-loader>
<div ui-view></div>

<!-- build:js(.) scripts/vendor.js -->
Expand Down
21 changes: 0 additions & 21 deletions ui/app/views/app.main.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,41 +23,20 @@ <h3 class="box-title" ng-if="view.data == 'waitingtasks'">Waiting tasks ({{list.
</div>
<div class="box-body">

<!-- <div class="row mb-s">
<div class="col-md-12 clearfix">
<div class="pull-right form-inline">
<div class="input-group input-group-sm">
<filter-box collection="list"></filter-box>
</div>
<div class="form-group">
<page-sizer collection="list"></page-sizer>
</div>
</div>
</div>
</div> -->

<div ng-switch="view.data">
<div class="main-fadein" ng-switch-when="mytasks">
<div ng-include="'views/partials/index-mytasks.html'"></div>
</div>

<div class="main-fadein" ng-switch-when="waitingtasks">
<div ng-include="'views/partials/index-waitingtasks.html'"></div>
</div>

<div class="main-fadein" ng-switch-default>
<div ng-include="'views/partials/index-mytasks.html'"></div>
</div>

</div>

</div>
</div>
</div>




<div ng-show="showFlow" class="col-md-3">
<div class=" box">
<div class="box-header">
Expand Down
4 changes: 3 additions & 1 deletion ui/app/views/partials/case/case.list.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ <h3 class="box-title">List of cases ({{$vm.list.total || 0}} of {{$vm.caseStats.
</div>
</div>

<div class="row mt-s">
<div class="row">
<div class="col-md-12">
<psearch control="$vm.list"></psearch>

<table class="table table-striped case-list">
<thead>
<tr>
Expand Down
1 change: 1 addition & 0 deletions ui/app/views/partials/case/case.tasks.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@

<div class="row mt-l" ng-show="tasks.total !== 0">
<div class="col-md-12">
<psearch control="tasks"></psearch>
<table class="table table-striped table-hover valigned">
<thead>
<tr>
Expand Down
2 changes: 2 additions & 0 deletions ui/app/views/partials/index-mytasks.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<psearch control="list"></psearch>

<table class="table table-striped table-hover valigned">
<thead>
<tr>
Expand Down
2 changes: 2 additions & 0 deletions ui/app/views/partials/index-waitingtasks.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<psearch control="list"></psearch>

<table class="table table-striped table-hover valigned">
<thead>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion ui/app/views/partials/misp/event.dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h4 class="vpad10 text-primary">
<dl class="dl-horizontal clear">
<dt>Tags</dt>
<dd>
<tag-list data="dialog.event.tags"></tag-list>
<tag-list data="dialog.event.tags"></tag-list>
</dd>
</dl>

Expand Down
2 changes: 2 additions & 0 deletions ui/app/views/partials/misp/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ <h3 class="box-title">List of MISP events ({{misp.list.total || 0}} of {{mispEve
<!-- Datalist -->
<div class="row mt-s">
<div class="col-md-12">
<psearch control="misp.list"></psearch>

<table class="table table-striped case-list">
<thead>
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ <h4>List of observables ({{artifacts.total || 0}} of {{artifactStats.count}})</h

<!-- list of artifacts-->
<div class="col-md-12">
<psearch ng-if="!switchTEList" control="artifacts"></psearch>

<table class="table table-striped table-hover valigned">
<thead>
<tr>
Expand Down

0 comments on commit ae2d474

Please sign in to comment.