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 b123fcc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion assets/wire/components/WireListItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ class WireListItem extends React.Component {
{!isExtended && (
<WireListItemIcons item={item} picture={picture} videos={videos} divider={false} />
)}
{!isExtended && (
<div key='meta' className='wire-articles__item__icons'><WireListItemEmbargoed item={item} /></div>
)}
{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 b123fcc

Please sign in to comment.