skill-assessment-app/app/views/admin/user/view.html.erb

15 lines
332 B
Plaintext
Raw Normal View History

2017-03-20 10:57:50 -05:00
<% content_for :section_title, "#{@user.name}" %>
2016-08-18 15:35:17 -05:00
2017-03-20 10:57:50 -05:00
<div><%= @user.name %></div>
<div><%= mail_to(@user.email) %></div>
<div><%= @user.role %></div>
2016-09-15 16:11:44 -05:00
2017-03-20 10:57:50 -05:00
<div>Quizzes:</div>
2016-09-15 16:11:44 -05:00
<ul>
<% @user.quizzes.each do |quiz| %>
<li><%= quiz.name %></li>
<% end %>
</ul>
2017-03-20 10:57:50 -05:00
<%= link_to('Edit', admin_edit_user_path(@user.to_i), { class: "" }) %>