templates/settings: Moved active_page variable to base template