28 lines
816 B
Plaintext
28 lines
816 B
Plaintext
|
|
|
|
|
|
<div class="user-container">
|
|
<div class="profile">
|
|
<div class="profile-pic">
|
|
<% if @user.photo.url.nil? %>
|
|
<%= image_tag "https://upload.wikimedia.org/wikipedia/commons/8/89/Portrait_Placeholder.png", class: "img-circle"%>
|
|
<% else %>
|
|
<%= cl_image_tag @user.photo, class: "img-circle"%>
|
|
<% end %>
|
|
|
|
</div>
|
|
<div class="profile-text">
|
|
<h1><%= @user.first_name %> <%= @user.last_name %></h1>
|
|
<h2 class="italics" ><%= @user.email %></h2>
|
|
</div>
|
|
|
|
<div class="flex-end">
|
|
<%= link_to "Edit Information", user_edit_path(@user), class: "btn btn-primary" %>
|
|
<%= link_to "Delete Account", user_path(@user), class: "btn btn-danger", method: :delete, data: {
|
|
confirm: "Are you sure?"
|
|
} %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|