Commit 4d5d8a81 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Fix total_time template

parent 2fc9b5a2
......@@ -6,23 +6,11 @@
time: Object,
},
template: `
<span>
<span class="days" v-if="time.days">
{{ time.days }}
<abbr title="Days">{{ time.days === 1 ? 'day' : 'days' }}</abbr>
</span>
<span class="hours" v-if="time.hours">
{{ time.hours }}
<abbr title="Hours">hr</abbr>
</span>
<span class="mins" v-if="time.mins">
{{ time.mins }}
<abbr title="Minutes">mins</abbr>
</span>
<span class="seconds hide" v-if="time.seconds">
{{ time.seconds }}
<abbr title="Seconds">s</abbr>
</span>
<span class="total-time">
<template v-if="time.days">{{ time.days }} <span>{{ time.days === 1 ? 'day' : 'days' }}</span></template>
<template v-if="time.hours">{{ time.hours }} <span>hr</span></template>
<template v-if="time.mins">{{ time.mins }} <span>mins</span></template>
<!-- <template v-if="time.seconds">{{ time.seconds }} <span>s</span></template> -->
</span>
`,
});
......
......@@ -306,12 +306,15 @@
.item-time {
width: 25%;
text-align: right;
}
.total-time {
font-size: $cycle-analytics-big-font;
color: $cycle-analytics-dark-text;
abbr {
font-size: $gl-font-size;
span {
color: $gl-text-color;
font-size: $gl-font-size;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment