Topic: Duplicate code in view

I'm working on a budgeting app and have written the following view: https://gist.github.com/3813683 to display a budget report. I feel like I have a lot of duplicate code in here, but I'm not sure the best way to simplify it. I thought about moving some stuff to helpers, but it seems like helpers aren't really designed to output HTML. Thanks for your time.

Re: Duplicate code in view

As a followup.. I moved some of the table header HTML I was using over and over into another file and then rendered that file from the main view. This is shown here: https://gist.github.com/3813683.