Преглед на файлове

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 години
родител
ревизия
4886b79af9
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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>