Skip to content

Commit

Permalink
Fixes in employee view
Browse files Browse the repository at this point in the history
  • Loading branch information
agubelu committed Apr 24, 2017
1 parent 09bc6f9 commit 4f116c9
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ <h1>{% trans 'profile' %}</h1>
</a>
</li>
<li>
<img src="{{ MEDIA_URL }}{{employee.picture}}" class="img-circle profile_img" alt="employee">
{% if employee.picture %}
<img src="{{ MEDIA_URL }}{{employee.picture}}" class="img-circle profile_img" alt="employee">
{% else %}
<img src="/static/avatar.png" class="img-circle profile_img" alt="employee">
{% endif %}
</li>
<li>
<a>
Expand Down Expand Up @@ -70,7 +74,8 @@ <h3 class="name_title">{{employee.user}}</h3>
<b>{% trans 'departments' %}</b> <span class="pull-right">0</span>
</li>
<li style="text-align: center">
<span>{{employee.registryDate}}</span>

<span>{% trans 'registryDate' %}: {{employee.registryDate}}</span>
</li>
<li style="text-align: center">
<span>
Expand Down

0 comments on commit 4f116c9

Please sign in to comment.