case 2785 - Hide first/last buttons on first/last pages.
Merge branch 'case-2785' into new-search

* case-2785:
  case 2785 - Hide first/last buttons on first/last pages.