Skip to content
Snippets Groups Projects
Commit 0e064c5b authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

Merge branch 'fix/updated-date-posts' into 'dev'

fix: display updated_at instead of published_at

See merge request web-et-numerique/pamn_plateforme-des-acteurs-de-la-mediation-numerique/pamn_client!140
parents dfed5636 36a68a45
No related branches found
No related tags found
3 merge requests!178release V1.10.0,!154Dev,!140fix: display updated_at instead of published_at
......@@ -27,7 +27,7 @@
</div>
<div fxLayout="column" class="informations">
<div fxLayout="row">
{{ post.published_at | date: 'shortDate' }}
{{ post.updated_at | date: 'shortDate' }}
</div>
<div fxLayout="row">par {{ post.author }}</div>
</div>
......
......@@ -24,7 +24,7 @@
<div fxLayout="column" class="informations" *ngIf="post.tags[0] && post.tags[0].slug != 'appels'">
<div fxLayout="row">
{{ post.published_at | date: 'shortDate' }}
{{ post.updated_at | date: 'shortDate' }}
</div>
<div fxLayout="row">par {{ post.author }}</div>
</div>
......
......@@ -4,6 +4,7 @@ import { Tag } from './tag.model';
export class Post {
id: number;
published_at: Date;
updated_at: Date;
title: string;
excerpt: string;
feature_image: string;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment