Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Decidim Geo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Container Registry
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Decidim
Decidim Geo
Commits
ecb14216
Commit
ecb14216
authored
5 months ago
by
Hadrien Froger
Browse files
Options
Downloads
Patches
Plain Diff
Fix/demos
parent
0a804edc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/packs/src/decidim/geo/ui/DrawerListItem/proposals.js
+7
-3
7 additions, 3 deletions
app/packs/src/decidim/geo/ui/DrawerListItem/proposals.js
with
7 additions
and
3 deletions
app/packs/src/decidim/geo/ui/DrawerListItem/proposals.js
+
7
−
3
View file @
ecb14216
...
...
@@ -4,11 +4,12 @@ import _ from "lodash";
const
proposals
=
(
node
)
=>
{
const
{
i18n
,
images
,
locale
,
defaultLocale
}
=
configStore
.
getState
();
const
hasImage
=
!
_
.
isEmpty
(
node
.
imageUrl
);
const
states
=
i18n
[
"
decidim.geo.proposals.states
"
]
const
listCard
=
L
.
DomUtil
.
create
(
"
li
"
,
"
decidimGeo__drawer__listCard
"
);
const
listCard
=
L
.
DomUtil
.
create
(
"
li
"
,
"
decidimGeo__drawer__listCard
decidimGeo__drawer__listCard--proposals
"
);
const
info
=
L
.
DomUtil
.
create
(
"
div
"
,
"
decidimGeo__drawer__listCardInfo
decidimGeo__drawer__listCardInfo--large
"
,
"
decidimGeo__drawer__listCardInfo
"
,
listCard
);
const
metadatas
=
L
.
DomUtil
.
create
(
"
div
"
,
"
decidimGeo__drawer__metas
"
,
info
);
...
...
@@ -38,12 +39,15 @@ const proposals = (node) => {
if
(
node
.
shortDescription
)
{
const
infoDescription
=
L
.
DomUtil
.
create
(
"
div
"
,
"
decidimGeo__drawer__listCardDescription
"
,
info
);
infoDescription
.
textContent
=
node
.
shortDescription
[
locale
]
||
node
.
shortDescription
[
defaultLocale
];
}
if
(
hasImage
)
{
const
image
=
L
.
DomUtil
.
create
(
"
img
"
,
"
decidimGeo__drawer__listCardImg
"
,
listCard
);
image
.
src
=
node
.
imageUrl
;
}
return
listCard
;
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment