Generate link with block from link_to_if and link_to_unless

@kidwm propose to use block for generating default behaviour as link content, like it is for `name` param.

Closes #14830