projects
/
angular-drzb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hide pagination if showing all results
[angular-drzb]
/
app
/
partials
/
list.html.ep
diff --git
a/app/partials/list.html.ep
b/app/partials/list.html.ep
index
8971734
..
0faca67
100644
(file)
--- a/
app/partials/list.html.ep
+++ b/
app/partials/list.html.ep
@@
-54,6
+54,11
@@
Search
<b>{{pager.results}} results</b>
<tt>{{search}}</tt>
<b>{{pager.results}} results</b>
<tt>{{search}}</tt>
+<label>
+<input type="checkbox" ng-model="pager.show_all">
+All results on single page <b>(can be slow!)</b>
+</label>
+
</fieldset>
<fieldset ng-show="show.states">
</fieldset>
<fieldset ng-show="show.states">
@@
-74,6
+79,7
@@
Search
<pagination class="pagination-large" max-size="12"
num-pages="pager.last_page"
current-page="pager.page"
<pagination class="pagination-large" max-size="12"
num-pages="pager.last_page"
current-page="pager.page"
+ hide-pagination="pager.show_all"
></pagination>
<dl ng-repeat="registration in list">
></pagination>
<dl ng-repeat="registration in list">
@@
-86,6
+92,7
@@
Search
<pagination class="pagination-large" max-size="12"
num-pages="pager.last_page"
current-page="pager.page"
<pagination class="pagination-large" max-size="12"
num-pages="pager.last_page"
current-page="pager.page"
+ hide-pagination="pager.show_all"
></pagination>
</div><!-- ng-show="list.length"-->
></pagination>
</div><!-- ng-show="list.length"-->