forked from MapComplete/MapComplete
Add proper rendering for single review title
This commit is contained in:
parent
d225a32094
commit
e7dcd350fe
3 changed files with 31 additions and 13 deletions
|
@ -35,8 +35,10 @@ export default class ReviewElement extends UIElement {
|
|||
new Combine([
|
||||
SingleReview.GenStars(avg).SetClass("stars"),
|
||||
`<a target="_blank" href='https://mangrove.reviews/search?sub=${encodeURIComponent(this._subject)}'>`,
|
||||
Translations.t.reviews.title
|
||||
.Subs({count: "" + revs.length}),
|
||||
revs.length === 1 ? Translations.t.reviews.title_singular :
|
||||
Translations.t.reviews.title
|
||||
.Subs({count: "" + revs.length})
|
||||
,
|
||||
"</a>"
|
||||
])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue