BigW Consortium Gitlab

Commit 4d5d8a81 by Alfredo Sumaran

Fix total_time template

parent 2fc9b5a2
...@@ -6,23 +6,11 @@ ...@@ -6,23 +6,11 @@
time: Object, time: Object,
}, },
template: ` template: `
<span> <span class="total-time">
<span class="days" v-if="time.days"> <template v-if="time.days">{{ time.days }} <span>{{ time.days === 1 ? 'day' : 'days' }}</span></template>
{{ time.days }} <template v-if="time.hours">{{ time.hours }} <span>hr</span></template>
<abbr title="Days">{{ time.days === 1 ? 'day' : 'days' }}</abbr> <template v-if="time.mins">{{ time.mins }} <span>mins</span></template>
</span> <!-- <template v-if="time.seconds">{{ time.seconds }} <span>s</span></template> -->
<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> </span>
`, `,
}); });
......
...@@ -306,12 +306,15 @@ ...@@ -306,12 +306,15 @@
.item-time { .item-time {
width: 25%; width: 25%;
text-align: right; text-align: right;
}
.total-time {
font-size: $cycle-analytics-big-font; font-size: $cycle-analytics-big-font;
color: $cycle-analytics-dark-text; color: $cycle-analytics-dark-text;
abbr { span {
font-size: $gl-font-size;
color: $gl-text-color; 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