How about, for performance, determining which action/link to use here, rather than baking it in up front?