Better links

This commit is contained in:
Kasper Rynning-Tønnesen
2020-02-12 14:22:32 +01:00
parent b91221273d
commit f22be970a5
3 changed files with 3 additions and 4 deletions

View File

@@ -124,6 +124,7 @@ router.route("/wines/statistics/overall").get(async (req, res) => {
wines[wine._id] = {
name: wine.name,
occurences: wine.occurences,
vivinoLink: wine.vivinoLink,
rating: wine.rating,
image: wine.image,
id: wine.id,

View File

@@ -3,9 +3,7 @@
<div class="container">
<h1 class="title">Alle viner</h1>
<div class="wines-container">
<a :href="wine.vivinoLink" v-for="wine in wines">
<Wine :wine="wine" />
</a>
<Wine :wine="wine" v-for="wine in wines" />
</div>
</div>
</div>

View File

@@ -7,7 +7,7 @@
<h2>{{ wine.name }}</h2>
<span v-if="wine.rating">{{ wine.rating }} rating</span>
<a :herf="wine.vivinoLink" class="wine-link">Les mer</a>
<a :href="wine.vivinoLink" class="wine-link">Les mer</a>
<span class="name-wins">
Vunnet av:
{{wine.winners.join(", ")}}