packages/rs-common/addon/components/details-gallery.hbs
<h3>{{t "components.detailsGallery.head"}}</h3>
{{#if @isExpanded}}
<details class="details-gallery" {{on "click" this.saveDebugVisibility}} open>
<summary>{{t "components.detailsGallery.summary"}}</summary>
<div class="gallery">
<Box
@text="Hello I'm a <code>Box</code> component in the <code>DetailsGallery</code> component."
/>
<Box>
{{t "components.box.defaultBlock1"}}
</Box>
<DoubleIt />
{{#if (eq this.env "production")}}
<AudioPlayer @srcURL={{this.envApp.AUDIO_PLAYER_FILE_REMOTE}} @shouldLoop={{true}} />
{{else}}
<AudioPlayer @srcURL={{this.envApp.AUDIO_PLAYER_FILE_LOCAL}} @shouldLoop={{true}} />
{{/if}}
<GhUser
@username={{@ghUsername}}
@htmlUrl={{@ghHtmlUrl}}
@publicRepos={{@ghPublicRepos}}
@publicGists={{@ghPublicGists}}
@followers={{@ghFollowers}}
@following={{@ghFollowing}}
/>
<Mover />
</div>
</details>
{{else}}
<details class="details-gallery" {{on "click" this.saveDebugVisibility}}>
<summary>{{t "components.detailsGallery.summary"}}</summary>
<div class="gallery">
<Box
@text="Hello I'm a <code>Box</code> component in the <code>DetailsGallery</code> component."
/>
<Box>
{{t "components.box.defaultBlock1"}}
</Box>
<DoubleIt />
{{#if (eq this.env "production")}}
<AudioPlayer @srcURL={{this.envApp.AUDIO_PLAYER_FILE_REMOTE}} @shouldLoop={{true}} />
{{else}}
<AudioPlayer @srcURL={{this.envApp.AUDIO_PLAYER_FILE_LOCAL}} @shouldLoop={{true}} />
{{/if}}
<GhUser @username={{@ghUsername}} @publicRepos={{@ghPublicRepos}} />
<Mover />
</div>
</details>
{{/if}}