An application I’m working on requires a facebook style status system and I thought it would be good to include the “posted x minutes ago” text after the status. I’m sure my code is not the most elegant solution but it works so I thought I’d share.
The function returns a paragraph tag with a link for each tag. Each link has a specific class attribute set depending on the weighting given to that tag. The C# code: The CSS: