Skip to content

A platform for community discussion. Free, open, simple.

1.9 KB
Raw Blame
<div class="wizard-congratulations-wrap">
  <div class='row'>
    <img src="<%= Discourse.base_path + '/images/wizard/tada.svg' %>" alt="tada emoji" class="tada">
    <h1><%= t 'finish_installation.congratulations' %></h1>

    <% if @setting_up_discourse_id && @discourse_id_enabled %>
      <p><%= raw(t 'finish_installation.discourse_id_help') %></p>
      <%= link_to(finish_installation_redirect_discourse_id_path, class: 'wizard-container__button btn-primary finish-installation__discourse-id') do %>
        <svg xmlns="http://www.w3.org/2000/svg" width="14px" height="14px" viewBox="0 0 448 512">
          <path fill="currentColor" d="M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"></path>
        </svg>
        <%= t 'finish_installation.login_with_discourse_id' %>
      <% end %>
    <% elsif @setting_up_discourse_id && @discourse_id_error %>
      <div class="alert alert-error">
        <%= @discourse_id_error %>
      </div>
      <p><%= raw(t 'finish_installation.discourse_id_error_help') %></p>
    <% else %>
      <p><%= t 'finish_installation.register.help' %></p>
      <%= link_to(finish_installation_register_path, class: 'wizard-container__button btn-primary finish-installation__register') do %>
        <svg xmlns="http://www.w3.org/2000/svg" width="14px" height="14px" viewBox="0 0 448 512">
          <path fill="currentColor" d="M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"></path>
        </svg>
        <%= t 'finish_installation.register.button' %>
      <% end %>
    <% end %>
  </div>
</div>