Explorar el Código

:recycle: adding a link to profile

tags/0.0.1^2
j hace 3 años
padre
commit
18718393aa
Se han modificado 1 ficheros con 10 adiciones y 9 borrados
  1. 10
    9
      frontend/src/components/PairsList.vue

+ 10
- 9
frontend/src/components/PairsList.vue Ver fichero

1
 <template lang="pug">
1
 <template lang="pug">
2
 section.pairs-list
2
 section.pairs-list
3
     article(v-if='pairs.length')
3
     article(v-if='pairs.length')
4
-        .pair.w-flex.align-center.justify-space-around(v-for='pair in pairs')
5
-            .dot--icon
6
-            .avatar
7
-            .idCard
8
-                p {{ pair.profile.name }}
9
-                p {{ pair.profile.pid }}
10
-                p since: {{ pair.grouping.createdAt }}
11
-                p updated: {{ pair.grouping.lastUpdatedAt }}
12
-                p paired: {{ pair.grouping.is_paired }}
4
+        template(v-for='pair in pairs')
5
+            router-link.pair.w-flex.align-center.justify-space-around(:to='`/profile/${pair.profile.pid}`')
6
+                .dot--icon
7
+                .avatar
8
+                .idCard
9
+                    p {{ pair.profile.name }}
10
+                    p {{ pair.profile.pid }}
11
+                    p since: {{ pair.grouping.createdAt }}
12
+                    p updated: {{ pair.grouping.lastUpdatedAt }}
13
+                    p paired: {{ pair.grouping.is_paired }}
13
     p(v-else) No {{ tabName }} profiles.
14
     p(v-else) No {{ tabName }} profiles.
14
 </template>
15
 </template>
15
 
16
 

Loading…
Cancelar
Guardar