Skip to content

Commit

Permalink
Merge pull request #139 from abes-esr/THE-933-Page-personne-rendre-le…
Browse files Browse the repository at this point in the history
…s-noms-des-personnes-cliquables

THE-933-NUXT récupération ppn selon type objet
  • Loading branch information
clementdelafontaine authored Oct 27, 2023
2 parents e55e0b6 + 147ebe7 commit 934530e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/theses/results/ResultCard.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<v-card flat class="card-container">
<div class="first-half" @click="$router.push({ name: 'id', params: { id: id } })">
<div class="first-half" @click="$router.push({ name: 'detail', params: { id: id } })">
<v-card-title>
<div class="card-title-wrapper line-clamp">
<div v-if="!mobile" class="thesis-icon">
Expand Down Expand Up @@ -33,8 +33,8 @@
{{ $t('resultCard.par') }}{{ '\xa0' }}
</span>

<span v-for="(item, index) in auteur" :key="item.ppn">
<span :class="item.ppn ? 'clickable lightblue' : ''" @click="linkTo(item.ppn)">
<span v-for="(item, index) in auteur" :key="item.ppn ? item.ppn : item.id">
<span :class="item.ppn || item.id ? 'clickable lightblue' : ''" @click="linkTo(item.ppn ? item.ppn : item.id)">
<span class="card-text">{{ item.prenom }}{{ '\xa0' }}</span>
<span class="card-text">{{ item.nom }}</span>
</span>{{ '\xa0' }}
Expand All @@ -50,8 +50,8 @@
{{ $t('resultCard.dir') }}{{ '\xa0' }}
</span>

<span v-for="(item, index) in directeurs" :key="item.ppn">
<span :class="item.ppn ? 'clickable lightblue' : ''" @click="linkTo(item.ppn)">
<span v-for="(item, index) in directeurs" :key="item.ppn ? item.ppn : item.id">
<span :class="item.ppn || item.id ? 'clickable lightblue' : ''" @click="linkTo(item.ppn ? item.ppn : item.id)">
<span class="card-text">
{{ item.prenom }}{{ '\xa0' }}
</span>
Expand Down

0 comments on commit 934530e

Please sign in to comment.