Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
community
pount
pount-front
Commits
97f02c71
Commit
97f02c71
authored
Sep 13, 2021
by
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
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/components/crud/CrudListPublic.vue
View file @
97f02c71
...
...
@@ -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
/>
...
...
src/views/home.vue
View file @
97f02c71
...
...
@@ -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
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment