Убрано отображение аватара для незарег. пользователя
Изменен фон на с меньшим весом
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> </div>
</li> </li>
{% endif %} {% endif %}
<li> {% if request.user.is_authenticated %}
<div class="imgProfile"> <li>
<a href="{{ profile_url }}"> <div class="imgProfile">
{% if request.user.avatar %} <a href="{{ profile_url }}">
{% thumbnail request.user.avatar "75x75" crop="center" as im %} {% if request.user.avatar %}
<img src="{{ im.url }}" alt="profile-image"> {% thumbnail request.user.avatar "75x75" crop="center" as im %}
{% endthumbnail %} <img src="{{ im.url }}" alt="profile-image">
{% else %} {% endthumbnail %}
{% if request.user.gender == "female" %}
<img src="{% static 'img/avatars/avatar-female.jpg' %}" alt="profile-image">
{% else %} {% 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 %}
{% endif %} </a>
</a> </div> <!-- //imgProfile -->
</div> <!-- //imgProfile --> </li>
</li> {% endif %}
{% if request.user.is_authenticated %} {% if request.user.is_authenticated %}
<li> <li>
<div class="infoProfile disTab"> <div class="infoProfile disTab">

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

Loading…
Cancel
Save