DRY up view

Open source contribution testing. 

We can take this logic out of the view because we are doing the same thing in the controller?