2023-04-04 15:43:43 +03:00
|
|
|
<MultiList::List @model={{@list}} class="posts-list gh-list {{unless @model "no-posts"}} feature-memberAttribution" as |list| >
|
2024-07-02 17:27:44 +03:00
|
|
|
{{#each @model as |post|}}
|
|
|
|
<list.item @id={{post.id}} class="gh-posts-list-item-group">
|
|
|
|
<PostsList::ListItem
|
|
|
|
@post={{post}}
|
|
|
|
data-test-post-id={{post.id}}
|
|
|
|
/>
|
|
|
|
</list.item>
|
2023-04-14 13:16:15 +03:00
|
|
|
{{else}}
|
|
|
|
{{yield}}
|
2024-07-02 17:27:44 +03:00
|
|
|
{{/each}}
|
2023-04-04 15:43:43 +03:00
|
|
|
</MultiList::List>
|
|
|
|
|
|
|
|
{{!-- The currently selected item or items are passed to the context menu --}}
|
|
|
|
<GhContextMenu
|
|
|
|
@name="context-menu"
|
2023-04-07 12:48:14 +03:00
|
|
|
as |menu|
|
2023-04-04 15:43:43 +03:00
|
|
|
>
|
2023-04-07 12:48:14 +03:00
|
|
|
<PostsList::ContextMenu @menu={{menu}} />
|
2023-04-04 15:43:43 +03:00
|
|
|
</GhContextMenu>
|