Skip to content
Snippets Groups Projects

Polish the instance overview cards

Merged Austin Regnery requested to merge aregnery/admin-overview-polish into master
5 files
+ 36
30
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -28,10 +28,10 @@ export default {
</script>
<template>
<gl-card class="gl-h-full">
<h4 class="gl-heading-4 gl-mb-0">{{ __('Statistics') }}</h4>
<slot name="footer">
<gl-loading-icon v-if="isLoading" size="lg" class="my-3" />
<gl-card class="gl-h-full" footer-class="gl-h-full">
<h3 class="gl-self-center gl-text-base gl-m-0">{{ __('Statistics') }}</h3>
<template #footer>
<gl-loading-icon v-if="isLoading" size="md" class="my-3" />
<template v-else>
<p
v-for="(statistic, index) in getStatistics(statisticsLabels)"
@@ -41,12 +41,13 @@ export default {
'gl-py-4',
'gl-m-0',
{ 'gl-border-b': index !== getStatistics(statisticsLabels).length - 1 },
{ 'gl-pt-0': index === 0 }
]"
>
{{ statistic.label }}
<span class="light gl-float-right">{{ statistic.value }}</span>
</p>
</template>
</slot>
</template>
</gl-card>
</template>
Loading