diff --git a/apps/frontend/src/app/components/art/art-gallery.component.ts b/apps/frontend/src/app/components/art/art-gallery.component.ts index cb015c9..a02795b 100644 --- a/apps/frontend/src/app/components/art/art-gallery.component.ts +++ b/apps/frontend/src/app/components/art/art-gallery.component.ts @@ -7,6 +7,7 @@ import { Component, OnInit, inject, signal, computed } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; +import { RouterModule } from '@angular/router'; import { ArtService } from '../../services/art.service'; import { AuthService } from '../../services/auth.service'; import { CommentsService } from '../../services/comments.service'; @@ -14,13 +15,12 @@ import { SanitizeService } from '../../services/sanitize.service'; import { SuggestionService } from '../../services/suggestion.service'; import { PaginationComponent } from '../shared/pagination.component'; import { LikeButtonComponent } from '../shared/like-button.component'; -import { CommentDisplayComponent } from '../comment-display/comment-display.component'; import { Art, CreateArtDto, UpdateArtDto, Comment, SuggestionEntity, Link } from '@library/shared-types'; @Component({ selector: 'app-art-gallery', standalone: true, - imports: [CommonModule, FormsModule, PaginationComponent, LikeButtonComponent, CommentDisplayComponent], + imports: [CommonModule, FormsModule, RouterModule, PaginationComponent, LikeButtonComponent], template: `
by {{ art.artist }}
-Added: {{ formatDate(art.dateAdded) }}
+by {{ art.artist }}
+- 📚 {{ book.series }}@if (book.seriesOrder) { #{{ book.seriesOrder }}} -
+ + @if (book.coverImage) { +- 📖 Reading Time: {{ formatTimeSpent(book.timeSpent) }} -
- } + @if (book.rating) { + + } +ISBN: {{ book.isbn }}
- } - - @if (book.notes) { -{{ book.notes }}
- } - - @if (book.tags && book.tags.length > 0) { - - } - - @if (book.links && book.links.length > 0) { -- Started: {{ formatDate(book.dateStarted) }} -
- } - - @if (book.dateFinished) { -- Finished: {{ formatDate(book.dateFinished) }} -
- } - - @if (book.createdAt) { -- Added: {{ formatDate(book.createdAt) }} -
- } - - @if (book.updatedAt) { -- Updated: {{ formatDate(book.updatedAt) }} -
- } - @if (authService.isAdmin()) { -{{ game.platform }}
- } - @if (game.series) { -- 📚 {{ game.series }}@if (game.seriesOrder) { #{{ game.seriesOrder }}} -
- } - - {{ getStatusLabel(game.status) }} - - - @if (game.rating) { - + + @if (game.coverImage) { +- ⏱️ Time Played: {{ formatTimeSpent(game.timeSpent) }} -
- } +{{ game.platform }}
+ } + + {{ getStatusLabel(game.status) }} + + @if (game.rating) { + + } +{{ game.notes }}
- } - - @if (game.tags && game.tags.length > 0) { - - } - - @if (game.links && game.links.length > 0) { -- Started: {{ formatDate(game.dateStarted) }} -
- } - - @if (game.dateFinished) { -- Finished: {{ formatDate(game.dateFinished) }} -
- } - -- Added: {{ formatDate(game.createdAt) }} -
- -- Updated: {{ formatDate(game.updatedAt) }} -
- @if (authService.isAdmin()) { -- 📚 Reading Time: {{ formatTimeSpent(manga.timeSpent) }} -
- } +{{ manga.notes }}
- } - - @if (manga.tags && manga.tags.length > 0) { - - } - - @if (manga.links && manga.links.length > 0) { -- Started: {{ formatDate(manga.dateStarted) }} -
- } - - @if (manga.dateFinished) { -- Finished: {{ formatDate(manga.dateFinished) }} -
- } - - @if (manga.createdAt) { -- Added: {{ formatDate(manga.createdAt) }} -
- } - - @if (manga.updatedAt) { -- Updated: {{ formatDate(manga.updatedAt) }} -
- } - @if (authService.isAdmin()) { -{{ music.artist }}
- -