anchor.diff:    - current  = parseInt(current)
     - max_page = parseInt(max_page)
     ul.pagination
  -    //- first page displayed always, but current
  +    //- 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 exists 1+ pages between first page
  -    //- and surrounding pages
  -    - if (current > SURROUNDING_NUMBER + 2)
  +    //- 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') ...
  
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:             input.input-small(id=pgmpid, type='text', size='8', placeholder='Page number')
              button.btn.btn-inverse(type='button') Go!
  
      //- left surrounding pages displayed if current page > 2
      - for (var i=PAGES_INTERVAL; i > 0; i--) {
      -   if (current > i + 1) 
            - params.page = current - i
            li
              a(href=link_to(route, params)) #{current - i}
      - }
  
      // current page always dispayed
      li.dropdown
        - params.page = current
        a.current.dropdown-toggle(href=link_to(route, params), data-target="#", data-toggle='dropdown') #{current}
        form.dropdown-menu
          - var pgmpid = 'pgmid' + ~~(Math.random()*100000000);
          label.pgn-jump.input(for=pgmpid) Jump to:
  