anchor.diff:              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
  +    //- last page always displayed, except it's current one
  +    //- (then we skip last half of paginator)
       - if (max_page - current !== 0)
         - params.page = max_page
         li
  
positive.code:           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++) {
      -   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)
        li.dropdown
          - delete(params.page)
          a.more.dropdown-toggle(href=link_to(route, params), data-target="#", data-toggle='dropdown') ...
  
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') ...
  