소스 검색

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>