Skip to content

Commit

Permalink
User profile pic shown in activities.
Browse files Browse the repository at this point in the history
SEA-1384
  • Loading branch information
cyrillkuettel committed Jul 10, 2024
1 parent 754d34f commit 2fdcb96
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/privatim/views/templates/activities.pt
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@

<div class="card d-flex flex-row activity-card-wrapper">
<div class="profile-section m-3">
<img src="${layout.static_url('privatim:static/default_profile_icon.png')}"

<img tal:condition="activity.creator.profile_pic" src="${request.route_url( 'download_file', id=activity.creator.picture.id)}"
class="rounded-circle m-3 profile-icon" alt="Profile Icon">

<img tal:condition="not activity.creator.profile_pic" src="${layout.static_url('privatim:static/default_profile_icon.png')}"
class="rounded-circle m-3 profile-icon" alt="Profile Icon">
"
<tal:b tal:switch="activity.__class__.__name__">
<div tal:case="'Consultation'">
<tal:define define="has_creator python: activity.creator is not None">
Expand Down

0 comments on commit 2fdcb96

Please sign in to comment.