Przeglądaj źródła

:recycle: adding a link to profile

tags/0.0.1^2
j 3 lat temu
rodzic
commit
18718393aa
1 zmienionych plików z 10 dodań i 9 usunięć
  1. 10
    9
      frontend/src/components/PairsList.vue

+ 10
- 9
frontend/src/components/PairsList.vue Wyświetl plik

@@ -1,15 +1,16 @@
1 1
 <template lang="pug">
2 2
 section.pairs-list
3 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 14
     p(v-else) No {{ tabName }} profiles.
14 15
 </template>
15 16
 

Ładowanie…
Anuluj
Zapisz