mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-26 01:56:06 +00:00

* Releases updated version of datahub-web client UI code * Fix typo in yarn lock * Change yarn lock to match yarn registry directories * Previous commit missed some paths * Even more changes to yarnlock missing in previous commit * Include codegen file for typings * Add files to get parity for datahub-web and current OS datahub-midtier * Add in typo fix from previous commit - change to proper license * Implement proper OS fix for person entity picture url * Workarounds for open source DH issues * Fixes institutional memory api and removes unopensourced tabs for datasets * Fixes search dataset deprecation and user search issue as a result of changes * Remove internal only options in the avatar menu
53 lines
1.4 KiB
Handlebars
53 lines
1.4 KiB
Handlebars
{{#if hasBlock}}
|
|
{{yield
|
|
(hash
|
|
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")
|
|
)
|
|
}}
|
|
{{else}}
|
|
{{!-- META-11899: Reuse Properties Panel for this --}}
|
|
<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"
|
|
rel="noreferrer noopener"
|
|
class="wherehows-entity-header-property__item-value"
|
|
>
|
|
{{link.display}}
|
|
</a>
|
|
|
|
{{/each}}
|
|
|
|
{{else if (eq config.displayType "component")}}
|
|
|
|
{{component config.componentOptions.name options=config.componentOptions.options}}
|
|
|
|
{{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}}
|