Commit 330d376687d81744c1121c6ba1bf076b3503ffdc
1 parent
1d054ada
Exists in
master
and in
5 other branches
best solution I could come up for it, can't actually fit all images without resizing #187
Showing
1 changed file
with
3 additions
and
4 deletions
Show diff stats
users/templates/users/profile.html
... | ... | @@ -43,12 +43,11 @@ |
43 | 43 | <div class="col-lg-12"> |
44 | 44 | <div class="well well-lg"> |
45 | 45 | <div class="row"> |
46 | - <div class="col-md-4"> | |
46 | + | |
47 | 47 | {% if user.image %} |
48 | - <div style="width: 200px; overflow:hidden; margin-left: 8em;"> | |
49 | - <img src="{{ user.image.url }}" class="img-circle img-responsive img-list-user" > | |
50 | - </div> | |
48 | + <div class="col-md-4" style="width: 200px;overflow:hidden;margin-left: 8em;height: 150px;background-image: url('{{user.image.url}}');background-position: center;background-size: cover;"> | |
51 | 49 | {% else %} |
50 | + <div class="col-md-4"> | |
52 | 51 | {% if user.gender == 'M' %} |
53 | 52 | <img src="{% static 'img/male_avatar.png' %}" alt="Avatar" class="img-circle img-responsive img-list-user" style="margin-left: 8em;"> |
54 | 53 | {% else %} | ... | ... |