modification based on Jesse's feedback

Consider moving these chunks into partials.  You should treat redundancy in your views like redundancy in your code.