@if (hasError()) {
{{ error() }}
}
@if (hasActiveFilters()) {
}
@if (showFilters()) {
}
@if (hasSelectedPosts()) {
{{ selectedPosts().size }} post(s) selecionado(s)
}
@if (isLoading()) {
} @else if (filteredPosts().length === 0) {
Nenhum post encontrado
@if (hasActiveFilters()) {
Tente ajustar os filtros ou criar um novo post.
} @else {
Comece criando seu primeiro post.
}
} @else {
|
|
Conteúdo |
Tipo |
Status |
Empresa |
Autor |
Engajamento |
Data |
Ações |
@for (post of filteredPosts(); track trackByPostId($index, post)) {
|
|
{{ truncateText(post.contentText, 100) }}
@if (post.hashtags) {
{{ post.hashtags }}
}
@if (post.isPinned) {
Fixado
}
|
{{ getTypeLabel(post.postType!) }}
|
{{ getStatusLabel(post.status!) }}
|
{{ getCompanyName(post.companyId) }}
|
{{ getAuthorName(post.authorId) }}
|
{{ calculateEngagementRate(post) }}%
❤️ {{ post.likeCount || 0 }}
💬 {{ post.commentCount || 0 }}
🔄 {{ post.shareCount || 0 }}
|
@if (post.status === PostStatus.SCHEDULED) {
{{ formatDate(post.scheduledAt || post.scheduledTime!) }}
} @else if (post.publishedAt) {
{{ formatRelativeDate(post.publishedAt) }}
} @else {
{{ formatRelativeDate(post.createdAt!) }}
}
|
|
}
@if (pagination(); as pag) {
}
}
@if (showForm()) {