docbrown/app/views/layouts/_signup_modal.html.erb
Ben Halpern da6a6739e5
[deploy] Invite users to join and create password (#9294)
* Initial invitation work

* Add more invitation code

* Add proper registration page

* Fix up tests

* Fix failings

* Fix spec

* Add self-serve auth config

* Add registered condition

* Change profile image call and registered_at test

* Change comment

* Fix copy test

* Stub emojipedia

* Linting

* Add registered at to factory

* Ensure registered for user tag

* Update app/views/internal/invitations/index.html.erb

Co-authored-by: Michael Kohl <citizen428@dev.to>

* Update app/controllers/internal/invitations_controller.rb

Co-authored-by: Michael Kohl <citizen428@dev.to>

* Slight changes

* Update recover password flow

* Update app/views/internal/invitations/index.html.erb

Co-authored-by: Michael Kohl <citizen428@dev.to>

* Update app/controllers/internal/invitations_controller.rb

Co-authored-by: Michael Kohl <citizen428@dev.to>

* Update db/schema.rb

Co-authored-by: Michael Kohl <citizen428@dev.to>
2020-07-15 11:37:19 -04:00

30 lines
1.1 KiB
Text

<div class="global-signup-modal" id="global-signup-modal" style="display:none">
<div class="global-signup-modal--bg" id="global-signup-modal-bg">
<button type="button" class="close-modal-button">
<img src="<%= asset_path("cancel.svg") %>" class="search-img" alt="Close modal button" />
</button>
</div>
<div class="global-signup-modal--inner-a">
<%= image_tag(cloudinary(SiteConfig.mascot_image_url, 300),
class: "mascot-image",
alt: SiteConfig.mascot_image_description,
loading: "lazy") %>
<% if any_selfserve_auth? %>
<h1>Join our <%= community_qualified_name %> :)</h1>
<% if SiteConfig.tagline.present? %>
<p><%= SiteConfig.tagline %></p>
<% end %>
<div class="flex flex-col l:flex-row justify-center">
<%= render partial: "shared/authentication/providers_signup_modal" %>
</div>
<p>
<em>We strive for transparency and don't collect excess data.</em>
</p>
<% else %>
<h1><a href="/enter" data-no-instant>Sign in</a> to <%= community_qualified_name %> :)</h1>
<% end %>
</div>
</div>