2019-01-21 15:08:22 +01:00
|
|
|
<template>
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-image" v-if="!group.bannerUrl">
|
|
|
|
<figure class="image is-4by3">
|
|
|
|
<img src="https://picsum.photos/g/400/200/">
|
|
|
|
</figure>
|
|
|
|
</div>
|
|
|
|
<div class="card-content">
|
|
|
|
<div class="content">
|
2019-04-03 17:29:03 +02:00
|
|
|
<router-link :to="{ name: RouteName.GROUP, params:{ preferredUsername: group.preferredUsername } }">
|
|
|
|
<h2 class="title">{{ group.displayName() }}</h2>
|
2019-01-21 15:08:22 +01:00
|
|
|
</router-link>
|
|
|
|
</div>
|
2019-04-03 17:29:03 +02:00
|
|
|
<div>
|
2019-01-21 15:08:22 +01:00
|
|
|
<p>{{ group.summary }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2019-03-22 10:57:14 +01:00
|
|
|
import { Component, Prop, Vue } from 'vue-property-decorator';
|
2019-04-03 17:29:03 +02:00
|
|
|
import { Group } from '@/types/actor.model';
|
|
|
|
import { RouteName } from '@/router';
|
2019-01-21 15:08:22 +01:00
|
|
|
|
|
|
|
@Component
|
|
|
|
export default class GroupCard extends Vue {
|
2019-04-03 17:29:03 +02:00
|
|
|
@Prop({ required: true }) group!: Group;
|
|
|
|
|
|
|
|
RouteName = RouteName;
|
2019-01-21 15:08:22 +01:00
|
|
|
}
|
|
|
|
</script>
|