hide pagination if showing all results
[angular-drzb] / app / partials / list.html.ep
index 55ba899..0faca67 100644 (file)
@@ -59,8 +59,6 @@ Search
 All results on single page <b>(can be slow!)</b>
 </label>
 
-{{pager}}
-
 </fieldset>
 
 <fieldset ng-show="show.states">
@@ -81,6 +79,7 @@ All results on single page <b>(can be slow!)</b>
 <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">
@@ -93,6 +92,7 @@ All results on single page <b>(can be slow!)</b>
 <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"-->