* 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>
43 lines
1.8 KiB
Text
43 lines
1.8 KiB
Text
<div class="crayons-dropdown left-2 right-2 s:left-auto p-0 top-bar__menu__dropdown">
|
|
<% if user_signed_in? %>
|
|
<div id="user-profile-link-placeholder" class="border-0 border-b-1 border-solid border-base-20 p-1">
|
|
<a id="first-nav-link" class="crayons-link crayons-link--block">
|
|
<div>
|
|
<span class="fw-medium block">...</span>
|
|
<small class="fs-s color-base-50"></small>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="border-0 border-b-1 border-solid border-base-20 p-1">
|
|
<a href="<%= dashboard_path %>" class="crayons-link crayons-link--block">Dashboard</a>
|
|
<a href="<%= new_path %>" class="crayons-link crayons-link--block">Write a Post</a>
|
|
<a href="<%= readinglist_path %>" class="crayons-link crayons-link--block">Reading List</a>
|
|
<a href="<%= user_settings_path %>" class="crayons-link crayons-link--block">Settings</a>
|
|
<a href="<%= information_path %>" class="crayons-link crayons-link--block" id="second-last-nav-link">Key Links</a>
|
|
</div>
|
|
<div class="p-1">
|
|
<a href="<%= signout_confirm_path %>" class="crayons-link crayons-link--block" id="last-nav-link">Sign Out</a>
|
|
</div>
|
|
<% else %>
|
|
<div class="border-0 border-b-1 border-solid border-base-20 p-2 grid gap-2">
|
|
<% if any_selfserve_auth? %>
|
|
<%= render partial: "shared/authentication/providers_nav_menu" %>
|
|
<a
|
|
href="/enter"
|
|
class="crayons-btn crayons-btn--secondary">
|
|
More Sign In Options
|
|
</a>
|
|
<% else %>
|
|
<a
|
|
href="/enter"
|
|
class="crayons-btn crayons-btn--secondary">
|
|
Sign In
|
|
</a>
|
|
<% end %>
|
|
</div>
|
|
<div class="p-1">
|
|
<a href="<%= information_path %>" class="crayons-link crayons-link--block" id="last-nav-link">All about <%= community_name %></a>
|
|
</div>
|
|
<% end %>
|
|
</div>
|