Convert some conditions in views to link_to_unless