2018-08-16 17:48:24 +00:00
|
|
|
{{#if componentName}}
|
|
|
|
{{component componentName item=item}}
|
|
|
|
{{else if linkParams}}
|
|
|
|
<LinkedBlock @params={{linkParams}} @class="list-item-row">
|
|
|
|
<div class="level is-mobile">
|
2018-10-19 22:24:57 +00:00
|
|
|
<div class="level-left is-flex-1">
|
|
|
|
{{#link-to params=linkParams class="has-text-weight-semibold has-text-black is-display-flex is-flex-1 is-no-underline"}}
|
|
|
|
{{yield (hash content=(component "list-item/content"))}}
|
|
|
|
{{/link-to}}
|
|
|
|
</div>
|
2018-08-16 17:48:24 +00:00
|
|
|
<div class="level-right">
|
|
|
|
<div class="level-item">
|
2018-10-19 22:24:57 +00:00
|
|
|
{{yield (hash callMethod=callMethod menu=(component "list-item/popup-menu" item=item hasMenu=hasMenu))}}
|
2018-08-16 17:48:24 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</LinkedBlock>
|
|
|
|
{{else}}
|
|
|
|
<div class="list-item-row">
|
|
|
|
<div class="level is-mobile">
|
2018-10-19 22:24:57 +00:00
|
|
|
<div class="level-left is-flex-1 has-text-weight-semibold">
|
|
|
|
{{yield (hash content=(component "list-item/content"))}}
|
2018-08-16 17:48:24 +00:00
|
|
|
</div>
|
|
|
|
<div class="level-right">
|
|
|
|
<div class="level-item">
|
2018-10-19 22:24:57 +00:00
|
|
|
{{yield (hash callMethod=callMethod menu=(component "list-item/popup-menu" item=item hasMenu=hasMenu))}}
|
2018-08-16 17:48:24 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|