mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
display how long the sync takes
This commit is contained in:
parent
7083b07b13
commit
e31390417c
|
|
@ -163,6 +163,7 @@ var processMirrorItem = function(d){
|
|||
// Strip the second component of last_update
|
||||
[d.last_update, d.last_update_ago] = stringifyTime(d.last_update_ts);
|
||||
[d.last_ended, d.last_ended_ago] = stringifyTime(d.last_ended_ts);
|
||||
[d.last_started, d.last_started_ago] = stringifyTime(d.last_started_ts);
|
||||
[d.next_schedule, d.next_schedule_ago] = stringifyTime(d.next_schedule_ts);
|
||||
return d;
|
||||
}
|
||||
|
|
|
|||
17
status.html
17
status.html
|
|
@ -67,7 +67,8 @@ permalink: /status/
|
|||
<div data-tuna-roll-seq="0 1">Last Successful Sync</div>
|
||||
<div data-tuna-roll-seq="2 3">Last Attempted Sync</div>
|
||||
</template>
|
||||
<div data-tuna-roll-seq="4 5">Next Scheduled Sync</div>
|
||||
<div v-if="mir.status == 'syncing'" data-tuna-roll-seq="4 5">Sync Started</div>
|
||||
<div v-else data-tuna-roll-seq="4 5">Next Scheduled Sync</div>
|
||||
</div>
|
||||
<div v-else class="tuna-roll">
|
||||
<template v-if="mir.last_ended_ts == mir.last_update_ts">
|
||||
|
|
@ -98,14 +99,12 @@ permalink: /status/
|
|||
<div class="tooltiptext">{{mir.last_ended}}</div>
|
||||
</div>
|
||||
</template>
|
||||
<template v-if="mir.status == 'syncing'">
|
||||
<div data-tuna-roll-seq="4 5">Syncing Now</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div data-tuna-roll-seq="4 5">{{mir.next_schedule_ago}}
|
||||
<div class="tooltiptext">{{mir.next_schedule}}</div>
|
||||
</div>
|
||||
</template>
|
||||
<div v-if="mir.status == 'syncing'" data-tuna-roll-seq="4 5">{{mir.last_started_ago}}
|
||||
<div class="tooltiptext">{{mir.last_started}}</div>
|
||||
</div>
|
||||
<div v-else data-tuna-roll-seq="4 5">{{mir.next_schedule_ago}}
|
||||
<div class="tooltiptext">{{mir.next_schedule}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else class="tuna-roll">
|
||||
<template v-if="mir.last_ended_ts == mir.last_update_ts">
|
||||
|
|
|
|||
Loading…
Reference in New Issue