Merge pull request #43 from beatriceo/front-end

changed profile image size
This commit is contained in:
Beatrice Olivera 2018-09-03 09:07:42 +01:00 committed by GitHub
commit 076489ecd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -57,3 +57,8 @@
margin-top: 5px;
margin-bottom: 5px;
}
.img-profile {
width: 200px;
height: 200px;
}

View File

@ -3,7 +3,7 @@
<div class="col-xs-12 col-md-3 vcenter">
<div class="profile-pic vertical-padding">
<% if @user.photo.url.nil? %>
<%= image_tag "https://upload.wikimedia.org/wikipedia/commons/8/89/Portrait_Placeholder.png", class: "img-circle"%>
<%= image_tag "https://upload.wikimedia.org/wikipedia/commons/8/89/Portrait_Placeholder.png", class: "img-circle img-profile"%>
<% else %>
<%= cl_image_tag @user.photo, class: "img-circle"%>
<% end %>