Browse Source

HUE-1074 [impala] Result view not showing all the results

The main problem with this solution is that the 'Next' button
will always appear on the result page, even if the data set is empty
(so we get an empty result page after).
Follow up in HUE-995.
Romain Rigaux 12 years ago
parent
commit
4886b79
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/beeswax/src/beeswax/templates/watch_results.mako

+ 1 - 1
apps/beeswax/src/beeswax/templates/watch_results.mako

@@ -177,7 +177,7 @@ ${layout.menubar(section='query')}
                       <li class="prev"><a title="${_('Beginning of List')}" href="${ url(app_name + ':view_results', query.id, 0) }${'?context=' + context_param or '' | n}">&larr; ${_('Beginning of List')}</a></li>
                   % endif
               % endif
-              % if has_more and len(results) == 100:
+              % if has_more and (len(results) == 100 or app_name == 'impala'):
                   <li><a title="${_('Next page')}" href= "${ url(app_name + ':view_results', query.id, next_row) }${'?context=' + context_param or '' | n }">${_('Next Page')} &rarr;</a></li>
               % endif
               </ul>