maybe_link_view takes something returned from the database - either some ordinary data,
or an object in a related class expanded by a has-a relationship.
If it is an object,
it constructs a link to the view command for that object.
Otherwise,
it just displays the data.