|
2 | 2 | <div class="content profile-hero__inner"> |
3 | 3 | <p class="eyebrow"><%= h platform_name(record.fetch(:platform)) %></p> |
4 | 4 | <div class="profile-identity"> |
| 5 | + <% profile_deleted = record[:profile_deleted] == 1 %> |
5 | 6 | <% avatar_url = safe_external_url(record[:avatar_url]) %> |
6 | 7 | <% source_url = safe_external_url(record[:html_url]) %> |
7 | 8 | <% homepage_url = safe_external_url(record[:homepage]) %> |
|
13 | 14 | <div> |
14 | 15 | <div class="profile-title-row"> |
15 | 16 | <h1><%= h(record[:name].to_s.empty? ? record.fetch(:login) : record[:name]) %></h1> |
16 | | - <%= erb :"shared/elite_medal", locals: { rank: record[:elite_rank], size: "large" } %> |
17 | | - </div> |
18 | | - <p class="profile-login">@<%= h record.fetch(:login) %></p> |
19 | | - <div class="profile-actions"> |
20 | | - <% if source_url %> |
21 | | - <a class="profile-action" href="<%= h source_url %>"><%= h t("#{translation_scope}.links.source_profile", platform: platform_name(record.fetch(:platform))) %></a> |
22 | | - <% end %> |
23 | | - <% if homepage_url %> |
24 | | - <a class="profile-action" href="<%= h homepage_url %>"><%= h t('users.links.homepage') %></a> |
| 17 | + <% unless profile_deleted %> |
| 18 | + <%= erb :"shared/elite_medal", locals: { rank: record[:elite_rank], size: "large" } %> |
25 | 19 | <% end %> |
26 | 20 | </div> |
| 21 | + <p class="profile-login"><%= h(profile_deleted ? t("#{translation_scope}.deleted.label") : record.fetch(:login)) %></p> |
| 22 | + <% unless profile_deleted %> |
| 23 | + <div class="profile-actions"> |
| 24 | + <% if source_url %> |
| 25 | + <a class="profile-action" href="<%= h source_url %>"><%= h t("#{translation_scope}.links.source_profile", platform: platform_name(record.fetch(:platform))) %></a> |
| 26 | + <% end %> |
| 27 | + <% if homepage_url %> |
| 28 | + <a class="profile-action" href="<%= h homepage_url %>"><%= h t('users.links.homepage') %></a> |
| 29 | + <% end %> |
| 30 | + </div> |
| 31 | + <% end %> |
27 | 32 | </div> |
28 | 33 | </div> |
29 | 34 | </div> |
30 | 35 | </section> |
31 | 36 |
|
32 | | -<%= erb :"shared/location_notice" %> |
| 37 | +<% unless profile_deleted %> |
| 38 | + <%= erb :"shared/location_notice" %> |
| 39 | +<% end %> |
0 commit comments