How to modify $core_v2_activityStory.ViewHtml

We use roles to display next to usernames; however we are unsure how to add our role icons next to usernames in the activity stream.