Commit 97f02c71 authored by Yoran Hillion's avatar Yoran Hillion
Browse files

Merge branch 'feature/crudlistpublic-subtitles' into develop

parents 837d73bd 8fb8c104
Pipeline #60173 passed with stages
in 4 minutes and 51 seconds
......@@ -30,6 +30,9 @@
<v-card-title>
{{ item.title }}
</v-card-title>
<v-card-subtitle>
{{ item.subtitle }}
</v-card-subtitle>
<v-card-text v-html="item.description" />
<v-card-actions class="mt-auto">
<v-spacer />
......
......@@ -340,13 +340,17 @@ export default {
...mapGetters('community', ['projectList']),
crudListItems() {
return this.projectList.pageContent
.map((project) => ({
id: project.id,
title: this.textTruncate(project.name, 50),
description: this.textTruncate(this.stripHtml(project.description), 150),
thumbnail: project.thumbnails.m,
to: { name: 'projectPublic', params: { projectId: project.id } },
}));
.map((project) => {
const managers = project.managers.map(m => m.name).join(', ');
return {
id: project.id,
title: this.textTruncate(project.name, 50),
subtitle: `${this.$t('project.subtitles.managers', { managers, label: this.$tc('project.managers', project.managers.length) })}`,
description: this.textTruncate(this.stripHtml(project.description), 150),
thumbnail: project.thumbnails.m,
to: { name: 'projectPublic', params: { projectId: project.id } },
}
});
},
},
watch: {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment