|
18 | 18 | <div class="flex flex-column gap-half margin-block-end"> |
19 | 19 | <h1 class="txt-x-large margin-none"><%= @user.name %></h1> |
20 | 20 | <div class="txt-medium"> |
21 | | - <% if @user.active? %> |
22 | | - <%= mail_to @user.identity.email_address %> |
23 | | - <% else %> |
| 21 | + <% if !@user.active? %> |
24 | 22 | <%= @user.name %> is no longer on this account |
| 23 | + <% elsif !@user.verified? %> |
| 24 | + Unverified |
| 25 | + <div class="txt-small txt-tinted">A sign-in code has been sent to this email address, but the user has not yet logged in to confirm their identity.</div> |
| 26 | + <% else %> |
| 27 | + <%= mail_to @user.identity.email_address %> |
25 | 28 | <% end %> |
26 | 29 | </div> |
27 | 30 | </div> |
28 | 31 |
|
29 | | - <div class="flex-inline center justify-center flex-wrap gap"> |
30 | | - <%= link_to "Which cards are assigned to #{me_or_you}?", |
31 | | - cards_path(assignee_ids: [ @user.id ], sorted_by: "newest"), class: "btn", data: { turbo_frame: "_top" } %> |
32 | | - <%= link_to "Which cards were added by #{me_or_you}?", |
33 | | - cards_path(creator_ids: [ @user.id ], sorted_by: "newest"), class: "btn", data: { turbo_frame: "_top" } %> |
34 | | - </div> |
| 32 | + <% if @user.verified? %> |
| 33 | + <div class="flex-inline center justify-center flex-wrap gap"> |
| 34 | + <%= link_to "Which cards are assigned to #{me_or_you}?", |
| 35 | + cards_path(assignee_ids: [ @user.id ], sorted_by: "newest"), class: "btn", data: { turbo_frame: "_top" } %> |
| 36 | + <%= link_to "Which cards were added by #{me_or_you}?", |
| 37 | + cards_path(creator_ids: [ @user.id ], sorted_by: "newest"), class: "btn", data: { turbo_frame: "_top" } %> |
| 38 | + </div> |
| 39 | + <% end %> |
35 | 40 | </div> |
36 | 41 | </section> |
37 | 42 |
|
|
48 | 53 | <% end %> |
49 | 54 | </div> |
50 | 55 |
|
51 | | -<%= turbo_frame_tag "user_events", src: user_events_path(@user) %> |
| 56 | +<% if @user.verified? %> |
| 57 | + <%= turbo_frame_tag "user_events", src: user_events_path(@user) %> |
| 58 | +<% end %> |
0 commit comments