mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-26 01:56:06 +00:00
16 lines
543 B
Handlebars
16 lines
543 B
Handlebars
![]() |
{{#with (get this.entity this.propertyName) as |file|}}
|
||
|
{{!-- MaxLines affect performance as Ace do some kind of lazy load, similar to how apple renders tables --}}
|
||
|
<EmberAce
|
||
|
@value={{file.content}}
|
||
|
@readOnly={{true}}
|
||
|
@showLineNumbers={{true}}
|
||
|
@showPrintMargin={{false}}
|
||
|
@highlightActiveLine={{false}}
|
||
|
@minLines={{10}}
|
||
|
@maxLines={{100}}
|
||
|
@mode={{concat "ace/mode/" file.type}}
|
||
|
@worker={{concat "ace/mode/" file.type "_worker"}}
|
||
|
/>
|
||
|
{{else}}
|
||
|
<EmptyState @heading={{this.emptyStateMessage}} />
|
||
|
{{/with}}
|