Better links
This commit is contained in:
@@ -124,6 +124,7 @@ router.route("/wines/statistics/overall").get(async (req, res) => {
|
|||||||
wines[wine._id] = {
|
wines[wine._id] = {
|
||||||
name: wine.name,
|
name: wine.name,
|
||||||
occurences: wine.occurences,
|
occurences: wine.occurences,
|
||||||
|
vivinoLink: wine.vivinoLink,
|
||||||
rating: wine.rating,
|
rating: wine.rating,
|
||||||
image: wine.image,
|
image: wine.image,
|
||||||
id: wine.id,
|
id: wine.id,
|
||||||
|
|||||||
@@ -3,9 +3,7 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<h1 class="title">Alle viner</h1>
|
<h1 class="title">Alle viner</h1>
|
||||||
<div class="wines-container">
|
<div class="wines-container">
|
||||||
<a :href="wine.vivinoLink" v-for="wine in wines">
|
<Wine :wine="wine" v-for="wine in wines" />
|
||||||
<Wine :wine="wine" />
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<h2>{{ wine.name }}</h2>
|
<h2>{{ wine.name }}</h2>
|
||||||
<span v-if="wine.rating">{{ wine.rating }} rating</span>
|
<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">
|
<span class="name-wins">
|
||||||
Vunnet av:
|
Vunnet av:
|
||||||
{{wine.winners.join(", ")}}
|
{{wine.winners.join(", ")}}
|
||||||
|
|||||||
Reference in New Issue
Block a user