app/views/users/show.html.haml
.title_tools
- if @user == current_user || current_user.admin?
= link_to_inline(:edit_profile, edit_user_path(@user), text: t(:edit_profile)) + " | "
= link_to_inline(:upload_avatar, avatar_user_path(@user), text: t(:upload_picture)) + " | "
= link_to_inline(:change_password, password_user_path(@user), text: t(:change_password))
.title#title= (@user == current_user ? t(:my_profile) : t(:profile))
%div#edit_profile{ hidden }
%div#upload_avatar{ hidden }
%div#change_password{ hidden }
.list#profile= render "user"
= hook(:show_user_bottom, self)
%iframe#uploading{ name: "uploading", style: "width:100px; height:10px; border:5px" }