2019-08-31 20:51:14 -07:00
|
|
|
{{#if hasBlock}}
|
|
|
|
{{yield
|
|
|
|
(hash
|
2020-08-26 15:44:50 -07:00
|
|
|
propertyName=(component "entity-page/entity-header/naked-div" class="wherehows-entity-header-property__name")
|
|
|
|
propertyValue=(component "entity-page/entity-header/naked-div" class="wherehows-entity-header-property__value")
|
2019-08-31 20:51:14 -07:00
|
|
|
)
|
|
|
|
}}
|
|
|
|
{{else}}
|
2020-08-26 15:44:50 -07:00
|
|
|
{{!-- META-11899: Reuse Properties Panel for this --}}
|
2019-08-31 20:51:14 -07:00
|
|
|
<div class="wherehows-entity-header-property__name">
|
|
|
|
<strong>
|
|
|
|
{{titleize name}}
|
|
|
|
</strong>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="wherehows-entity-header-property__value">
|
|
|
|
{{#if (eq config.displayType "link")}}
|
|
|
|
|
|
|
|
{{#each computedLink as |link|}}
|
|
|
|
|
|
|
|
<a
|
|
|
|
href={{link.ref}} target="_blank"
|
2020-08-26 15:44:50 -07:00
|
|
|
rel="noreferrer noopener"
|
2019-08-31 20:51:14 -07:00
|
|
|
class="wherehows-entity-header-property__item-value"
|
|
|
|
>
|
|
|
|
{{link.display}}
|
|
|
|
</a>
|
|
|
|
|
|
|
|
{{/each}}
|
|
|
|
|
2020-08-26 15:44:50 -07:00
|
|
|
{{else if (eq config.displayType "component")}}
|
|
|
|
|
|
|
|
{{component config.componentOptions.name options=config.componentOptions.options}}
|
|
|
|
|
2019-08-31 20:51:14 -07:00
|
|
|
{{else}}
|
|
|
|
|
|
|
|
{{#if (eq valueType "string")}}
|
|
|
|
{{displayValue}}
|
|
|
|
{{else if (eq valueType "array")}}
|
|
|
|
{{#each displayValue as |item|}}
|
|
|
|
<span class="wherehows-entity-header-property__item-value">{{item}}</span>
|
|
|
|
{{/each}}
|
|
|
|
{{else if (eq valueType "boolean")}}
|
|
|
|
{{if displayValue "Yes" "No"}}
|
|
|
|
{{else}}
|
|
|
|
Unrecognized type {{valueType}}: {{displayValue}}
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
{{/if}}
|