|
|
|
@@ -13,7 +13,8 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
props: {
|
|
|
|
|
options: Object,
|
|
|
|
|
project: Object
|
|
|
|
|
project: Object,
|
|
|
|
|
hikes: Object
|
|
|
|
|
},
|
|
|
|
|
inject: ['lang', 'consts', 'isMobile'],
|
|
|
|
|
computed: {
|
|
|
|
@@ -54,17 +55,26 @@ export default {
|
|
|
|
|
<div :class="options.type+' '+options.subtype">
|
|
|
|
|
<div class="header" v-if="options.type == 'track' || options.type == 'project'">
|
|
|
|
|
<h1>
|
|
|
|
|
<spotIcon :icon="options.subtype" size="lg" :text="this.options.name" width="auto" :textClasses="options.subtype" />
|
|
|
|
|
<spotIcon v-if="options.type == 'project'" :icon="options.subtype" :classes="'track-'+options.subtype" size="lg" :text="this.options.name" width="auto" />
|
|
|
|
|
<span v-else class="track" :title="lang.get('track.'+options.subtype)">
|
|
|
|
|
<span class="line" :style="'background-color:'+hikes.colors[options.subtype]+';'"></span>
|
|
|
|
|
<span class="desc">{{ this.options.name }}</span>
|
|
|
|
|
</span>
|
|
|
|
|
</h1>
|
|
|
|
|
<p v-if="options.description" class="description">{{ options.description }}</p>
|
|
|
|
|
<p v-if="options.description && !options.leg" class="description">{{ options.description }}</p>
|
|
|
|
|
<div v-if="options.subtype!='hitchhiking'" class="separator"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="options.type=='track'">
|
|
|
|
|
<div v-if="options.leg" class="section destination">
|
|
|
|
|
<spotIcon :title="lang.get('stats.from')" icon="start" width="fixed" size="lg" :text="options.leg.from" />
|
|
|
|
|
<spotIcon :title="lang.get('stats.to')" icon="start" transform="rotate-180" width="fixed" size="lg" :text="options.leg.to" />
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="options.leg" class="separator"></div>
|
|
|
|
|
<div v-if="options.subtype!='hitchhiking'" class="section track-stats">
|
|
|
|
|
<spotIcon :title="lang.get('stats.distance')" :icon="'distance'" width="fixed" size="lg" :text="options.distance+'km'" />
|
|
|
|
|
<spotIcon :title="lang.get('stats.duration')" :icon="'time'" width="fixed" size="lg" :text="options.duration" />
|
|
|
|
|
<spotIcon :title="lang.get('stats.elevation_gain')" :icon="'elev-gain'" width="fixed" size="lg" :text="options.elev_gain+'m'" />
|
|
|
|
|
<spotIcon :title="lang.get('stats.elevation_loss')" :icon="'elev-drop'" width="fixed" size="lg" :text="options.elev_drop+'m'" />
|
|
|
|
|
<spotIcon :title="lang.get('stats.distance')" icon="distance" width="fixed" size="lg" :text="options.distance+'km'" />
|
|
|
|
|
<spotIcon :title="lang.get('stats.duration')" icon="time" width="fixed" size="lg" :text="options.duration" />
|
|
|
|
|
<spotIcon :title="lang.get('stats.elevation_gain')" icon="elev-gain" width="fixed" size="lg" :text="options.elev_gain+'m'" />
|
|
|
|
|
<spotIcon :title="lang.get('stats.elevation_loss')" icon="elev-drop" width="fixed" size="lg" :text="options.elev_drop+'m'" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else-if="options.type=='project'" class="section year">{{ activeTimeInterval }}</div>
|
|
|
|
|