Skip to content

Commit

Permalink
title for active and ended polls on showcase page
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Mar 7, 2024
1 parent 10dcbca commit f2a1760
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/src/forum/components/PollShowcase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ export default class PollShowcase extends Component<PollListAttrs, PollListState
return (
<div className="PollShowcase">
<div className="PollShowcase-featured">
<h3>{app.translator.trans('fof-polls.forum.showcase.active-polls')}</h3>
{this.showcaseItems().toArray()}
{this.showcaseItems().toArray().length === 0 && <Placeholder text={app.translator.trans('fof-polls.forum.showcase.no-active-polls')} />}
</div>
<div className="PollShowcase-ended">
<h3>{app.translator.trans('fof-polls.forum.showcase.ended-polls')}</h3>
{this.endedItems().toArray()}
{this.endedItems().toArray().length === 0 && <Placeholder text={app.translator.trans('fof-polls.forum.showcase.no-recent-polls')} />}
</div>
Expand Down
2 changes: 2 additions & 0 deletions resources/locale/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ fof-polls:
nav-all: All Global Polls

showcase:
active-polls: Active Polls
ended-polls: Concluded Polls
no-active-polls: There are no active polls at the moment.
no-recent-polls: There are no recently ended polls at the moment.

Expand Down

0 comments on commit f2a1760

Please sign in to comment.