Fixes #14566 - remove show_console_action function
The `show_console_action` function is just a trenary operator, no sense making this a function. This also causes the link to be generated even if it is not needed, as it is passed to the function as a parameter.
Related issues
Refactor #14566: Replace show_console_action with a simple if statement
Fixes #14566 - remove show_console_action function
The `show_console_action` function is just a trenary operator, no sense
making this a function. This also causes the link to be generated even
if it is not needed, as it is passed to the function as a parameter.