Swap today and total
This commit is contained in:
parent
4c1399c7af
commit
8bec394873
@ -1,18 +1,18 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<section
|
<section
|
||||||
v-if="total_time"
|
v-if="today_time"
|
||||||
class="timer"
|
class="timer"
|
||||||
v-bind:class="{ overtime: isOvertime }"
|
v-bind:class="{ overtime: isOvertime }"
|
||||||
>
|
>
|
||||||
{{ total_time | str_time }}
|
{{ today_time | str_time }}
|
||||||
</section>
|
</section>
|
||||||
<section class="actions">
|
<section class="actions">
|
||||||
<a v-if="started" v-on:click.prevent="finish" href="#">Закончить</a>
|
<a v-if="started" v-on:click.prevent="finish" href="#">Закончить</a>
|
||||||
<a v-else v-on:click.prevent="start" href="#">Начать</a>
|
<a v-else v-on:click.prevent="start" href="#">Начать</a>
|
||||||
</section>
|
</section>
|
||||||
<section v-if="today_time" class="today">
|
<section v-if="total_time" class="total">
|
||||||
Сегодня {{ today_time | str_time }}
|
Всего {{ total_time | str_time }}
|
||||||
</section>
|
</section>
|
||||||
<p class="profile-info">Профиль: {{ profileId }}</p>
|
<p class="profile-info">Профиль: {{ profileId }}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -84,7 +84,7 @@ export default {
|
|||||||
font-size: 240%;
|
font-size: 240%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.today {
|
.total {
|
||||||
margin-top: 1em;
|
margin-top: 1em;
|
||||||
font-size: 200%;
|
font-size: 200%;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user