add the ticket status to the link class

This makes it possible to give links to rejected tickets a different style
than links to resolved tickets.