Implement a real pager on the build page

See TRAC-2975
I think you should indeed disable the a using ng-if
```
a(ng-if="build.number > 1", ui-sref="build({build:build.number - 1})") &larr; Previous
a(ng-if="build.number == 1", href="javascript:") &larr; Previous
```