Skip to content

Commit

Permalink
Added controls at the end of the page to pagination
Browse files Browse the repository at this point in the history
Add pagination controls at the end of the page
  • Loading branch information
kiddinn authored Jan 31, 2020
2 parents 803d67c + 8016295 commit e150896
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion timesketch/frontend/dist/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang=en><head><meta name=csrf-token content="{{ csrf_token() }}"><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/dist/favicon.ico><title>Timesketch</title><link href=/dist/css/chunk-common.d4d85507.css rel=preload as=style><link href=/dist/css/chunk-vendors.534842e8.css rel=preload as=style><link href=/dist/js/chunk-common.bcce33cd.js rel=preload as=script><link href=/dist/js/chunk-vendors.c957e138.js rel=preload as=script><link href=/dist/js/index.0c45ccdf.js rel=preload as=script><link href=/dist/css/chunk-vendors.534842e8.css rel=stylesheet><link href=/dist/css/chunk-common.d4d85507.css rel=stylesheet></head><body><div id=app></div><script src=/dist/js/chunk-vendors.c957e138.js></script><script src=/dist/js/chunk-common.bcce33cd.js></script><script src=/dist/js/index.0c45ccdf.js></script></body></html>
<!DOCTYPE html><html lang=en><head><meta name=csrf-token content="{{ csrf_token() }}"><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/dist/favicon.ico><title>Timesketch</title><link href=/dist/css/chunk-common.d4d85507.css rel=preload as=style><link href=/dist/css/chunk-vendors.534842e8.css rel=preload as=style><link href=/dist/js/chunk-common.fc247e53.js rel=preload as=script><link href=/dist/js/chunk-vendors.c957e138.js rel=preload as=script><link href=/dist/js/index.0c45ccdf.js rel=preload as=script><link href=/dist/css/chunk-vendors.534842e8.css rel=stylesheet><link href=/dist/css/chunk-common.d4d85507.css rel=stylesheet></head><body><div id=app></div><script src=/dist/js/chunk-vendors.c957e138.js></script><script src=/dist/js/chunk-common.fc247e53.js></script><script src=/dist/js/index.0c45ccdf.js></script></body></html>
1 change: 0 additions & 1 deletion timesketch/frontend/dist/js/chunk-common.bcce33cd.js.map

This file was deleted.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions timesketch/frontend/dist/js/chunk-common.fc247e53.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion timesketch/frontend/dist/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
.card-content {
justify-content: center;
align-items: center;
}</style><link href=/dist/css/chunk-common.d4d85507.css rel=preload as=style><link href=/dist/css/chunk-vendors.534842e8.css rel=preload as=style><link href=/dist/js/chunk-common.bcce33cd.js rel=preload as=script><link href=/dist/js/chunk-vendors.c957e138.js rel=preload as=script><link href=/dist/js/login.c1fa2383.js rel=preload as=script><link href=/dist/css/chunk-vendors.534842e8.css rel=stylesheet><link href=/dist/css/chunk-common.d4d85507.css rel=stylesheet></head><body class=login-page><div class=columns><div class=column><div class="card is-wide has-text-centered"><div class=card-content><div class=content><div><img src=/dist/timesketch-color.png style=width:40px;><div style="color: #333; font-size: 1.5em;">time<b>sketch</b></div><div style="color: #666; font-size: 0.8em;">Digital Forensic Timeline Analysis</div></div><br><form method=post style="width:50%;margin-left: auto; margin-right: auto;"><div class=field><div class=control><input type=text class=input name=username placeholder=Username style=text-align:center;></div></div><div class=field><div class=control><input type=password class=input name=password placeholder=Password style=text-align:center;></div></div><div class=field><div class="control has-text-centered"><button type=submit class="button is-rounded is-wide is-info" style=width:100%;>Sign in</button></div></div>{{ form.csrf_token }}</form></div></div></div></div></div><script src=/dist/js/chunk-vendors.c957e138.js></script><script src=/dist/js/chunk-common.bcce33cd.js></script><script src=/dist/js/login.c1fa2383.js></script></body></html>
}</style><link href=/dist/css/chunk-common.d4d85507.css rel=preload as=style><link href=/dist/css/chunk-vendors.534842e8.css rel=preload as=style><link href=/dist/js/chunk-common.fc247e53.js rel=preload as=script><link href=/dist/js/chunk-vendors.c957e138.js rel=preload as=script><link href=/dist/js/login.c1fa2383.js rel=preload as=script><link href=/dist/css/chunk-vendors.534842e8.css rel=stylesheet><link href=/dist/css/chunk-common.d4d85507.css rel=stylesheet></head><body class=login-page><div class=columns><div class=column><div class="card is-wide has-text-centered"><div class=card-content><div class=content><div><img src=/dist/timesketch-color.png style=width:40px;><div style="color: #333; font-size: 1.5em;">time<b>sketch</b></div><div style="color: #666; font-size: 0.8em;">Digital Forensic Timeline Analysis</div></div><br><form method=post style="width:50%;margin-left: auto; margin-right: auto;"><div class=field><div class=control><input type=text class=input name=username placeholder=Username style=text-align:center;></div></div><div class=field><div class=control><input type=password class=input name=password placeholder=Password style=text-align:center;></div></div><div class=field><div class="control has-text-centered"><button type=submit class="button is-rounded is-wide is-info" style=width:100%;>Sign in</button></div></div>{{ form.csrf_token }}</form></div></div></div></div></div><script src=/dist/js/chunk-vendors.c957e138.js></script><script src=/dist/js/chunk-common.fc247e53.js></script><script src=/dist/js/login.c1fa2383.js></script></body></html>
15 changes: 15 additions & 0 deletions timesketch/frontend/src/views/SketchExplore.vue
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,23 @@ limitations under the License.
@addChip="addChip($event)"
@searchContext="searchContext($event)">
</ts-sketch-explore-event-list>

<div v-if="eventList.objects.length" style="float:right;">
<b-pagination @change="paginate($event)"
:total="totalHitsForPagination"
:per-page="currentQueryFilter.size"
:current.sync="currentPage"
:simple=true
size="is-small"
icon-pack="fas"
icon-prev="chevron-left"
icon-next="chevron-right">
</b-pagination>
</div>
<br>
</div>
</div>
<br>
</div>
</section>
</div>
Expand Down

0 comments on commit e150896

Please sign in to comment.