webdev.camp/app/views/admin/users/show.html.haml

35 lines
742 B
Plaintext

%h2
= @user.name
\:
= @user.email
-if @user.admin?
(Admin)
%h4
= "Resume : "
= link_to "#{@user.resume.percent} %" , admin_resume_path(@user.resume)
%h4
-if app = @user.application
= link_to "Applied" , admin_applies_path(app)
for
= link_to app.primary_choice_course.name , admin_course_path(app.primary_choice_course)
on
= app.created_at.to_date
-else
Not applied
%p
%b= "Last sign : " + @user.last_sign_in_at.to_s
%p
%b= "Sign in count : " + @user.sign_in_count.to_s
%p
%b= "Name : " + @user.name.to_s
%p
%b= "Street : " + @user.street.to_s
%p
%b= "City : " + @user.city.to_s
%p
%b= "Country : " + @user.country.to_s
= link_to "Back", admin_users_path, :class => "btn btn-warning"