-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathshow.html.erb
More file actions
29 lines (24 loc) · 1.02 KB
/
show.html.erb
File metadata and controls
29 lines (24 loc) · 1.02 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
<%= render partial: 'nav' %>
<h2>My Account</h2>
<div class="participant-details">
<%= image_tag @user.gravatar_url(:rating => 'R', :secure => true, :size => 200, default: 'mm'), class: 'avatar' %>
<section class="participant-entries">
<ul class="nobullets">
<li>Username: <%= @user.login %></li>
<li>E-mail: <%= mail_to(@user.email, @user.email) %></li>
<% for field in UserField.all %>
<% if field.field_type != :html %>
<li><%= raw(field.name.humanize) %>: <%= extra_field_value(@user.field_value_record(field)) %></li>
<% end %>
<% end %>
</ul>
</section>
</div>
<%= render 'layouts/points', courses: @courses, title: 'Points', show_course_name: true %>
<section>
<h2>Submissions</h2>
<% if @submissions.size < @submission_count %>
<p>Showing latest <%= @submissions.size%> of <%= @submission_count %> submissions. <%= link_to "View all submissions", participant_path(@user, view_all: 1) %></p>
<% end %>
<%= show_submission_list(@submissions) %>
</section>