diff --git a/src/template/module/journey/main.pug b/src/template/module/journey/main.pug index c6701f7..bf703cc 100644 --- a/src/template/module/journey/main.pug +++ b/src/template/module/journey/main.pug @@ -1,33 +1,27 @@ -.row.fleft(style="position:absolute;right:0;") - .col-1 - a(:href="'/short/' + journey.id") - i.fas.fa-file-contract - .col-1 - a(:href="'/view/' + journey.id") - i.fas.fa-camera - .col-1 - a(href="#", v-on:click.prevent="first_step") - i.fas.fa-tools - +include smallbar.pug .bg-dark.text-white(v-if="journey && journey.leg_get()") .container - .row.align(style="padding-top:45px;") - .col-6.col-sm-4.col-md-3.input.text-big - input.text-center(v-model="journey.data.name" placeholder="My Journey" type="text") + .row.align(style="padding-top:45px;position:relative") + .col-6.col-sm-4.col-md-3 + .input.text-big + input.text-center(v-model="journey.data.name" placeholder="My Journey" type="text") + .col-6.col-sm-4.col-md-3( v-if="nav.useDay" ) + .input.text-small + input.text-center(v-model="journey.leg_get().title" placeholder="Leg" type="text") //- input.small(type="text", :placeholder="journey.date_tot() + ' (' + journey.tot_len() + ')'" ) - include leg/top_leg.pug - include leg/top_day.pug - //- include leg/nav.pug - //- include leg/top.pug - .row(style="aspect-ratio:1.25;") + template(v-if="nav.useDay") + include leg/top_day.pug + template(v-else) + include leg/top_leg.pug + .row(style="aspect-ratio:1.25;min-height:432px;max-height:calc(100vh - 125px);width:calc(100% + 24px);") .map-container(:class=" { 'col-2 col-sm-5 col-md-8': query.type, 'col-2 col-sm-5 col-md-6': query.note , 'col-12': (!query.type && !query.note) }" ) include map.pug .row.drawer-container(:class="{ 'col-10 col-sm-7 col-md-4': query.type, 'col-10 col-sm-7 col-md-6': query.note, 'col-0': (!query.type && !query.note) }") - .drawer-container(:class="{ 'col-12 ': query.type, 'col-0': !query.type }") + .h-100(:class="{ 'w-100 ': query.type, 'w-0': !query.type }") include leg/drawer.pug - .drawer-container(:class="{ 'col-12': query.note, 'col-0': !query.note }") + .h-100(:class="{ 'w-100': query.note, 'w-0': !query.note }") include leg/drawer-notes.pug //- include impexp.pug \ No newline at end of file