Commit 7acb40541d537dee39931df0b96da4e9b72fcdd2
1 parent
131b2f1c
Exists in
master
and in
5 other branches
Avatar in list user & default width
Showing
4 changed files
with
11 additions
and
2 deletions
Show diff stats
core/static/css/base/amadeus.css
... | ... | @@ -321,4 +321,9 @@ body .container .jumbotron-inverse, body .container .well-inverse, body .contain |
321 | 321 | background-color: #FF0000; |
322 | 322 | } |
323 | 323 | |
324 | +.img-list-user{ | |
325 | + width: 150px; | |
326 | + height: 150px; | |
327 | +} | |
328 | + | |
324 | 329 | .datepicker{z-index:9999 !important} |
325 | 330 | \ No newline at end of file | ... | ... |
30.5 KB
28.8 KB
users/templates/list_users.html
... | ... | @@ -51,9 +51,13 @@ |
51 | 51 | <div class="panel-body"> |
52 | 52 | <div class="col-md-4"> |
53 | 53 | {% if acc.image %} |
54 | - <img src="{{ acc.image.url }}" alt="photoUser" class="img-circle img-responsive"> | |
54 | + <img src="{{ acc.image.url }}" alt="photoUser" class="img-circle img-responsive img-list-user"> | |
55 | 55 | {% else %} |
56 | - <img src="{% static 'images/avatar.png' %}" alt="Avatar" class="img-circle img-responsive"> | |
56 | + {% if acc.gender == 'M' %} | |
57 | + <img src="{% static 'img/male_avatar.png' %}" alt="Avatar" class="img-circle img-responsive img-list-user"> | |
58 | + {% else %} | |
59 | + <img src="{% static 'img/female_avatar.png' %}" alt="Avatar" class="img-circle img-responsive img-list-user"> | |
60 | + {% endif %} | |
57 | 61 | {% endif %} |
58 | 62 | </div> |
59 | 63 | <div class="col-md-8"> | ... | ... |