From 182d98310e0da41955f1051cb4d662e1cdcf68c3 Mon Sep 17 00:00:00 2001 From: Dominic Villemure Date: Sun, 25 Aug 2024 16:39:59 -0400 Subject: [PATCH] Possibility to redirect to the creator from the content cards --- src/views/contents/contentcards/NContentCard.vue | 4 ++-- src/views/contents/contentcards/SmContentCard.vue | 12 ++---------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/views/contents/contentcards/NContentCard.vue b/src/views/contents/contentcards/NContentCard.vue index 83fb42a..9282a3c 100644 --- a/src/views/contents/contentcards/NContentCard.vue +++ b/src/views/contents/contentcards/NContentCard.vue @@ -10,9 +10,9 @@ class="rounded-full" width="32px" height="32px"> -
+ {{ props.content.createdByName }} -
+ {{ time_ago(props.content.createdAt) }} diff --git a/src/views/contents/contentcards/SmContentCard.vue b/src/views/contents/contentcards/SmContentCard.vue index 974dffc..c6aa969 100644 --- a/src/views/contents/contentcards/SmContentCard.vue +++ b/src/views/contents/contentcards/SmContentCard.vue @@ -10,9 +10,9 @@ class="rounded-full" width="32px" height="32px"> -
+ {{ props.content.createdByName }} -
+ {{ time_ago(props.content.createdAt) }} @@ -197,14 +197,6 @@ function toggleComments() { messagesVisible.value = !messagesVisible.value; } -function likeContent() { - console.log('Content liked'); -} - -function dislikeContent() { - console.log('Content disliked'); -} - function getComponent(url) { if (url.includes('youtube.com') || url.includes('youtu.be')) { return YoutubePlayer;