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.

49 lines
1.4 KiB

<div class="card">
<div class="card-content">
<div class="media">
<div class="media-left">
<figure class="image is-48x48" v-if="group.avatar">
<img class="is-rounded" :src="group.avatar.url" alt="" />
<b-icon v-else size="is-large" icon="account-group" />
<div class="media-content">
name: RouteName.GROUP,
params: { preferredUsername: usernameWithDomain(group) },
<h3>{{ }}</h3>
<p class="is-6 has-text-grey">
<span v-if="group.domain">{{
<span v-else>{{ `@${group.preferredUsername}` }}</span>
<div class="content">
<p>{{ group.summary }}</p>
<script lang="ts">
import { Component, Prop, Vue } from "vue-property-decorator";
import { IGroup, usernameWithDomain } from "@/types/actor";
import RouteName from "../../router/name";
export default class GroupCard extends Vue {
@Prop({ required: true }) group!: IGroup;
RouteName = RouteName;
usernameWithDomain = usernameWithDomain;