kopia lustrzana https://github.com/manuelkasper/sotlas-frontend
Show date on which a route was posted (suggested by HB9DIZ)
rodzic
4214371ff8
commit
6052ba1004
|
@ -33,7 +33,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<article class="routeDescr" v-html="linkifyCoordinates(props.row.htmlDescription ? props.row.htmlDescription : props.row.description)" />
|
<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">
|
<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>
|
<TrackLink :route="props.row" :summit="summit"><font-awesome-icon :icon="['far', 'file-download']" class="fa-icon" /> Download track (.gpx)</TrackLink>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -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>',
|
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,
|
description: track.track_notes,
|
||||||
author: track.callsign,
|
author: track.callsign,
|
||||||
|
postedDate: track.posted_date,
|
||||||
distance,
|
distance,
|
||||||
ascent,
|
ascent,
|
||||||
ascentExcludesCounterAscents: (ascent > 0),
|
ascentExcludesCounterAscents: (ascent > 0),
|
||||||
|
|
Ładowanie…
Reference in New Issue