From fb663ff0cfb9973e08e7210562a837ea1e4e381c Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Sat, 24 Sep 2022 19:45:36 +0200 Subject: User page --- components/ModelBoxCard.vue | 2 +- pages/models/_id/index.vue | 2 +- pages/user/_id.vue | 74 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 76 insertions(+), 2 deletions(-) create mode 100644 pages/user/_id.vue diff --git a/components/ModelBoxCard.vue b/components/ModelBoxCard.vue index a6085b7..110c234 100644 --- a/components/ModelBoxCard.vue +++ b/components/ModelBoxCard.vue @@ -17,7 +17,7 @@ .mr-3.float-left user-avatar(:data="model.author") p.leading-8 - a.text-green-800(class="hover:text-green-700" :href="'/users/'+model.author.username") + a.text-green-800(class="hover:text-green-700" :href="'/user/'+model.author_id") | @ span.underline {{ model.author.username }} diff --git a/pages/models/_id/index.vue b/pages/models/_id/index.vue index 238aea7..cfa11b2 100644 --- a/pages/models/_id/index.vue +++ b/pages/models/_id/index.vue @@ -43,7 +43,7 @@ .mr-3.float-left user-avatar(:data="model.author") p.leading-8 - a.text-green-800(class="hover:text-green-700" :href="'/users/'+model.author.username") + a.text-green-800(class="hover:text-green-700" :href="'/user/'+model.author_id") | @ span.underline {{ model.author.username }} .description.mt-3 diff --git a/pages/user/_id.vue b/pages/user/_id.vue new file mode 100644 index 0000000..be282af --- /dev/null +++ b/pages/user/_id.vue @@ -0,0 +1,74 @@ + + + -- cgit v1.2.3-18-g5258