docbrown/app/views/users/_account_providers_emails.html.erb
rhymes 2fff21f652
Add email panel to settings/account (#8727)
* Use crayons

* Add spec for Identity.email

* Refactor panels and ifs

* Update app/views/users/_account_providers_emails.html.erb

Co-authored-by: ludwiczakpawel <ludwiczakpawel@gmail.com>

* Update app/views/users/_account_providers_emails.html.erb

Co-authored-by: ludwiczakpawel <ludwiczakpawel@gmail.com>

* Update app/views/users/_account_providers_emails.html.erb

Co-authored-by: ludwiczakpawel <ludwiczakpawel@gmail.com>

Co-authored-by: ludwiczakpawel <ludwiczakpawel@gmail.com>
2020-06-18 13:08:46 +02:00

20 lines
635 B
Text

<div class="crayons-card mb-6 p-5" id="emails">
<h2 class="mb-2">Account emails</h2>
<div>
<ul class="list-none">
<li class="mb-2">
<span class="color-base-60 fw-bold">Primary email</span>
<span><%= @user.email %></span>
</li>
<% @user.identities_enabled.each do |identity| %>
<% provider = authentication_provider(identity.provider) %>
<li class="mb-2">
<span class="color-base-60 fw-bold"><%= provider.official_name %> email</span>
<span><%= identity.email %></span>
</li>
<% end %>
</ul>
</div>
</div>