Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show embargo badge in item list #1166

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions assets/wire/components/WireListItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ class WireListItem extends React.Component {
</label>
</div>
{!isExtended && (
<WireListItemIcons item={item} picture={picture} videos={videos} divider={false} />
<React.Fragment>
<WireListItemIcons item={item} picture={picture} videos={videos} divider={false} />
<div key='meta' className='wire-articles__item__icons'><WireListItemEmbargoed item={item} /></div>
</React.Fragment>
)}
{item.headline}
</h4>
Expand All @@ -124,7 +127,7 @@ class WireListItem extends React.Component {
<div key='meta' className='wire-articles__item__meta'>
<WireListItemIcons item={item} picture={picture} videos={videos} />
<div className='wire-articles__item__meta-info'>
<span>{this.wordCount} {gettext('words')}</span>
<span>{this.wordCount} {gettext('words')}<WireListItemEmbargoed item={item} /></span>
</div>
</div>]
)}
Expand Down