display project owner on homepage

Signed-off-by: MiniDigger <admin@benndorf.dev>
This commit is contained in:
MiniDigger 2021-12-08 08:52:19 +01:00
parent 4732a3740b
commit 42bce7d569
2 changed files with 5 additions and 1 deletions

View File

@ -21,6 +21,7 @@
</div>
<div class="ml-2">
<span class="text-h6">{{ project.name }}</span>
<span v-if="displayAuthor" class="text-h7">by {{ project.namespace.owner }}</span>
<br />
<span class="text-subtitle-2">{{ project.description }}</span>
</div>
@ -68,6 +69,9 @@ export default class ProjectList extends Vue {
@Prop({ type: Object as PropType<PaginatedResult<Project>>, required: true })
projects!: PaginatedResult<Project>;
@Prop({ type: Boolean, default: () => false })
displayAuthor!: boolean;
@PropSync('listOptions', {
type: Object as PropType<DataOptions>,
default: () => ({

View File

@ -15,7 +15,7 @@
</v-row>
<v-row justify="center" align="center">
<v-col cols="12">
<ProjectList :projects="projects" :list-options.sync="options" />
<ProjectList :projects="projects" :list-options.sync="options" :display-author="true" />
</v-col>
</v-row>
</v-col>