anchor.diff:            input.input-small(id=pgmpid, type='text', size='8', placeholder='Page number')
             button.btn.btn-inverse(type='button') Go!
   
  -    //- right surrounding pages displayed if current page less then one from bottom
  -    - for (var i=1 ; i <= SURROUNDING_NUMBER; i++) {
  +    //- right surrounding pages displayed if current page < (bottom-1)
  +    - for (var i=1 ; i <= PAGES_INTERVAL; i++) {
       -   if ((max_page - current) > i )
             - params.page = current + i
             li
               a(href=link_to(route, params)) #{current + i}
       - }
   
  -    //- right ellipsis displayed, if exists 1+ pages between last page
  -    //- and surrounding pages
  -    - if (max_page - current > SURROUNDING_NUMBER + 1)
  +    //- right ellipsis displayed, if > 1 pages exists between right
  +    //- tail of "surrounding" pages and the last one.
  +    - if (max_page - current > PAGES_INTERVAL + 1)
         li.dropdown
           - delete(params.page)
           a.more.dropdown-toggle(href=link_to(route, params), data-target="#", data-toggle='dropdown') ...
  
positive.code:             input.input-small(id=pgmpid, type='text', size='8', placeholder='Page number')
              button.btn.btn-inverse(type='button') Go!
  
      //- last page displayed always, but current
      - if (max_page - current !== 0)
        - params.page = max_page
        li
  
negative.code:   - current  = parseInt(current)
    - max_page = parseInt(max_page)
    ul.pagination
      //- first page always displayed, except when current == 1.
      //- (then we skip first half of paginator)
      - if (current > 1)
        li
          a(href=link_to(route, params)) 1
  
      //- left ellipsis displayed, if > 1 pages exists between first one
      //- and left head of "surrounding" pages
      - if (current > PAGES_INTERVAL + 2)
        li.dropdown
          - delete(params.page)
          a.more.dropdown-toggle(href=link_to(route, params), data-target="#", data-toggle='dropdown') ...
  