Skip to content

Commit 152e797

Browse files
adjustments to author image p-avatar
1 parent 1641548 commit 152e797

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

angular-primeng-app/src/app/components/post-details/post-details.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ <h1 class="title">{{ post.title }}</h1>
1313
}
1414
</p-avatarGroup>
1515
} @else {
16-
<p-avatar [image]="coAuthor.profilePicture" size="large" shape="circle" title="{{ coAuthor.username}}"></p-avatar>
16+
<p-avatar [image]="post.author.profilePicture" size="large" shape="circle" title="{{ post.author.name}}"></p-avatar>
1717
}
1818
<div class="author-text">
19-
<span class="author-name">{{post.author.name}} {{isTeam && post.coAuthors.length > 0 ? 'with ' +post.coAuthors.length + ' co-author' + (post.coAuthors.length > 1 ? 's' : '') : ''}}</span>
19+
<span class="author-name">{{post.author.name}} {{isTeam && post.coAuthors.length > 0 ? 'with ' + post.coAuthors.length + ' co-author' + (post.coAuthors.length > 1 ? 's' : '') : ''}}</span>
2020
<div class="post-meta">
2121
<p-tag value="{{post.publishedAt | date: 'MMM dd, yyyy' }}"><i
2222
class="tag-icon pi pi-calendar"></i></p-tag>

0 commit comments

Comments
 (0)