-
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy path_user_form.html.erb
More file actions
42 lines (42 loc) · 1.49 KB
/
Copy path_user_form.html.erb
File metadata and controls
42 lines (42 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<div class="mu-user-header">
<h1><%= t(:my_profile) %></h1>
<div class="mu-profile-actions hidden-xs">
<%= edit_profile_button %>
</div>
</div>
<div class="mu-profile-info">
<div class="mu-profile-info-left">
<%= profile_picture_for(@user, id: 'mu-user-avatar', class: 'mu-user-avatar') %>
<% if in_gamified_context? %>
<svg class="mu-level-progress" width="300" height="300" viewBox="0 0 100 100">
<path id="mu-level-progress" stroke-linecap="round" stroke="#24b8aa" stroke-width="4" stroke-dasharray="0, 999" fill="none" d="M50 10 a 40 40 0 0 1 0 80 a 40 40 0 0 1 0 -80"></path>
</svg>
<div class="mu-level">
<i class="fas fa-star fa-fw fa-4x"></i>
<span class="mu-level-number"></span>
<p><%= t :level %></p>
</div>
<% end %>
</div>
<div class="mu-profile-info-right">
<div>
<span> <strong><%= t :name %>:</strong> <%= "#{@user.name}" %> </span>
</div>
<% if @user.age.present? %>
<div>
<span> <strong><%= t :age %>:</strong> <%= "#{@user.age} #{t :years}" %> </span>
</div>
<% end %>
<div>
<span> <strong><%= t :email %>:</strong> <%= @user.email %> </span>
</div>
<div>
<span> <strong><%= t :programming_since %>:</strong> <%= t(:time_since, time: time_ago_in_words(@user.created_at)) %> </span>
</div>
<hr>
<%= render partial: 'user_delete_account' %>
</div>
</div>
<div class="mu-profile-actions mobile visible-xs">
<%= edit_profile_button %>
</div>