compact view: give link urls "may-blank" css class

makes external links open in a new window when the user preference is enabled,
like non-compact view

Closes #1160.