Убрано отображение аватара для незарег. пользователя
Изменен фон на с меньшим весом
remotes/origin/PR-58
booblegum 9 years ago
parent fb0931cb22
commit d3a86fce34
  1. BIN
      assets/img/main_background.jpg
  2. 32
      templates/partials/header.html
  3. 2
      templates/partials/sass/home.sass

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

@ -35,23 +35,25 @@
</div>
</li>
{% endif %}
<li>
<div class="imgProfile">
<a href="{{ profile_url }}">
{% if request.user.avatar %}
{% thumbnail request.user.avatar "75x75" crop="center" as im %}
<img src="{{ im.url }}" alt="profile-image">
{% endthumbnail %}
{% else %}
{% if request.user.gender == "female" %}
<img src="{% static 'img/avatars/avatar-female.jpg' %}" alt="profile-image">
{% if request.user.is_authenticated %}
<li>
<div class="imgProfile">
<a href="{{ profile_url }}">
{% if request.user.avatar %}
{% thumbnail request.user.avatar "75x75" crop="center" as im %}
<img src="{{ im.url }}" alt="profile-image">
{% endthumbnail %}
{% else %}
<img src="{% static 'img/avatars/avatar-male.jpg' %}" alt="profile-image">
{% if request.user.gender == "female" %}
<img src="{% static 'img/avatars/avatar-female.jpg' %}" alt="profile-image">
{% else %}
<img src="{% static 'img/avatars/avatar-male.jpg' %}" alt="profile-image">
{% endif %}
{% endif %}
{% endif %}
</a>
</div> <!-- //imgProfile -->
</li>
</a>
</div> <!-- //imgProfile -->
</li>
{% endif %}
{% if request.user.is_authenticated %}
<li>
<div class="infoProfile disTab">

@ -3,7 +3,7 @@
.home
background:
image: url("#{$static}/img/main.png")
image: url("#{$static}/img/main_background.jpg")
repeat: no-repeat
position: center
size: cover

Loading…
Cancel
Save