2013-02-06 03:16:51 +08:00
|
|
|
<div id='simple-container'>
|
2022-07-30 01:03:11 +08:00
|
|
|
<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>
|
2014-07-15 00:25:42 +08:00
|
|
|
<br/>
|
2016-07-14 18:40:50 +08:00
|
|
|
<button class='btn btn-primary' id='activate-account-button'><%= t 'activation.action' %></button>
|
2014-07-15 00:25:42 +08:00
|
|
|
|
|
|
|
<%= form_tag(perform_activate_account_path, method: :put, id: 'activate-account-form') do %>
|
2014-07-16 02:07:19 +08:00
|
|
|
<%= hidden_field_tag 'password_confirmation' %>
|
|
|
|
<%= hidden_field_tag 'challenge' %>
|
2013-02-06 03:16:51 +08:00
|
|
|
<% end %>
|
2022-07-30 01:03:11 +08:00
|
|
|
</div>
|
2014-07-15 00:25:42 +08:00
|
|
|
</div>
|
2013-02-26 00:42:20 +08:00
|
|
|
|
2015-01-16 04:56:53 +08:00
|
|
|
<%- content_for(:no_ember_head) do %>
|
DEV: Allow Ember CLI assets to be used by development Rails app (#16511)
Previously, accessing the Rails app directly in development mode would give you assets from our 'legacy' Ember asset pipeline. The only way to run with Ember CLI assets was to run ember-cli as a proxy. This was quite limiting when working on things which are bypassed when using the ember-cli proxy (e.g. changes to `application.html.erb`). Also, since `ember-auto-import` introduced chunking, visiting `/theme-qunit` under Ember CLI was failing to include all necessary chunks.
This commit teaches Sprockets about our Ember CLI assets so that they can be used in development mode, and are automatically collected up under `/public/assets` during `assets:precompile`. As a bonus, this allows us to remove all the custom manifest modification from `assets:precompile`.
The key changes are:
- Introduce a shared `EmberCli.enabled?` helper
- When ember-cli is enabled, add ember-cli `/dist/assets` as the top-priority Rails asset directory
- Have ember-cli output a `chunks.json` manifest, and teach `preload_script` to read it and append the correct chunks to their associated `afterFile`
- Remove most custom ember-cli logic from the `assets:precompile` step. Instead, rely on Rails to take care of pulling the 'precompiled' assets into the `public/assets` directory. Move the 'renaming' logic to runtime, so it can be used in development mode as well.
- Remove fingerprinting from `ember-cli-build`, and allow Rails to take care of things
Long-term, we may want to replace Sprockets with the lighter-weight Propshaft. The changes made in this commit have been made with that long-term goal in mind.
tldr: when you visit the rails app directly, you'll now be served the current ember-cli assets. To keep these up-to-date make sure either `ember serve`, or `ember build --watch` is running. If you really want to load the old non-ember-cli assets, then you should start the server with `EMBER_CLI_PROD_ASSETS=0`. (the legacy asset pipeline will be removed very soon)
2022-04-21 23:26:34 +08:00
|
|
|
<%= preload_script "vendor" %>
|
2016-04-02 03:59:08 +08:00
|
|
|
<%= render_google_universal_analytics_code %>
|
2020-10-02 07:01:40 +08:00
|
|
|
<%= tag.meta id: 'data-activate-account', data: { path: path('/session/hp') } %>
|
2014-07-16 02:07:19 +08:00
|
|
|
<%- end %>
|
|
|
|
|
2018-10-25 21:52:01 +08:00
|
|
|
<%= preload_script "activate-account" %>
|