[UPDT] PMS: Changed employee image to get_avatar method

This commit is contained in:
Horilla
2023-11-03 14:00:32 +05:30
parent 71708c7e81
commit 0b218c8c6b
3 changed files with 7 additions and 25 deletions

View File

@@ -146,24 +146,6 @@
<div class="oh-card-dashboard__header oh-card-dashboard__header--divider">
<span class="oh-card-dashboard__title"> {% trans "OKR At-Risk" %}</span>
</div>
{% comment %} <div class="oh-card-dashboard__body">
<ul class="oh-card-dashboard__user-list">
{% for okr in okr_at_risk %}
<li class="oh-card-dashboard__user-item">
<a href="{%url 'objective-detailed-view' emp_obj_id=okr.id %}">
<div class="oh-profile oh-profile--md">
<div class="oh-profile__avatar mr-1">
<img src="https://ui-avatars.com/api/?name=Beth+Gibbons&background=random"
class="oh-profile__image" alt="Beth Gibbons" />
</div>
<span class="oh-profile__name oh-text--dark">{{okr.employee_id}}</span>
</div>
</a>
</li>
{% endfor %}
</ul>
</div> {% endcomment %}
<div class="oh-card-dashboard__body">
{% if okr_at_risk %}
<ul class="oh-card-dashboard__user-list">
@@ -172,8 +154,8 @@
<a href="{%url 'objective-detailed-view' emp_obj_id=okr.id %}">
<div class="oh-profile oh-profile--md">
<div class="oh-profile__avatar mr-1">
<img src="https://ui-avatars.com/api/?name=Beth+Gibbons&background=random"
class="oh-profile__image" alt="Beth Gibbons" />
<img src="{{okr.employee_id.get_avatar}}"
class="oh-profile__image" alt="" />
</div>
<span class="oh-profile__name oh-text--dark">{{okr.employee_id}}</span>
</div>

View File

@@ -104,7 +104,7 @@
<a href="{% url 'feedback-detailed-view' id=feedback.id %}" style="color: inherit;text-decoration: none;" class="oh-sticky-table__sd">
<div class="oh-profile oh-profile--md">
<div class="oh-profile__avatar mr-1">
<img src="https://ui-avatars.com/api/?name={{feedback.employee_id}}&background=random" class="oh-profile__image"/>
<img src="{{feedback.employee_id.get_avatar}}" class="oh-profile__image"/>
</div>
<span class="oh-profile__name oh-text--dark">{{feedback.employee_id}}</span>
</div>
@@ -242,7 +242,7 @@
<a href="{% url 'feedback-detailed-view' id=feedback.id %}" style="color: inherit;text-decoration: none;" class="oh-sticky-table__sd">
<div class="oh-profile oh-profile--md">
<div class="oh-profile__avatar mr-1">
<img src="https://ui-avatars.com/api/?name={{feedback.employee_id}}&background=random" class="oh-profile__image"/>
<img src="{{feedback.employee_id.get_avatar}}" class="oh-profile__image"/>
</div>
<span class="oh-profile__name oh-text--dark">{{feedback.employee_id}}</span>
</div>
@@ -384,7 +384,7 @@
<a href="{% url 'feedback-detailed-view' id=feedback.id %}" style="color: inherit;text-decoration: none;" class="oh-sticky-table__sd">
<div class="oh-profile oh-profile--md">
<div class="oh-profile__avatar mr-1">
<img src="https://ui-avatars.com/api/?name={{feedback.employee_id}}&background=random" class="oh-profile__image"/>
<img src="{{feedback.employee_id.get_avatar}}" class="oh-profile__image"/>
</div>
<span class="oh-profile__name oh-text--dark">{{feedback.employee_id}}</span>
</div>

View File

@@ -86,7 +86,7 @@
<div class="oh-profile oh-profile--md">
<div class="oh-profile__avatar mr-1">
<img
src="https://ui-avatars.com/api/?name={{own_objective.employee_id}}&background=random"
src="{{own_objective.employee_id.get_avatar}}"
class="oh-profile__image"
/>
</div>
@@ -304,7 +304,7 @@
<div class="oh-profile oh-profile--md">
<div class="oh-profile__avatar mr-1">
<img
src="https://ui-avatars.com/api/?name={{all_objective.employee_id}}&background=random"
src="{{all_objective.employee_id.get_avatar}}"
class="oh-profile__image"
/>
</div>