MarlabsInc/SocialGoal — pull request #5 by PeterKneale (2014-01-31 11:39:41+00:00)
Title: Using HTML Helpers can cut down on repetitive code

Looks like there was a lot of code repeated in the views..Html Helpers can cut that down a lot..
I've just added the extension methods to *HtmlHelperExtensions* and created the helper *UserHtmlHelper* and its reduced the code quite a lot already.

```
new style:
@Html.User().Avatar(profilePicUrl, new { @class = "span3", style = "margin-right:10px;" })

old style:
@if (String.IsNullOrEmpty(@item.ProfilePicUrl))
{

}
else
{

}

```