Skip to content

Commit

Permalink
Show embargo badge in item list
Browse files Browse the repository at this point in the history
  • Loading branch information
marwoodandrew committed Sep 30, 2022
1 parent c413e06 commit 0a202b9
Showing 1 changed file with 5 additions and 2 deletions.
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

0 comments on commit 0a202b9

Please sign in to comment.