This commit is contained in:
Bob 2020-09-13 15:22:31 +08:00
parent f22e365db1
commit 21aa84f95c
2 changed files with 10 additions and 11 deletions

View File

@ -315,11 +315,10 @@
<li class="profile">
<a href="#" data-toggle="dropdown" class="toggle">
{# {% for u in user.userprofile_set.all %}#}
{##}
{# <img src="{{ u.image.url }}" alt="user-image"#}
{# class="img-circle img-inline">#}
{# {% endfor %}#}
{% for u in user.userprofile_set.all %}
<img src="{{ u.image.url }}" alt="user-image"
class="img-circle img-inline">
{% endfor %}
<span><i class="fa fa-angle-down"></i></span>
</a>
<ul class="dropdown-menu profile animated fadeIn">

View File

@ -4,9 +4,9 @@
<div class="profile-image col-md-4 col-sm-4 col-xs-4">
<a href="{% url 'dashboard-index' %}">
{# {% for u in user.userprofile_set.all %}#}
{# <img src="{{ u.image.url }}" class="img-responsive img-circle">#}
{# {% endfor %}#}
{% for u in user.userprofile_set.all %}
<img src="{{ u.image.url }}" class="img-responsive img-circle">
{% endfor %}
</a>
</div>
@ -19,9 +19,9 @@
<span class="profile-status online"></span>
</h3>
{# {% for u in user.userprofile_set.all %}#}
{# <p class="profile-title">{{ u.organization }}</p>#}
{# {% endfor %}#}
{% for u in user.userprofile_set.all %}
<p class="profile-title">{{ u.organization }}</p>
{% endfor %}
</div>
</div>