Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/assets/vue/components/TeacherBar.vue

42 lines
895 B

<template>
<div
class="teacher-bar"
:class="{ 'teacher-bar--simple': isSimpleLayout }"
>
<div
v-for="user in teachers"
:key="user.id"
class="teacher-bar__item"
>
<BaseUserAvatar
:image-url="`${user.illustrationUrl}?w=80&h=80&fit=crop`"
:alt="t('Teacher profile picture')"
class="mr-2"
/>
<div
v-if="isSimpleLayout"
class="teacher-bar__item-caption"
>
<span v-text="user.fullName" />
<span v-t="'Coach'" />
</div>
</div>
</div>
</template>
<script setup>
import BaseUserAvatar from "./basecomponents/BaseUserAvatar.vue"
import { useI18n } from "vue-i18n"
const { t } = useI18n()
// eslint-disable-next-line no-undef
const props = defineProps({
teachers: {
required: true,
type: Array,
},
})
const isSimpleLayout = props.teachers.length < 3
</script>