Display compare link conditionally

I introduced a new method `#default_branch?` which checks if the current_branch equals to default branch, and display compare url accordingly.