Add sign up button in login_required.welcome_message

(Fran├žois Douville) #1

I already added a sign up button in my header :

But in the login_required.welcome_message, there is only the log in button. How can I add the sign up button?

This is the code for the Sign up button :

<script type="text/discourse-plugin" version='0.8.12'>
api.decorateWidget('header-buttons:before', function (helper) {
    if (!api.getCurrentUser()) {
        let rawLabel = ? "S'inscrire" : "S'inscrire gratuitement";
        return helper.attach('link', {
            href: '',
            className: "btn btn-primary btn-small login-button"