mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-01-24 14:24:47 +08:00
display project owner on homepage
Signed-off-by: MiniDigger <admin@benndorf.dev>
This commit is contained in:
parent
4732a3740b
commit
42bce7d569
@ -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: () => ({
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user