Skip to content

Commit

Permalink
Profile pic path corrected. Fixes OWASP-BLT#1608
Browse files Browse the repository at this point in the history
profile pic path corrected.
  • Loading branch information
errorassassin authored and DonnieBLT committed Nov 25, 2023
1 parent 116bfdf commit fcc8c57
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion website/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -571,4 +571,6 @@ i.fa-5x {

.profileimage{
border-radius:50%;
}
width: 50px;
height: 50px;
}
9 changes: 5 additions & 4 deletions website/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ <h1 class="page-sub-header">{% trans "Latest activity" %}</h1>
{% if leaderboard %}
{% for leader in leaderboard %}
<div class="list-group-item activity-strip flex overflow-hidden" style="height: 80px; display:flex; border: 1px solid #DDDDDD">
<span class="h-full w-1/3 flex justify-center items-center">
{% if leader.socialaccount_set.all.0.get_avatar_url %}
<img src="{{ leader.socialaccount_set.all.0.get_avatar_url }}" class="profileimage" width="50"
height="50">
<span class="h-full w-1/3 flex justify-center items-center">
{% if leader.userprofile.avatar %}
<img src="{{ leader.userprofile.avatar }}" class="profileimage">
{% elif user.socialaccount_set.all.0.get_avatar_url %}
<img src="{{ leader.socialaccount_set.all.0.get_avatar_url }}" class="profileimage">
{% else %}
<img src="{% gravatar_url leader.email 50 %}" class="profileimage">
{% endif %}
Expand Down

0 comments on commit fcc8c57

Please sign in to comment.