mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 02:23:42 +08:00
a5fc8f3253
We were previously relying on Ember's 'vendor' bundle to make the jquery global available on the activate_account route. That no longer happens under our Ember 5 build. This commit updates our activate-account script to remove the need for jquery, so that it works under both Ember 3 and Ember 5 builds.
20 lines
788 B
Plaintext
20 lines
788 B
Plaintext
<div id='simple-container'>
|
|
<div class='activate-account'>
|
|
<h1 class="activate-title"><%= t 'activation.welcome_to', site_name: SiteSetting.title %> <img src="<%= Emoji.url_for("wave") %>" alt="" class="waving-hand"></h1>
|
|
<br/>
|
|
<button class='btn btn-primary' id='activate-account-button'><%= t 'activation.action' %></button>
|
|
|
|
<%= form_tag(perform_activate_account_path, method: :put, id: 'activate-account-form') do %>
|
|
<%= hidden_field_tag 'password_confirmation' %>
|
|
<%= hidden_field_tag 'challenge' %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<%- content_for(:no_ember_head) do %>
|
|
<%= render_google_universal_analytics_code %>
|
|
<%= tag.meta id: 'data-activate-account', data: { path: path('/session/hp') } %>
|
|
<%- end %>
|
|
|
|
<%= preload_script "activate-account" %>
|