Show date on which a route was posted (suggested by HB9DIZ)

beta
Manuel Kasper 2024-03-25 13:44:24 +01:00
rodzic 4214371ff8
commit 6052ba1004
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -33,7 +33,7 @@
</div>
</div>
<article class="routeDescr" v-html="linkifyCoordinates(props.row.htmlDescription ? props.row.htmlDescription : props.row.description)" />
<div class="author">by {{ props.row.author }}</div>
<div class="author">Posted on {{ props.row.postedDate | formatActivationDate }} by {{ props.row.author }}</div>
<div class="track-download" v-if="props.row.track">
<TrackLink :route="props.row" :summit="summit"><font-awesome-icon :icon="['far', 'file-download']" class="fa-icon" /> Download track (.gpx)</TrackLink>
</div>

Wyświetl plik

@ -51,6 +51,7 @@ export default {
htmlDescription: '<p>' + this.escapeHtml(track.track_notes).replace(/\n/g, '<br />') + '</p><p><small>Track imported from <a href="https://www.sotamaps.org" target="_blank">SMP</a></small></p>',
description: track.track_notes,
author: track.callsign,
postedDate: track.posted_date,
distance,
ascent,
ascentExcludesCounterAscents: (ascent > 0),