debian-mirror-gitlab/app/assets/javascripts/sidebar/components/time_tracking/spent_only_pane.vue

31 lines
636 B
Vue
Raw Normal View History

2018-10-15 14:42:47 +05:30
<script>
2019-09-30 21:07:59 +05:30
import { sprintf, s__ } from '~/locale';
2018-10-15 14:42:47 +05:30
export default {
name: 'TimeTrackingSpentOnlyPane',
props: {
timeSpentHumanReadable: {
type: String,
required: true,
},
},
2019-09-30 21:07:59 +05:30
computed: {
timeSpent() {
return sprintf(
s__('TimeTracking|%{startTag}Spent: %{endTag}%{timeSpentHumanReadable}'),
{
startTag: '<span class="bold">',
endTag: '</span>',
timeSpentHumanReadable: this.timeSpentHumanReadable,
},
false,
);
},
},
2018-10-15 14:42:47 +05:30
};
</script>
<template>
2019-09-30 21:07:59 +05:30
<div class="time-tracking-spend-only-pane" v-html="timeSpent"></div>
2018-10-15 14:42:47 +05:30
</template>