Reorder conditional logic in link_to_if and link_to_unless

According to the best practice that "unless not" and "unless else" are hard to follow logically link_to_unless and link_to_if were reversed.

This simply reorders the conditionals into a more readable form.