瀏覽代碼

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>