forked from potsda.mn/mobilizon
f90089e1bf
Use Upload Media logic from Pleroma Backend changes for picture upload Move AS <-> Model conversion to separate module Front changes Downgrade apollo-client: https://github.com/Akryum/vue-apollo/issues/577 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
33 lines
852 B
Vue
33 lines
852 B
Vue
<template>
|
|
<div class="card">
|
|
<div class="card-image" v-if="!group.banner">
|
|
<figure class="image is-4by3">
|
|
<img src="https://picsum.photos/g/400/200/">
|
|
</figure>
|
|
</div>
|
|
<div class="card-content">
|
|
<div class="content">
|
|
<router-link :to="{ name: RouteName.GROUP, params:{ preferredUsername: group.preferredUsername } }">
|
|
<h2 class="title">{{ group.displayName() }}</h2>
|
|
</router-link>
|
|
</div>
|
|
<div>
|
|
<p>{{ group.summary }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { Component, Prop, Vue } from 'vue-property-decorator';
|
|
import { Group } from '@/types/actor';
|
|
import { RouteName } from '@/router';
|
|
|
|
@Component
|
|
export default class GroupCard extends Vue {
|
|
@Prop({ required: true }) group!: Group;
|
|
|
|
RouteName = RouteName;
|
|
}
|
|
</script>
|